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) #47

Open
kk6398 opened this issue Oct 14, 2024 · 1 comment
Open

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

kk6398 opened this issue Oct 14, 2024 · 1 comment

Comments

@kk6398
Copy link

kk6398 commented Oct 14, 2024

Hi, I meet the quesiton as follow when I : python run_main.py

/splatviz/renderer/gaussian_renderer.py", line 85, in _render_impl
render = render_simple(viewpoint_camera=render_cam, pc=gs, bg_color=background_color.to("cuda"))
File "/data2/hkk/3dgs/splatviz/./gaussian-splatting/gaussian_renderer/init.py", line 171, in render_simple
rendered_image, rendered_depth, rendered_alpha, radii = rasterizer(
ValueError: not enough values to unpack (expected 4, got 2)
not enough values to unpack (expected 4, got 2)

Can u provide some advices?
Looking forward your reply

@Florian-Barthel
Copy link
Owner

Hi, it looks like you are using a different gaussian renderer module, which only returns

rendered_image, radii = rasterizer(...)

instead of:

rendered_image, rendered_depth, rendered_alpha, radii = rasterizer(...)

You can either adjust the line 171 in the gaussian_renderer/init.py or install the renderer that comes with splatviz as a submodule. To download the submodules after you have cloned the repo, execute this command:
git submodule update --init

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