-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_example.sh
executable file
·45 lines (34 loc) · 2.09 KB
/
run_example.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
#!/bin/bash
if [ $# -lt 3 ]; then
echo "Usage: $0 scene_id run_num 'list_of_object_id'"
exit 1
fi
scene=$1
run_num=$2
target_id=$3
experiment_path=${4:-"./experiment"}
##########################################################################
for RUN in $(seq 1 $run_num)
do
planner=uniform
python plan.py --config $planner implicit --exp_path $experiment_path/$scene --exp_id $RUN --target_class_id $target_id
python eval_nerf.py --test_path test_data/$scene --exp_path $experiment_path/$scene/$planner/$RUN
python eval_mesh.py --test_path test_data/$scene --exp_path $experiment_path/$scene/$planner/$RUN
planner=coverage
python plan.py --config $planner implicit --exp_path $experiment_path/$scene --exp_id $RUN --target_class_id $target_id
python eval_nerf.py --test_path test_data/$scene --exp_path $experiment_path/$scene/$planner/$RUN
python eval_mesh.py --test_path test_data/$scene --exp_path $experiment_path/$scene/$planner/$RUN
planner=max_distance
python plan.py --config $planner implicit --exp_path $experiment_path/$scene --exp_id $RUN --target_class_id $target_id
python eval_nerf.py --test_path test_data/$scene --exp_path $experiment_path/$scene/$planner/$RUN
python eval_mesh.py --test_path test_data/$scene --exp_path $experiment_path/$scene/$planner/$RUN
planner=uncertainty_all
python plan.py --config $planner implicit --exp_path $experiment_path/$scene --exp_id $RUN --target_class_id $target_id
python eval_nerf.py --test_path test_data/$scene --exp_path $experiment_path/$scene/$planner/$RUN
python eval_mesh.py --test_path test_data/$scene --exp_path $experiment_path/$scene/$planner/$RUN
planner=uncertainty_target
python plan.py --config $planner implicit --exp_path $experiment_path/$scene --exp_id $RUN --target_class_id $target_id
python eval_nerf.py --test_path test_data/$scene --exp_path $experiment_path/$scene/$planner/$RUN
python eval_mesh.py --test_path test_data/$scene --exp_path $experiment_path/$scene/$planner/$RUN
python plot.py --scene_path $experiment_path/$scene
done