forked from Enigmatisms/nerfstudio-giga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender_all2.sh
executable file
·27 lines (25 loc) · 1.05 KB
/
render_all2.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
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=4;i<8;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
# extended rendering near-far plane
CUDA_VISIBLE_DEVICES=1 ./render_one.sh PeonyGarden $dataset_path _colmap 0.4 192 42 _replace
# for pid in ${pids[@]}; do
# wait $pid
# done
echo "[RENDER MODEL] full model rendering completed."