-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbatch_tumvi.py
44 lines (43 loc) · 1.24 KB
/
batch_tumvi.py
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
import os
import subprocess
for i in [\
'outdoors1',\
'outdoors2',\
'outdoors3',\
'outdoors4',\
'outdoors5',\
'outdoors6',\
'outdoors7',\
'outdoors8',\
'magistrale1',\
'magistrale2',\
'magistrale3',\
'magistrale4',\
'magistrale5',\
'magistrale6'
]:
p = subprocess.Popen("python demo_vio_tumvi.py" +\
" --imagedir=/mnt/z/tum-vi/dataset-%s_512_16/mav0/cam0/data"%i +\
" --imagestamp=/mnt/z/tum-vi/dataset-%s_512_16/mav0/cam0/data.csv"%i +\
" --imupath=/mnt/z/tum-vi/dataset-%s_512_16/mav0/imu0/data.csv"%i +\
" --gtpath=/mnt/z/tum-vi/dataset-%s_512_16/dso/gt_imu.csv"%i +\
# " --enable_h5" +\
# " --h5path=/home/zhouyuxuan/DROID-SLAM/%s.h5"%i +\
" --resultpath=results/result_%s.txt"%i +\
" --calib=calib/tumvi.txt" +\
" --stride=4" +\
" --max_factors=48" +\
" --active_window=12" +\
" --frontend_window=5" +\
" --frontend_radius=2" +\
" --frontend_nms=1" +\
" --far_threshold=0.02" +\
" --inac_range=3" +\
" --visual_only=0" +\
" --translation_threshold=0.2" +\
" --mask_threshold=-1.0" +\
" --skip_edge=[-4,-5,-6]" +\
" --save_pkl" +\
" --pklpath=results/%s.pkl"%i +\
" --show_plot",shell=True)
p.wait()