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

ValueError: not enough values to unpack (expected 4, got 2) #49

Open
guohaotian0320 opened this issue Jul 16, 2024 · 3 comments
Open

ValueError: not enough values to unpack (expected 4, got 2) #49

guohaotian0320 opened this issue Jul 16, 2024 · 3 comments

Comments

@guohaotian0320
Copy link

When I run the train code, I get the following error: Traceback (most recent call last): | 0/80000 [00:00<? , ?it/s]
File "train_gui.py", line 1886, in
gui.train(args.iterations)
File "train_gui.py", line 1000, in train
self.train_node_rendering_step()
File "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 "/data2/ght/SC-GS-master/gaussian_renderer/init.py", line 157, in render
cov3D_precomp=cov3D_precomp)
ValueError: not enough values to unpack (expected 4, got 2)

The diff_gaussian_rasterization I installed is in the link, but it seems that the return parameters of the rendering function do not match, do you know how to solve it? Look forward to your reply!

@yihua7
Copy link
Owner

yihua7 commented Jul 17, 2024

Hi,
Could you check the output of your installed rasterizer (e.g the number of tensors and their shapes)? It seems inconsistent with ours.

@guohaotian0320
Copy link
Author

Hi,
Could you check the output of your installed rasterizer (e.g the number of tensors and their shapes)? It seems inconsistent with ours.
I used the rasterizer from your project link, but it only returned two variables, not four,

@yihua7
Copy link
Owner

yihua7 commented Jul 29, 2024

Hi,
You should recheck it since the lib I recommend is from: https://github.com/ashawkey/diff-gaussian-rasterization/tree/d986da0d4cf2dfeb43b9a379b6e9fa0a7f3f7eea.
As you can see in its readme file the output has four elements.

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