diff --git a/README.md b/README.md index e792ff0..7cdc805 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/arguments/__init__.py b/arguments/__init__.py index c7a5f11..8c16a18 100644 --- a/arguments/__init__.py +++ b/arguments/__init__.py @@ -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): diff --git a/gaussian_renderer/__init__.py b/gaussian_renderer/__init__.py index d765fab..a9d2121 100644 --- a/gaussian_renderer/__init__.py +++ b/gaussian_renderer/__init__.py @@ -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) diff --git a/submodules/diff-gaussian-rasterization b/submodules/diff-gaussian-rasterization index eb01570..9c5c202 160000 --- a/submodules/diff-gaussian-rasterization +++ b/submodules/diff-gaussian-rasterization @@ -1 +1 @@ -Subproject commit eb015708bb0ae0468367b60ec8d809a5f1ec34fe +Subproject commit 9c5c2028f6fbee2be239bc4c9421ff894fe4fbe0