toggle antialiasing, update rasterizer

This commit is contained in:
alanvinx 2024-09-06 16:42:18 +02:00
parent 27c448840f
commit b4332aae6a
4 changed files with 5 additions and 11 deletions

View File

@ -513,15 +513,7 @@ To compensate for exposure changes in the different input images we optimize an
Again, other excellent papers have used similar ideas e.g. [NeRF-W](https://nerf-w.github.io/), [URF](https://urban-radiance-fields.github.io/).
### Anti aliasing
We added the EWA Filter from [Mip Splatting](https://niujinshuchong.github.io/mip-splatting/) in our codebase to remove aliasing. Antialiasing is enabled by default, to disable it please do the following:
1. Comment out `#define DGR_FIX_AA` in `submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h`.
2. Re-install the rasterizer in your environment:
```
pip uninstall diff-gaussian-rasterization
cd submodules/diff-gaussian-rasterization
rm -r build
pip install .
```
We added the EWA Filter from [Mip Splatting](https://niujinshuchong.github.io/mip-splatting/) in our codebase to remove aliasing. It is disabled by default but you can enable it by adding `--antialiasing` when training on a scene using `train.py` or rendering using `render.py`.
### SIBR: Top view
> `Views > Top view`

View File

@ -68,6 +68,7 @@ class PipelineParams(ParamGroup):
self.convert_SHs_python = False
self.compute_cov3D_python = False
self.debug = False
self.antialiasing = False
super().__init__(parser, "Pipeline Parameters")
class OptimizationParams(ParamGroup):

View File

@ -45,7 +45,8 @@ def render(viewpoint_camera, pc : GaussianModel, pipe, bg_color : torch.Tensor,
sh_degree=pc.active_sh_degree,
campos=viewpoint_camera.camera_center,
prefiltered=False,
debug=pipe.debug
debug=pipe.debug,
antialiasing=pipe.antialiasing
)
rasterizer = GaussianRasterizer(raster_settings=raster_settings)

@ -1 +1 @@
Subproject commit eb015708bb0ae0468367b60ec8d809a5f1ec34fe
Subproject commit 9c5c2028f6fbee2be239bc4c9421ff894fe4fbe0