-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrun.sh
executable file
·71 lines (55 loc) · 2.34 KB
/
run.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env bash
# add the root directory to PYTHONPATH
export PYTHONPATH=$PYTHONPATH:$(pwd)
# 2D experiments (2D point, ray, plane and box queries)
# initialise objects for 2D spatial queries
objects=("bunny" "chair" "dragon1" "dragon2" "house" "lucy" "star1" "star2" "teapot")
# loop over objects and dimensions
for object in "${objects[@]}"; do
# set command line arguments for various queries
point="--object_name ${object} --query point --dim 2"
ray="--object_name ${object} --query ray --dim 2"
plane="--object_name ${object} --query plane --dim 2"
box="--object_name ${object} --query box --dim 2"
# execute python script with the given arguments
python3 src/run_experiments.py $point
python3 src/run_experiments.py $ray
python3 src/run_experiments.py $plane
python3 src/run_experiments.py $box
done
# 3D experiments (3D point, ray, plane and box queries)
# initialise objects for 3D spatial queries
objects=("airplane" "armchair" "bunny" "camera" "car" "dragon" "sofa" "teapot" "teddy")
# loop over objects and dimensions
for object in "${objects[@]}"; do
# set command line arguments for various queries
point="--object_name ${object} --query point --dim 3"
ray="--object_name ${object} --query ray --dim 3"
plane="--object_name ${object} --query plane --dim 3"
box="--object_name ${object} --query box --dim 3"
# execute python script with the given arguments
python3 src/run_experiments.py $point
python3 src/run_experiments.py $ray
python3 src/run_experiments.py $plane
python3 src/run_experiments.py $box
done
# 4D experiments (4D point, ray, plane and box queries)
# initialise objects for 4D spatial queries
objects=("bunny" "teapot" "dragon")
# loop over objects and dimensions
for object in "${objects[@]}"; do
# set command line arguments for various queries
point="--object_name ${object} --query point --dim 4"
ray="--object_name ${object} --query ray --dim 4"
plane="--object_name ${object} --query plane --dim 4"
box="--object_name ${object} --query box --dim 4"
# execute python script with the given arguments
python3 src/run_experiments.py $point
python3 src/run_experiments.py $ray
python3 src/run_experiments.py $plane
python3 src/run_experiments.py $box
done
# wait for all background jobs to complete
wait
# make Table 1 from the results of the experiments above
python3 src/make_table1.py