-
Notifications
You must be signed in to change notification settings - Fork 1
/
create_cam_opt.sh
executable file
·24 lines (18 loc) · 953 Bytes
/
create_cam_opt.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
# data_set_path 需要输入 output.json 所在的位置
data_set_path=$1
echo "[POSE OPT GEN] Generating pose optimization dataset."
folders=("HaiyanHall" "Library" "MemorialHall" "Museum" "PeonyGarden" "ScienceSquare" "theOldGate")
# 输出将会是 transforms_colmap_opt.json
for folder in ${folders[@]}; do
python3 ./pose_viz/camera_opt.py -i $folder -m colmap \
--input_pose_path $data_set_path --output_path $data_set_path -f
done
# 当前在 code/nerfstudio/下, 将 daya_ngp_samples 中的图像复制到 Daya_opt 中用作位姿优化
if [ ! -d ./renders/DayaTemple/ ]; then
mkdir -p ./renders/DayaTemple/
fi
cp ../../data/user_data/other_data/daya_ngp_samples/* ./renders/DayaTemple/
# 输出将会是 transforms_opt.json
python3 ./pose_viz/camera_opt.py -i DayaTemple -m none \
--input_pose_path $data_set_path --output_path $data_set_path -f
echo "[POSE OPT GEN] Generating pose optimization dataset completed."