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

Some errors when using ScanNet #3

Open
BIT-DYN opened this issue Dec 20, 2024 · 1 comment
Open

Some errors when using ScanNet #3

BIT-DYN opened this issue Dec 20, 2024 · 1 comment

Comments

@BIT-DYN
Copy link

BIT-DYN commented Dec 20, 2024

Thank you for the excellent work and well-organized code!

I successfully ran the code on the Replica dataset.

However, when attempting to use the ScanNet dataset, I encountered the following error.

I am using scene0000_00 without modifying any configurations. Do you have any insights into what might be causing this issue?

Traceback (most recent call last):
File "/code1/dyn/codes/OpenWorld/OpenGS/HI-SLAM2/demo.py", line 121, in
hi2.track(t, image, intrinsics=intrinsics, is_last=is_last)
File "/code1/dyn/codes/OpenWorld/OpenGS/HI-SLAM2/hislam2/hi2.py", line 103, in track
self.call_gs(viz_idx)
File "/code1/dyn/codes/OpenWorld/OpenGS/HI-SLAM2/hislam2/hi2.py", line 83, in call_gs
self.gs.process_track_data(data)
File "/code1/dyn/codes/OpenWorld/OpenGS/HI-SLAM2/hislam2/gs_backend.py", line 113, in process_track_data
self.add_next_kf(idx, viewpoint, depth_map=packet["depths"][i].numpy())
File "/code1/dyn/codes/OpenWorld/OpenGS/HI-SLAM2/hislam2/gs_backend.py", line 153, in add_next_kf
self.gaussians.extend_from_pcd_seq(
File "/code1/dyn/codes/OpenWorld/OpenGS/HI-SLAM2/hislam2/gaussian/scene/gaussian_model.py", line 221, in extend_from_pcd_seq
self.extend_from_pcd(
File "/code1/dyn/codes/OpenWorld/OpenGS/HI-SLAM2/hislam2/gaussian/scene/gaussian_model.py", line 204, in extend_from_pcd
self.densification_postfix(
File "/code1/dyn/codes/OpenWorld/OpenGS/HI-SLAM2/hislam2/gaussian/scene/gaussian_model.py", line 458, in densification_postfix
optimizable_tensors = self.cat_tensors_to_optimizer(d)
File "/code1/dyn/codes/OpenWorld/OpenGS/HI-SLAM2/hislam2/gaussian/scene/gaussian_model.py", line 411, in cat_tensors_to_optimizer
stored_state["exp_avg"] = torch.cat(
RuntimeError: CUDA error: invalid configuration argument
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

@Willyzw
Copy link
Owner

Willyzw commented Dec 27, 2024

Sorry to hear about the issue. At first glance, it seems like the error might be related to densification, possibly caused by NaNs or zero-length tensors that can’t be concatenated. maybe due to incorrect tracking data. Did you maybe use the preprocess_scannet.py to prepare data? For better understanding could you rerun the code with the CUDA_LAUNCH_BLOCKING=1 prefix to confirm if the error actually occurs at the reported line. Additionally, it would to helpful to inspect the tensors using the following code snippet to check for anomalies in densification_postfix function

for k, v in d.items():
    print(k, v.shape, torch.isnan(v).any(), torch.isinf(v).any())

This should provide more insights wht is going wrong

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

No branches or pull requests

2 participants