-
Notifications
You must be signed in to change notification settings - Fork 1
/
script.sh
46 lines (39 loc) · 1.64 KB
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
MODE=$1
DEVICE=$2
SCENES_NERFSYN="chair drums ficus hotdog lego materials mic ship"
SCENES_TT="Barn Caterpillar Family Truck"
# https://github.com/pytorch/pytorch/issues/22866
# Need to set `OMP_NUM_THREADS` to prevent 2000% CPU usage
case $MODE in
nerfsyn-vanilla)
echo "NeRF-Synthetic dataset: vanilla"
for scene in $SCENES_NERFSYN; do
echo $scene
OMP_NUM_THREADS=1 CUDA_VISIBLE_DEVICES=$DEVICE python train.py --config configs/lego.txt --datadir ./data/nerf_synthetic/$scene --expname $scene
done
;;
nerfsyn-nerfacc-occgrid)
echo "NeRF-Synthetic: nerfacc (occgrid)"
for scene in $SCENES_NERFSYN; do
echo $scene
OMP_NUM_THREADS=1 CUDA_VISIBLE_DEVICES=$DEVICE python train.py --config configs/lego.txt --datadir ./data/nerf_synthetic/$scene --expname $scene --occ_grid_reso 128 --basedir ./log_nerfacc
done
;;
tt-vanilla)
echo "TT dataset: vanilla"
for scene in $SCENES_TT; do
echo $scene
OMP_NUM_THREADS=1 CUDA_VISIBLE_DEVICES=$DEVICE python train.py --config configs/truck.txt --datadir ./data/TanksAndTemple/$scene --expname $scene \
--render_only 1 --render_path 1 --render_test 0 --ckpt ./log/${scene}/${scene}.th
done
;;
tt-nerfacc-occgrid)
echo "TT dataset: nerfacc (occgrid)"
for scene in $SCENES_TT; do
echo $scene
OMP_NUM_THREADS=1 CUDA_VISIBLE_DEVICES=$DEVICE python train.py --config configs/truck.txt --datadir ./data/TanksAndTemple/$scene --expname $scene --occ_grid_reso 128 --basedir ./log_nerfacc \
--render_only 1 --render_path 1 --render_test 0 --ckpt ./log_nerfacc/${scene}/${scene}.th
done
;;
esac