-
Notifications
You must be signed in to change notification settings - Fork 29
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
RuntimeError In pre-7500 steps. #25
Comments
Hi, |
Thank you for your quick response! I do not anything code, I just apply it to myself dataset. Also, when I debug this error, I found that the dim of features_dc and features_rest will change from [x, 0, 3] to [1, x, 1, 3] where x denote the node. Therefore, it will raise the "Sizes of tensors" error. |
In the initial phase, torch.cat((features_dc, features_rest), dim=1) == [node, 0, 3].cat([node, 1, 3]) dim=1 |
I reproduce this error, and print features_dc and features_rest, as shown below. "Initialization with all pcl. Need to reset the optimizer. [01/04 21:58:38] |
I doubt that the problem is that the initialized Gaussians are not aligned with the true scene content. That's why features_dc becomes zero-shape. On D-NeRF datasets or any other self-captured datasets that COLMAP point clouds are correct, such an error would not be raised. I suggest you try the solution here: #12 (comment). By keeping all points and converting them into Gaussians at the initialization step, the extinction of Gaussians at the first stage may be solved. If the above method can not solve your problem, you can try Line 160 in 26cd57d
However, I strongly doubt that a dynamic Gaussian can be trained on your data since inaccurate COLMAP point cloud means inaccurate camera poses. Anyway, you can try the above solutions and hope this information helps! :) |
Thanks for you reply! I will try it again, and report this problem latter. |
Hi, I have the same issue. If you've found a solution, could you share some suggestions?( I use the dataset of NeRF-DS) |
Traceback (most recent call last):
File "/home/cc/3dgs/SC-GS/train_gui.py", line 1886, in
gui.train(args.iterations)
File "/home/cc/3dgs/SC-GS/train_gui.py", line 1000, in train
self.train_node_rendering_step()
File "/home/cc/3dgs/SC-GS/train_gui.py", line 1276, in train_node_rendering_step
render_pkg_re = render(viewpoint_cam, self.deform.deform.as_gaussians, self.pipe, self.background, d_xyz, d_rot, d_scale, random_bg_color=random_bg_color, d_opacity=d_opacity, d_color=d_color, d_rot_as_res=self.deform.d_rot_as_res)
File "/home/cc/3dgs/SC-GS/gaussian_renderer/init.py", line 122, in render
sh_features = torch.cat([pc.get_features[:, :1] + d_color[:, None], pc.get_features[:, 1:]], dim=1) if d_color is not None and type(d_color) is not float else pc.get_features
File "/home/cc/3dgs/SC-GS/scene/gaussian_model.py", line 122, in get_features
return torch.cat((features_dc, features_rest), dim=1)
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 1 but got size 0 for tensor number 1 in the list.
The text was updated successfully, but these errors were encountered: