Florian-Barthel/splatviz

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

Opened this issue · 1 comments

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

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