forked from herobd/Visual-Template-Free-Form-Parsing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cf_test_no_vis_pairing.json
105 lines (98 loc) · 2.66 KB
/
cf_test_no_vis_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
{
"name": "test no_vis_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.008,
"weight_decay": 0
},
"loss": {
"box": "YoloLoss",
"edge": "sigmoid_BCE_loss"
},
"loss_weights": {
"box": 1,
"edge": 1
},
"loss_params":
{
"box": {"ignore_thresh": 0.5,
"bad_conf_weight": 20.0,
"multiclass":true}
},
"metrics": [],
"trainer": {
"class": "GraphPairTrainer",
"iterations": 200000,
"save_dir": "saved/",
"val_step": 10000,
"save_step": 50000,
"save_step_minor": 250,
"log_step": 250,
"verbosity": 1,
"monitor": "loss",
"monitor_mode": "none",
"warmup_steps": 1000,
"conf_thresh_init": 0.9,
"conf_thresh_change_iters": 5000,
"retry_count":3,
"unfreeze_detector": 99999000,
"partial_from_gt": 8000,
"stop_from_gt": 200000,
"use_bad_bb_pred_for_rel_loss": true
},
"arch": "PairingGraph",
"model": {
"detector_checkpoint": "saved/detector/checkpoint-iteration150000.pth",
"conf_thresh": 0.92,
"start_frozen": true,
"use_rel_shape_feats": "corner",
"expand_rel_context": 100,
"use_detect_layer_feats": 16,
"graph_config": {
"arch": "BinaryPairReal",
"in_channels": 256,
"node_channels": 0,
"edge_channels": 1,
"layers": ["FC256","FC256"],
"shape_layers": "saved/no_vis_pairing/checkpoint-iteration6000.pth",
"weight_split": 0.0
},
"featurizer_start_h": 10,
"featurizer_start_w": 10,
"featurizer_conv": [128,128,"M",256,240],
"featurizer_fc": null
}
}