Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScanNet or SUNRGBD datasets with BlenderProc #987

Open
wakasu opened this issue Sep 29, 2023 · 4 comments
Open

ScanNet or SUNRGBD datasets with BlenderProc #987

wakasu opened this issue Sep 29, 2023 · 4 comments
Labels

Comments

@wakasu
Copy link

wakasu commented Sep 29, 2023

Describe your feature request

I have used for creating datasets for COCO instance segmentation and Linemod. I really appreciate the work that the developers have done with this tool. I am working on a monocular 3D object detection project and I need to use either ScanNet or SUNRGBD datasets. However, it seems like these datasets are not supported by BlenderProc.

I would like to know if anyone has worked on this problem before and if they could share their approach or code with me. If not, I might start working on it myself if I have some spare time.

Describe a possible solution

No response

@wakasu wakasu added the enhancement New feature or request label Sep 29, 2023
@cornerfarmer
Copy link
Member

Hey @wakasu,

how exactly do you want to use these datasets? Both provide rgb-d sequences which are not directly suitable for blenderproc. Or do you want to load the provided 3D reconstructions? If yes, then this should be possible by using the bproc.loader.load_obj(path) method, where path points to e.g. the ply files from ScanNet.

@wakasu
Copy link
Author

wakasu commented Oct 19, 2023

Hey @cornerfarmer

Currently, I would like to have the capability to export the dataset in SUNRGBD or ScanNet format. As for input data, I'm flexible and can use either my own .blend scenes or, if this project progresses further, I can also work on 3D reconstruction using indoor point cloud datasets such as S3DIS.

@cornerfarmer
Copy link
Member

Ah okay, it was not clear to me that you want to export data in that formats. That should be easy to do. The blenderproc renderer returns a list of numpy arrays for each image, so you can export them in any format you want. SUNRGBD only seems to be a specific folder structure containing the explicit images. So here you just need to export the numpy arrays as images into the correct path. For ScanNet you need to write the images in a custom .sens format. Thats a bit more difficult, as you need to put them into a struct complementary to how the .sens readings works (see https://github.com/ScanNet/ScanNet/blob/master/SensReader/python/SensorData.py)

@wakasu
Copy link
Author

wakasu commented Oct 20, 2023

Wow, thank you for the message and for providing the link to the code for reference. I will begin working on this shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants