-
Notifications
You must be signed in to change notification settings - Fork 1
/
render_all.sh
executable file
·25 lines (23 loc) · 943 Bytes
/
render_all.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
dataset_path=$1
folders=("DayaTemple" "HaiyanHall" "Library" "Museum" "MemorialHall" "PeonyGarden" "ScienceSquare" "theOldGate")
modes=("" "_colmap" "_colmap" "_colmap" "_colmap" "_colmap" "_colmap" "_colmap")
image_nums=(83 25 53 17 54 42 32 47)
# pids=(0 0 0)
# for ((i=0;i<3;i++)); do
# idx1=$((2 * $i))
# idx2=$((2 * $i + 1))
# CUDA_VISIBLE_DEVICES=$i ./render_two.sh ${folders[$idx1]} ${folders[$idx2]} $dataset_path _no_skew $i &
# pids[$i]=$!
# done
echo "[RENDER MODEL] full model rendering started."
for ((i=0;i<4;i++)); do
folder=${folders[$i]}
mode=${modes[$i]}
img_num=${image_nums[$i]}
# 需要使用 _opt 作为后缀,因为我们使用进行了位姿 + 内参优化的结果进行渲染
CUDA_VISIBLE_DEVICES=1 ./render_one.sh ${folder} $dataset_path $mode 0.0 192 $img_num _opt
done
# for pid in ${pids[@]}; do
# wait $pid
# done
echo "[RENDER MODEL] full model rendering completed."