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

Query regarding data loading for custom dataset #113

Open
sumitanilkshirsagar opened this issue May 31, 2024 · 3 comments
Open

Query regarding data loading for custom dataset #113

sumitanilkshirsagar opened this issue May 31, 2024 · 3 comments
Labels
question Further information is requested

Comments

@sumitanilkshirsagar
Copy link

sumitanilkshirsagar commented May 31, 2024

Hi,
I am working on a underwater 3D reconstruction project, and wanted to first establish a backbone 3D reconstruction library and then build on top of it. HengyiWang(Co-SLAM ) suggested thaT your code would work better for under water 3D purposes.
I wanted to check how I can build a dataset and config, I am using a stereo camera (ZED camera from stereolabs) with a resolution of HD2K ( 2208x1242)

What I tried so far:

  1. I tried to resize my rgb,depth images to 640x480 and placing them in the TUM dataset folder.

2)Tried running 2208x1242 and changing resolution in config file.

@sumitanilkshirsagar
Copy link
Author

  1. I tried to resize my rgb,depth images to 640x480 and placing them in the TUM dataset folder.
    Error:

SplaTAM/scripts/splatam.py", line 107, in get_pointcloud
point_cld = torch.cat((pts, cols), -1)
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 307200 but got size 409600 for tensor number 1 in the list.

Can you help me with what these tensors denote, and where is mismatch coming from?

@Nik-V9
Copy link
Contributor

Nik-V9 commented Jun 8, 2024

Hi, Thanks for your interest in our work!

You will need to implement your own dataloader using the ones present here as reference: https://github.com/spla-tam/SplaTAM/tree/main/datasets/gradslam_datasets

You will also need a corresponding config file for the data, which contains the intrinsic & depth PNG scale information (pixel value to depth mapping): https://github.com/spla-tam/SplaTAM/tree/main/configs/data

Regarding the issue you are facing, there might be a mismatch between your RGB & depth image size.

@Nik-V9 Nik-V9 added the question Further information is requested label Jun 8, 2024
@Nik-V9 Nik-V9 changed the title Need to run for a different resolution Query regarding data loading for custom dataset Jun 8, 2024
@ShreyaIAB
Copy link

@sumitanilkshirsagar were u able to solve this and load ur own custom data with your camera?

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

No branches or pull requests

3 participants