-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_loc_robotcar
More file actions
executable file
·78 lines (68 loc) · 2.08 KB
/
run_loc_robotcar
File metadata and controls
executable file
·78 lines (68 loc) · 2.08 KB
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
72
73
74
75
76
77
78
#!/bin/bash
root=/scratches/flyer_2
outputs=$root/fx221/localization/outputs/robotcar
dataset=$root/fx221/localization/RobotCar-Seasons
save_root=$root/fx221/exp/shloc/robotcar
image_dir=$root/fx221/localization/RobotCar-Seasons/images
weight_name=2021_10_17_00_21_32_robotcar_pspf_resnext101_32x4d_d4_u8_b16_R256_E500_ceohem_adam_poly_mlr_seg_cls_aug_stylized
seg_dir=$root/fx221/exp/shloc/robotcar/$weight_name/masks
query_fn=$dataset/queries_with_intrinsics_rear.txt
query_pair=datasets/robotcar/pairs-query-netvlad20-percam-perloc-rear.txt
gt_pose_fn=/data/cornucopia/fx221/localization/RobotCar-Seasons/3D-models/query_poses_v2.txt
#feat=resnetxn-triv2-0001-n4096-r1024-mask
feat=resnetxn-triv2-ms-0001-n4096-r1024-mask
#matcher=NNM
matcher=NNML
only_gt=0
feature_type="feat_max"
global_score_th=0.95
rec_th=200
nv_th=50
ransac_thresh=12
opt_thresh=8
covisibility_frame=20
init_type="clu"
retrieval_type="lrnv"
opt_type="clurefpos"
k_seg=10
k_can=1
k_rec=20
iters=5
radius=20
obs_thresh=3
python3 -m localization.localizer \
--only_gt $only_gt \
--retrieval_type $retrieval_type \
--gt_pose_fn $gt_pose_fn \
--image_dir $image_dir \
--seg_dir $seg_dir \
--dataset robotcar \
--map_gid_rgb_fn datasets/robotcar/robotcar_grgb_gid.txt \
--db_imglist_fn datasets/robotcar/robotcar_rear_db_imglist.txt \
--db_instance_fn robotcar \
--save_root $save_root \
--k_seg $k_seg \
--k_can $k_can \
--k_rec $k_rec \
--feature_type $feature_type \
--init_type $init_type \
--global_score_th $global_score_th \
--weight_name $weight_name \
--show_seg \
--reference_sfm $outputs/sfm_$feat-$matcher/model \
--queries $query_fn \
--retrieval $query_pair \
--features $outputs/feats-$feat.h5 \
--matcher_method $matcher \
--ransac_thresh $ransac_thresh \
--with_label \
--with_match \
--rec_th $rec_th \
--nv_th $nv_th \
--covisibility_frame $covisibility_frame \
--iters $iters \
--radius $radius \
--obs_thresh $obs_thresh \
--opt_thresh $opt_thresh \
--opt_type $opt_type \
--do_covisible_opt