You can generate PCA visualizations of the features during or after inference.
During inference:
Add the --pca-vis flag to the lang_inference command. Use --no-save if you only want the visualizations and want to skip saving the large .pt feature tensor.
From existing feature files:
If you already have a .pt feature file, use scripts.pca_colorize_features.
Output files:
<scene>_pca_colored.ply: A colored point cloud using Gaussian centers.<scene>_feat_vis_3dgs.ply: A renderable 3DGS PLY that replaces SH color with PCA feature colors.
# Option 1: During inference (with no intermediate .pt save)
python -m tools.lang_inference \
--config configs/inference/lang-pretrain-pt-v3m1-3dgs.py \
--checkpoint /path/to/model_best.pth \
--input-root /path/to/preprocessed_scene \
--output-dir /path/to/output_dir \
--pca-vis \
--no-save
# Option 2: From existing .pt file
python -m scripts.pca_colorize_features \
--feature-path /path/to/output_dir/<scene>_feat.pt \
--input-root /path/to/preprocessed_scene \
--output-dir /path/to/output_dir