### nerfacto
# ns-train instant-ngp \
# --output-dir ./exp/ \
# --experiment-name site1_column \
# --vis viewer+wandb \
# --data ../dataset/site1_column/ \
# --max-num-iterations 200000 \
# --save-only-latest-checkpoint False \
# --steps-per-save 20000 \
# --steps-per-eval-all-images 20000 \
# nerfstudio-data

#### splatfacto
# ns-train instant-ngp \
# --output-dir ./exp/ \
# --experiment-name si_room2_instant-ngp \
# --vis viewer+wandb \
# --data ../dataset/si_room2/ \
# --max-num-iterations 200000 \
# --save-only-latest-checkpoint False \
# --steps-per-save 20000 \
# --steps-per-eval-all-images 20000 \
# nerfstudio-data

#### extract mesh
# ns-export poisson \
# --load-config ../dataset/engineering_building2/engbuilding2/nerfacto/2023-11-28_221711/config.yml \
# --output-dir exports/mesh/ \
# --target-num-faces 50000 \
# --num-pixels-per-side 2048 \
# --normal-method open3d \
# --num-points 1000000 \
# --remove-outliers True \
# --use-bounding-box True \
# --bounding-box-min -1 -1 -1 \
# --bounding-box-max 1 1 1

# ns-viewer --load-config ./exp/site1_column/instant-ngp/2024-05-30_153717/config.yml

ns-render camera-path --load-config ./exp/site1_column/instant-ngp/2024-05-30_153717/config.yml \
--camera-path-filename /home/yt/yt/autocon/nerfstudio/transform/site1_column/nerf_camera_path.json \
--output-path renders/example.mp4 


################ Pose Sync. ##################

# 1. export_path
# ns-export cameras --load-config exp/siai_room_colmap_nerfacto/nerfacto/2024-03-20_180738/config.yml --output-dir poses

# 2. convert the coordinate system using python code

# 3. render
# ns-render camera-path --load-config exp/siai_room_colmap_nerfacto/nerfacto/2024-03-20_180738/config.yml \
# --camera-path-filename poses/camera_path_new.json --output-path renders/input_data.mp4 
