Train a CompGS model
mainTraining is performed using the run.sh script located in the gaussian-splatting directory.
Steps:
- Open
run.shand modify the paths for your dataset and the output folder. - Execute the training script:
cd gaussian-splatting bash run.sh
Optimization Tips: To reduce training time by 30%-50% at the cost of a minor performance reduction, you can:
- Decrease
kmeans_iters(e.g., from 10 to 5). - Increase
kmeans_freq(e.g., to 200).
Opacity Regularization:
By default, run.sh includes the opacity_reg argument. This regularizes opacity values and prunes highly transparent Gaussians, leading to further compression (up to 40-50x total) and faster rendering. To disable this, remove opacity_reg from the arguments list in run.sh.
cd gaussian-splatting
bash run.sh