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

TypeError: GaussianRasterizationSettings.__new__() missing 1 required positional argument: 'antialiasing' #71

Open
foooolish opened this issue Nov 14, 2024 · 7 comments

Comments

@foooolish
Copy link

请问有知道怎么解决这个问题的吗?

@foooolish
Copy link
Author

找到原因了,是因为gaussian-splatting更新了antialiasing,需要更改gaussian_renderer配置文件__init__.py

@RAORAO611
Copy link

我也遇到了这个问题,请问具体你是怎么改的呢?

@foooolish
Copy link
Author

我也遇到了这个问题,请问具体你是怎么改的呢?

这个需要在gaussian_renderer/int.py这里加上antialiasing=True就好了:
raster_settings = GaussianRasterizationSettings(
image_height=int(data['novel_view']['height'][idx]),
image_width=int(data['novel_view']['width'][idx]),
tanfovx=tanfovx,
tanfovy=tanfovy,
bg=bg_color,
scale_modifier=1.0,
viewmatrix=data['novel_view']['world_view_transform'][idx],
projmatrix=data['novel_view']['full_proj_transform'][idx],
sh_degree=3,
campos=data['novel_view']['camera_center'][idx],
prefiltered=False,
debug=False,
antialiasing=True

)

传输数据也需要改一下,需要多加一个_ :
rasterizer = GaussianRasterizer(raster_settings=raster_settings)

# Rasterize visible Gaussians to image, obtain their radii (on screen).
rendered_image, _ ,_ = rasterizer(

@RAORAO611
Copy link

我也遇到了这个问题,请问具体你是怎么改的呢?

这个需要在gaussian_renderer/int.py这里加上antialiasing=True就好了: raster_settings = GaussianRasterizationSettings( image_height=int(data['novel_view']['height'][idx]), image_width=int(data['novel_view']['width'][idx]), tanfovx=tanfovx, tanfovy=tanfovy, bg=bg_color, scale_modifier=1.0, viewmatrix=data['novel_view']['world_view_transform'][idx], projmatrix=data['novel_view']['full_proj_transform'][idx], sh_degree=3, campos=data['novel_view']['camera_center'][idx], prefiltered=False, debug=False, antialiasing=True

)

传输数据也需要改一下,需要多加一个_ : rasterizer = GaussianRasterizer(raster_settings=raster_settings)

# Rasterize visible Gaussians to image, obtain their radii (on screen).
rendered_image, _ ,_ = rasterizer(

好的,非常感谢!!成功解决了我的问题!!

@Serein810
Copy link

非常感谢两位大佬,不然不知道要被卡多久

@3513695749
Copy link

谢谢两位大佬,完美解决,不然得困扰很长时间

@Datou
Copy link

Datou commented Dec 17, 2024

我也遇到了这个问题,请问具体你是怎么改的呢?

这个需要在gaussian_renderer/int.py这里加上antialiasing=True就好了: raster_settings = GaussianRasterizationSettings( image_height=int(data['novel_view']['height'][idx]), image_width=int(data['novel_view']['width'][idx]), tanfovx=tanfovx, tanfovy=tanfovy, bg=bg_color, scale_modifier=1.0, viewmatrix=data['novel_view']['world_view_transform'][idx], projmatrix=data['novel_view']['full_proj_transform'][idx], sh_degree=3, campos=data['novel_view']['camera_center'][idx], prefiltered=False, debug=False, antialiasing=True

)

传输数据也需要改一下,需要多加一个_ : rasterizer = GaussianRasterizer(raster_settings=raster_settings)

# Rasterize visible Gaussians to image, obtain their radii (on screen).
rendered_image, _ ,_ = rasterizer(

我这里的代码是这样的,报错信息是ValueError: not enough values to unpack (expected 4, got 3),请问应该如何修改?

rasterizer = GaussianRasterizer(raster_settings=raster_settings)

                # Rasterize visible Gaussians to image, obtain their radii (on screen).
                rendered_image, radii, rendered_depth, rendered_alpha = rasterizer(

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

5 participants