Michael Steiner*,
Thomas Köhler*,
Lukas Radl,
Felix Windisch,
Dieter Schmalstieg,
Markus Steinberger
* denotes equal contribution
Project Page | Full Paper | Dataset
This repository contains the official authors implementation associated with the paper "AAA-Gaussians: Anti-Aliased and Artifact-Free 3D Gaussian Rendering", which can be found here.
Abstract: Although 3D Gaussian Splatting (3DGS) has revolutionized 3D reconstruction, it still faces challenges such as aliasing, projection artifacts, and view inconsistencies, primarily due to the simplification of treating splats as 2D entities. We argue that incorporating full 3D evaluation of Gaussians throughout the 3DGS pipeline can effectively address these issues while preserving rasterization efficiency. Specifically, we introduce an adaptive 3D smoothing filter to mitigate aliasing and present a stable view-space bounding method that eliminates popping artifacts when Gaussians extend beyond the view frustum. Furthermore, we promote tile-based culling to 3D with screen-space planes, accelerating rendering and reducing sorting costs for hierarchical rasterization. Our method achieves state-of-the-art quality on in-distribution evaluation sets and significantly outperforms other approaches for out-of-distribution views. Our qualitative evaluations further demonstrate the effective removal of aliasing, distortions, and popping artifacts, ensuring real-time, artifact-free rendering.
@inproceedings{steiner2025aaags,
author = {Steiner, Michael and K{\"o}hler, Thomas and Radl, Lukas and Windisch, Felix and Schmalstieg, Dieter and Steinberger, Markus},
title = {{AAA-Gaussians: Anti-Aliased and Artifact-Free 3D Gaussian Rendering}},
booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
pages = {27650--27659},
year = {2025}
}Our repository is built on StopThePop, which is in turn based on Inria 3D Gaussian Splatting. For a full breakdown on how to get the code running, please consider 3DGS's Readme.
The project is split into submodules, each maintained in a separate github repository:
- AAA-Gaussians-Rasterization: A clone of the StopThePop-Rasterization which build on the original diff-gaussian-rasterization that contains our CUDA rasterizer implementation
- AAA-Gaussians-SIBR: A clone of the SIBR_StopThePop which builds on the SIBR Core project, containing an adapted viewer with our additional settings and functionalities
The majority of the projects is licensed under the "Gaussian-Splatting License", with the exception of:
- StopThePop header files: MIT License
- FLIP: BSD-3 License
For more information refer to our Notice and the "Gaussian-Splatting License".
We also make use of additional publicly available code published under the same "Gaussian-Splatting License"
- Mip Splatting: https://github.com/autonomousvision/mip-splatting
- 3D Gaussian Splatting as Markov Chain Monte Carlo: https://github.com/ubc-vision/3dgs-mcmc
There are also several changes in the original source code. If you use any of our additional functionalities, please cite our paper and link to this repository.
The repository contains submodules, thus please check it out with
# HTTPS
git clone https://github.com/DerThomy/AAA-Gaussians --recursiveOur default, provided install method is based on Conda package and environment management:
SET DISTUTILS_USE_SDK=1 # Windows only
conda env create --file environment.yml
conda activate aaa-gsNote: This process assumes that you have CUDA SDK 12 installed.
Subsequently, install the CUDA rasterizer:
pip install submodules/diff-gaussian-rasterizationNote: This can take several minutes. If you experience unreasonably long build times, consider using StopThePop fast build mode.
The train.py script takes a .json config file as the argument --splatting_config, which should contain the following information (this example is also the default config.json, if none is provided):
{
"sort_settings":
{
"sort_mode": 3, // Global (0), Per-Pixel Full (1), Per-Pixel K-Buffer (2), Hierarchical (3)
"sort_order": 3, /* Viewspace Z-Depth (0), Worldspace Distance (1),
Per-Tile Depth at Tile Center (2), Per-Tile Depth at Max Contrib. Pos. (3) */
"queue_sizes":
{
"per_pixel": 4, // Used for: Per-Pixel K-Buffer and Hierarchical
"tile_2x2": 8, // Used only for Hierarchical
"tile_4x4": 64 // Used only for Hierarchical
}
},
"culling_settings":
{
"rect_bounding": true, // Bound 2D Gaussians with a rectangle (instead of a square)
"tight_opacity_bounding": true, // Bound 2D Gaussians by considering their opacity value
"tile_based_culling": true, /* Cull Tiles where the max. contribution is below the alpha threshold;
Recommended to be used together with Load Balancing*/
"hierarchical_4x4_culling": true, // Used only for Hierarchical
},
"load_balancing": true, // Use load balancing for per-tile calculations (culling, depth, and duplication)
"proper_ewa_scaling": true, /* For "eval_3D: false": Proper dilation of opacity, as proposed by Yu et al. ("Mip-Splatting");
For "eval_3D: true": Our proposed adaptive 3D anti aliasing filter;
Model also needs to be trained with this setting */
"eval_3D": true // Use our 3D evaluation instead of 3DGS projection
"new_aabb": true // Use our view space plane bounding for bounding box calculation
}These values can be overwritten through the command line.
Call python train.py --help to see all available options.
At the start of training, the provided arguments will be written into the output directory.
The render.py script uses the config.json in the model directory per default, with the option to overwrite through the command line.
To train different models you can create your own config file based on our config and run:
python train.py --splatting_config configs/your_config.json -s <path to COLMAP or NeRF Synthetic dataset>New Command Line Arguments for train.py
The maximum number of Gaussians to densify to for training.
Full config to specify the flavor of Gaussian Splatting. See configs/ for pre-defined configs.
Specify Sort Mode - must be one of {GLOBAL,PPX_FULL,PPX_KBUFFER,HIER}
Specify Sort Order - must be one of {Z_DEPTH,DISTANCE,PTD_CENTER,PTD_MAX}
Specify size of 4x4 tile queue - only needed if using sort_mode HIER, only 64 supported.
Specify size of 2x2 tile queue - only needed if using sort_mode HIER, only {8,12,20} supported.
Specify size of per-pixel queue: If using sort_mode HIER, only {4,8,16} supported. If using sort_mode KBUFFER, all values are supported.
Bound 2D Gaussians with a rectangle instead of a circle - must be one of {True,False}
Bound 2D Gaussians by considering their opacity - must be one of {True,False}
Cull complete tiles based on opacity - must be one of {True,False} (recommended with Load Balancing)
Cull Gaussians for 4x4 subtiles - must be one of {True,False}, only when using sort_mode HIER
Perform per-tile computations cooperatively (e.g. duplication) - must be one of {True,False}
Dilation of 2D Gaussians (no eval_3D) / 3D Gaussians (eval_3D) - must be one of {True,False}
Evaluate Gaussians in 3D as proposed by Hahlbohm et. al. ("Efficient Perspective-Correct 3D Gaussian Splatting Using Hybrid Transparency") - must be one of {True,False}
If eval_3D, bounds Gaussians with our novel proposed view space plane bounding - must be one of {True,False}
Original Command Line Arguments for train.py
Path to the source directory containing a COLMAP or Synthetic NeRF data set.
Path where the trained model should be stored (output/<random> by default).
Alternative subdirectory for COLMAP images (images by default).
Add this flag to use a MipNeRF360-style training/test split for evaluation.
Specifies resolution of the loaded images before training. If provided 1, 2, 4 or 8, uses original, 1/2, 1/4 or 1/8 resolution, respectively. For all other values, rescales the width to the given number while maintaining image aspect. If not set and input image width exceeds 1.6K pixels, inputs are automatically rescaled to this target.
Specifies where to put the source image data, cuda by default, recommended to use cpu if training on large/high-resolution dataset, will reduce VRAM consumption, but slightly slow down training. Thanks to HrsPythonix.
Add this flag to use white background instead of black (default), e.g., for evaluation of NeRF Synthetic dataset.
Order of spherical harmonics to be used (no larger than 3). 3 by default.
Flag to make pipeline compute forward and backward of SHs with PyTorch instead of ours.
Flag to make pipeline compute forward and backward of the 3D covariance with PyTorch instead of ours.
Enables debug mode if you experience errors. If the rasterizer fails, a dump file is created that you may forward to us in an issue so we can take a look.
Debugging is slow. You may specify an iteration (starting from 0) after which the above debugging becomes active.
Number of total iterations to train for, 30_000 by default.
IP to start GUI server on, 127.0.0.1 by default.
Port to use for GUI server, 6009 by default.
Space-separated iterations at which the training script computes L1 and PSNR over test set, 7000 30000 by default.
Space-separated iterations at which the training script saves the Gaussian model, 7000 30000 <iterations> by default.
Space-separated iterations at which to store a checkpoint for continuing later, saved in the model directory.
Path to a saved checkpoint to continue training from.
Flag to omit any text written to standard out pipe.
Spherical harmonics features learning rate, 0.0025 by default.
Opacity learning rate, 0.05 by default.
Scaling learning rate, 0.005 by default.
Rotation learning rate, 0.001 by default.
Noise learning rate for MCMC densification 0.00005
Scale regularization for MCMC densification 0.01
Opacity regularization for MCMC densification 0.01
Number of steps (from 0) where position learning rate goes from initial to final. 30_000 by default.
Initial 3D position learning rate, 0.00016 by default.
Final 3D position learning rate, 0.0000016 by default.
Position learning rate multiplier (cf. Plenoxels), 0.01 by default.
Iteration where densification starts, 500 by default.
Iteration where densification stops, 15_000 by default.
Limit that decides if points should be densified based on 2D position gradient, 0.0002 by default.
How frequently to densify, 100 (every 100 iterations) by default.
How frequently to reset opacity, 3_000 by default.
Influence of SSIM on total loss from 0 to 1, 0.2 by default.
Percentage of scene extent (0--1) a point must exceed to be forcibly densified, 0.01 by default.
By default, the trained models use all available images in the dataset.
To train them while withholding a test set for evaluation, use the --eval flag.
This way, you can render training/test sets and produce error metrics as follows:
python train.py -s <path to COLMAP or NeRF Synthetic dataset> --eval # Train with train/test split
python render.py -m <path to trained model> # Generate renderings and gaussian count
python metrics.py -m <path to trained model> # Compute error metrics on renderingsCommand Line Arguments for render.py
Flag to enable depth rendering.
Flag to skip rendering the training set.
Flag to skip rendering the test set.
Path to the trained model directory you want to create renderings for.
Flag to omit any text written to standard out pipe.
The below parameters will be read automatically from the model path, based on what was used for training. However, you may override them by providing them explicitly on the command line.
Path to the source directory containing a COLMAP or Synthetic NeRF data set.
Alternative subdirectory for COLMAP images (images by default).
Add this flag to use a MipNeRF360-style training/test split for evaluation.
Changes the resolution of the loaded images before training. If provided 1, 2, 4 or 8, uses original, 1/2, 1/4 or 1/8 resolution, respectively. For all other values, rescales the width to the given number while maintaining image aspect. 1 by default.
Add this flag to use white background instead of black (default), e.g., for evaluation of NeRF Synthetic dataset.
Flag to make pipeline render with computed SHs from PyTorch instead of ours.
Flag to make pipeline render with computed 3D covariance from PyTorch instead of ours.
Command Line Arguments for metrics.py
Space-separated list of model paths for which metrics should be computed.
We further provide the full_eval.py script.
This script specifies the routine used in our evaluation and demonstrates the use of some additional parameters, e.g., --images (-i) to define alternative image directories within COLMAP data sets.
If you have downloaded and extracted all the training data, you can run it like this:
python full_eval.py -m360 <mipnerf360 folder> -tat <tanks and temples folder> -db <deep blending folder> --config <splatting config file>If you want to evaluate our pre-trained models, you have to download the source datsets and indicate their location to render.py, just as done here:
python render.py -m <path to pre-trained model> -s <path to COLMAP dataset>Alternatively, you can modify the source_path with the cfg_args-file and manually insert the correct path.
Note: We included our models, which were used in our evaluation: to minimize file size, we only include the final checkpoint. We also include the final, rendered images, hence you can reproduce our results easily.
Command Line Arguments for full_eval.py
Flag to skip training stage.
Flag to skip rendering stage.
Flag to skip metrics calculation stage.
Directory to put renderings and results in, ./eval by default, set to pre-trained model location if evaluating them.
Path to MipNeRF360 source datasets, required if training or rendering.
Path to Tanks&Temples source datasets, required if training or rendering.
Path to Deep Blending source datasets, required if training or rendering.
Following 3DGS, we provide interactive viewers for our method: remote and real-time.
Our viewing solutions are based on the SIBR_StopThePop which extends the SIBR framework, developed by the GRAPHDECO group for several novel-view synthesis projects.
Our modified viewer contains additional debug modes, and options to disable several of our proposed optimizations.
The settings on startup are based on the config.json file in the model directory (if it exists).
The implementation is hosted here.
Hardware requirements and setup steps are identical to 3DGS, hence, refer to the corresponding README for details.
If you cloned with submodules (e.g., using --recursive), the source code for the viewers is found in SIBR_viewers.
CMake should take care of your dependencies.
cd SIBR_viewers
cmake -Bbuild .
cmake --build build --target install --config ReleaseYou may specify a different configuration, e.g. RelWithDebInfo or Debug if you need more control during development.
You will need to install a few dependencies before running the project setup.
# Dependencies
sudo apt install -y libglew-dev libassimp-dev libboost-all-dev libgtk-3-dev libopencv-dev libglfw3-dev libavdevice-dev libavcodec-dev libeigen3-dev libxxf86vm-dev libembree-dev
# Project setup
cd SIBR_viewers
cmake -Bbuild . -DCMAKE_BUILD_TYPE=Release # add -G Ninja to build faster
cmake --build build -j24 --target installAfter extracting or installing the viewers, you may run the compiled SIBR_gaussianViewer_app[_config] app in <SIBR install dir>/bin, e.g.:
./<SIBR install dir>/bin/SIBR_gaussianViewer_app -m <path to trained model> --filter3d --rendering-size <rendering size, e.g. 1920 1080>It should suffice to provide the -m parameter pointing to a trained model directory. Alternatively, you can specify an override location for training input data using -s. Combine it with --force-aspect-ratio if you want the exact resolution and don't mind image distortion.
For performance reasons, StopThePop uses templates for several of their options, causing very long compile times for our submodule and SIBR.
Hence, they provide a STOPTHEPOP_FASTBUILD option in submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer.h.
We have this option enabled by default as we found that their default config works fine. If you plan to change the configuration simply comment out
#define STOPTHEPOP_FASTBUILDThis will however result in longer compile times!
Note: For
SIBR, the correspondingCMakeLists.txtis located inSIBR_viewers/extlibs/CudaRasterizer/CudaRasterizer/CMakeLists.txt, andrasterizer.his located inSIBR_viewers/extlibs/CudaRasterizer/CudaRasterizer/cuda_rasterizer/rasterizer.h
Please consider 3DGS's FAQ, contained in their README. In addition, several issues are also covered on 3DGS's issues page. We will update this FAQ as issues arise.
