-
Notifications
You must be signed in to change notification settings - Fork 14
/
kitti_docker.sh
executable file
·44 lines (36 loc) · 1.38 KB
/
kitti_docker.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
while getopts s: flag
do
case "${flag}" in
s) sequence=${OPTARG};;
esac
done
: "${sequence:="04"}"
dataset_path="/home/sequences"
results_path="/home/results"
no_skip="true"
tracking_config_path="/app/pnec/data/tracking/KITTI"
tracking_calib_path="/app/pnec/data/tracking/KITTI/kitti_calib.json"
config_path="/app/pnec/data"
pnec_config="${config_path}/test_config.yaml"
tracking_path="${tracking_config_path}/${sequence}.json"
images_path="${dataset_path}/${sequence}/image_0"
timestamp_path="${dataset_path}/${sequence}/times.txt"
gt_path="${dataset_path}/${sequence}/poses.txt"
gt=""
# Copy ground truth into results folder
cp $gt_path $results_path/$sequence/poses.txt
if [ "$sequence" = "00" ] || [ "$sequence" = "01" ] || [ "$sequence" = "02" ]
then
camera_config="$config_path/config_kitti00-02.yaml"
fi
if [ "$sequence" = "03" ]
then
camera_config="$config_path/config_kitti03.yaml"
fi
if [ "$sequence" = "04" ] || [ "$sequence" = "05" ] || [ "$sequence" = "06" ] || [ "$sequence" = "07" ] || [ "$sequence" = "08" ] || [ "$sequence" = "09" ] || [ "$sequence" = "10" ]
then
camera_config="$config_path/config_kitti04-10.yaml"
fi
[ ! -d "$results_path/$sequence" ] && mkdir -p "$results_path/$sequence"
output="$results_path/$sequence/"
./build/pnec_vo $camera_config $pnec_config $tracking_path $tracking_calib_path $images_path $timestamp_path $output $no_skip ${gt}