-
Notifications
You must be signed in to change notification settings - Fork 27
/
cf_pairing.json
125 lines (115 loc) · 3.22 KB
/
cf_pairing.json
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"name": "pairing",
"cuda": true,
"gpu": 0,
"save_mode": "state_dict",
"override": true,
"super_computer":false,
"data_loader": {
"data_set_name": "FormsGraphPair",
"special_dataset": "simple",
"data_dir": "../data/NAF_dataset",
"batch_size": 1,
"shuffle": true,
"num_workers": 1,
"crop_to_page":false,
"color":false,
"rescale_range": [0.4,0.65],
"crop_params": {
"crop_size":[652,1608],
"pad":0
},
"no_blanks": true,
"swap_circle":true,
"no_graphics":true,
"cache_resized_images": true,
"rotation": false,
"only_opposite_pairs": true
},
"validation": {
"shuffle": false,
"rescale_range": [0.52,0.52],
"crop_params": null,
"batch_size": 1
},
"lr_scheduler_type": "none",
"optimizer_type": "Adam",
"optimizer": {
"lr": 0.001,
"weight_decay": 0
},
"loss": {
"box": "YoloLoss",
"edge": "sigmoid_BCE_loss",
"nn": "MSE",
"class": "sigmoid_BCE_loss"
},
"loss_weights": {
"box": 1.0,
"edge": 0.5,
"nn": 0.25,
"class": 0.25
},
"loss_params":
{
"box": {"ignore_thresh": 0.5,
"bad_conf_weight": 20.0,
"multiclass":true}
},
"metrics": [],
"trainer": {
"class": "GraphPairTrainer",
"iterations": 125000,
"save_dir": "saved/",
"val_step": 5000,
"save_step": 25000,
"save_step_minor": 250,
"log_step": 250,
"verbosity": 1,
"monitor": "loss",
"monitor_mode": "none",
"warmup_steps": 1000,
"conf_thresh_init": 0.5,
"conf_thresh_change_iters": 0,
"retry_count":1,
"unfreeze_detector": 2000,
"partial_from_gt": 0,
"stop_from_gt": 20000,
"max_use_pred": 0.5,
"use_all_bb_pred_for_rel_loss": true,
"use_learning_schedule": true,
"adapt_lr": false
},
"arch": "PairingGraph",
"model": {
"detector_checkpoint": "saved/detector/checkpoint-iteration150000.pth",
"conf_thresh": 0.5,
"start_frozen": true,
"use_rel_shape_feats": "corner",
"use_detect_layer_feats": 16,
"use_2nd_detect_layer_feats": 0,
"use_2nd_detect_scale_feats": 2,
"use_2nd_detect_feats_size": 64,
"use_fixed_masks": true,
"no_grad_feats": true,
"expand_rel_context": 150,
"featurizer_start_h": 32,
"featurizer_start_w": 32,
"featurizer_conv": ["sep128","M","sep128","sep128","M","sep256","sep256","M",238],
"featurizer_fc": null,
"pred_nn": true,
"pred_class": false,
"expand_bb_context": 150,
"featurizer_bb_start_h": 32,
"featurizer_bb_start_w": 32,
"bb_featurizer_conv": ["sep64","M","sep64","sep64","M","sep128","sep128","M",250],
"graph_config": {
"arch": "BinaryPairReal",
"in_channels": 256,
"bb_out": 1,
"rel_out": 1,
"layers": ["FC256","FC256"],
"layers_bb": ["FC256"]
}
}
}