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

Using custom number of points #482

Open
samiragarwala opened this issue Nov 18, 2023 · 9 comments
Open

Using custom number of points #482

samiragarwala opened this issue Nov 18, 2023 · 9 comments

Comments

@samiragarwala
Copy link

Hi! I was trying to initialise a custom number of points in the blender dataset reader but found runtime issues on doing the same. In particular, I am seeing issues such as RuntimeError: Function _RasterizeGaussiansBackward returned an invalid gradient at index 2 - got [0, 0, 3] but expected shape compatible with [0, 16, 3] when using more than 1 point and RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 1 but got size 15 for tensor number 1 in the list. when using a single point during initialisation. I would appreciate any insight about these issues. Thank you!

@Gragonfly
Copy link

+1, I met the same problem. 我怀疑可能是坐标系的问题

@zhengrongz
Copy link

@Gragonfly @samiragarwala Have you solved the problem? I met the same problem...

@ys31jp
Copy link

ys31jp commented Dec 22, 2023

I also meet the same issues, but on Colmap dataset.
RuntimeError: Function _RasterizeGaussiansBackward returned an invalid gradient at index 2 - got [0, 0, 3] but expected shape compatible with [0, 16, 3]

However, if i increase the number of points like from 100 to 1000, this issus wont happened. So, I guess it was the problem during optimization? I also looking at it.

@bluemoonwencong
Copy link

could you tell me how to increase "the number of points" ? thanks! @ys31jp

@Huster-YZY
Copy link

I face the same problem, by checking the code, I think the main reason leading to this problem is the "pruning". Sometimes, all Gaussians are pruned so that the number of gaussian is 0, and then, it may lead to this gradient computation error. Hope this suggestion could help you.

@Fengyee
Copy link

Fengyee commented Mar 10, 2024

I try to create a Colmap dataset with a single orthogonal camera. It is traced to the setting of the threshold for pruning large Gaussian kernels. If there is only one camera, the prune extent is 0 pruning everything.

@tomtom7899
Copy link

I have the same problem and the error throws alsways at the same Iteration (3100). It is happening with different colmap datasets. So far I tried datasets with roughly 7000 and 31000 initial points.
When I set --sh_degree 0 the training completes, but I am left with 0 splats.

@qianyuling-wl
Copy link

I have the same problem and the error throws alsways at the same Iteration (3100). It is happening with different colmap datasets. So far I tried datasets with roughly 7000 and 31000 initial points. When I set --sh_degree 0 the training completes, but I am left with 0 splats.

We have the same problem,so do I when iter 3100,have you solved?thank you!

@yifanlu0227
Copy link

You may have a bad initialization, no points fall in the camera views. @qianyuling-wl

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

10 participants