-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_evaluation_bingham.sh
executable file
·33 lines (30 loc) · 1.23 KB
/
run_evaluation_bingham.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
#!/bin/bash
repo_dir_path=$(dirname $(realpath $0))
scripts_dir_path="$repo_dir_path/vapor/scripts"
ingp_dir_path="$HOME/code/instant-ngp"
dataset_dir_path="$HOME/data/AmbiguousReloc"
render_height=240
render_width=135
for scene in "blue_chairs" "seminar" "meeting_table" "staircase" "staircase_ext"
do for num_coeff in 50 10
do
run=$scene"_"$num_coeff
run_dir_path="$repo_dir_path/bingham_runs/$run"
scene_dir_path="$dataset_dir_path/$scene"
echo "evaluating run $run"
python $scripts_dir_path/visualize_mixture.py $run
python $scripts_dir_path/simulate_dist.py $run
python $scripts_dir_path/evaluate_samples.py $run
python $ingp_dir_path/scripts/run.py \
--mode nerf \
--load_snapshot $scene_dir_path/nerf.msgpack \
--screenshot_transforms $run_dir_path/transforms.json \
--screenshot_dir $run_dir_path/renders \
--width $render_width \
--height $render_height
python $scripts_dir_path/evaluate_renders.py $run \
--source bingham --width $render_width --height $render_height
python $scripts_dir_path/visualize_samples.py $run \
--source bingham --norender
done
done