-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsuperpoint_RSSDIVCS_train.yaml
More file actions
112 lines (97 loc) · 3.37 KB
/
superpoint_RSSDIVCS_train.yaml
File metadata and controls
112 lines (97 loc) · 3.37 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
data:
# name: 'coco'
dataset: 'RSSDIVCS' # 'RSSDIVCS' /'Coco'
labels: /home/lhl/data/data/superpoint-train/logs/magicpoint_synth_homoAdapt_RSSDIVCS/predictions
# labels: logs/magicpoint_synth_homoAdapt_coco/predictions
root: # datasets/COCO
root_split_txt: # /datasets/COCO
gaussian_label:
enable: true
params:
GaussianBlur: {sigma: 0.2}
cache_in_memory: false
preprocessing:
resize: [256, 256]
# resize: [240, 320]
augmentation:
photometric:
enable: true
primitives: [
'random_brightness', 'random_contrast', 'additive_speckle_noise',
'additive_gaussian_noise', 'additive_shade', 'motion_blur']
params:
random_brightness: {max_abs_change: 50}
random_contrast: {strength_range: [0.5, 1.5]}
additive_gaussian_noise: {stddev_range: [0, 10]}
additive_speckle_noise: {prob_range: [0, 0.0035]}
additive_shade:
transparency_range: [-0.5, 0.5]
kernel_size_range: [100, 150]
motion_blur: {max_kernel_size: 3}
homographic:
enable: false # not implemented
warped_pair:
enable: true
params:
translation: true
rotation: true
scaling: true
perspective: true
scaling_amplitude: 0.2
perspective_amplitude_x: 0.2
perspective_amplitude_y: 0.2
patch_ratio: 0.85
max_angle: 1.57
allow_artifacts: true # true
valid_border_margin: 3
front_end_model: 'SuperPoint_fronted' # 'Train_model_frontend'
training:
workers_train: 32 # 16
workers_val: 16 # 2
model:
# name: 'magic_point'
# name: 'SuperPointNet_heatmap'
# name: 'SuperPointNet_retrieval'
# name: 'SuperPointNet_gauss2'
# name: 'SuperPointNet_ResNet152'
params: {
}
detector_loss:
loss_type: 'softmax'
batch_size: 64 # 32
eval_batch_size: 64 # 32
learning_rate: 0.0001 # 0.0001
detection_threshold: 0.015 # 0.015
lambda_loss: 1 # 1
nms: 4
dense_loss:
enable: false
params:
descriptor_dist: 4 # 4, 7.5
lambda_d: 800 # 800
sparse_loss:
enable: true
params:
num_matching_attempts: 1000
num_masked_non_matches_per_match: 100
lamda_d: 1
dist: 'cos'
method: '2d'
other_settings: 'train 2d, gauss 0.2'
# subpixel:
# enable: false
# params:
# subpixel_channel: 2
# settings: 'predict flow directly'
# loss_func: 'subpixel_loss_no_argmax' # subpixel_loss, subpixel_loss_no_argmax
retrain: True # set true for new model /True/False/Finetune
reset_iter: True # set true to set the iteration number to 0
train_iter: 200000 # 170000
validation_interval: 200 # 2000
tensorboard_interval: 200 # 200
save_interval: 200 # 2000
validation_size: 5
save_dir:
#pretrained: 'logs/superpoint_coco_heat2_0/checkpoints/superPointNet_170000_checkpoint.pth.tar' #pretrained on COCO
#pretrained : '/home/lhl/data/visgeoloca/logs/default/2023-07-17_23-16-28/best_model.pth' # raw
#pretrained: '/home/lhl/data/superpoint-train/logs/superpoint_coco_finetune/superPointNet_11000_checkpoint.pth.tar'