Train Your First 3DGS model#

SplatWizard provides both the original 3DGS model and a series of compression-related model implementations. Taking the original 3DGS as an example, you can train it using default parameters:

Note

The sw-train and sw-eval commands are generic entry points for all models in SplatWizard. While the example below uses the standard 3DGS pipeline, some compression-oriented models may require additional renderer outputs, model-specific configuration, or extra codec-related modules beyond the default 3DGS workflow. When switching to another model, please also check its model-zoo page and related tutorial documents.

sw-train \
  --source_path /data/MipNeRF-360/bicycle \   # specify the directory of dataset
  --output_dir /output/gs \                   # specify output directory
  --model 3dgs \                              # specify model
  --optim 3dgs                                # specify optimization parameters

To evaluate the model, using

sw-eval \
    --source_path /data/MipNeRF-360/bicycle \
    --output_dir /output/gs \                  
    --model 3dgs \
    --optim 3dgs \
    --checkpoint /output/gs/checkpoints/ckpt30000.pth