forked from novioleo/FOTS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_mjsynth.json
61 lines (58 loc) · 1.27 KB
/
config_mjsynth.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
{
"name": "icdar2015",
"cuda": true,
"gpus": [0],
"finetune": "",
"need_grad_backbone": true,
"data_loader": {
"dataset":"icdar2015",
"data_dir": "/content/icdar2015",
"batch_size": 8,
"shuffle": true,
"workers": 0
},
"validation": {
"validation_split": 0.15,
"shuffle": true
},
"lr_scheduler_type": "ExponentialLR",
"lr_scheduler_freq": 50,
"lr_scheduler": {
"gamma": 0.94
},
"optimizer_type": "Adam",
"optimizer": {
"lr": 0.0001,
"weight_decay": 1e-5
},
"loss": "FOTSLoss",
"loss_lambdas": {
"lambda_recog": 1,
"lambda_reg": 1,
"lambda_theta": 10
},
"metrics": ["fots_metric"],
"trainer": {
"epochs": 10000,
"save_dir": "/content/save_dir",
"save_freq": 1,
"verbosity": 2,
"monitor": "loss",
"monitor_mode": "min"
},
"arch": "FOTSModel",
"model": {
"mode": "detection",
"scale": 512,
"crnn": {
"img_h": 16,
"hidden": 512
},
"keys": "custom_1"
},
"prediction": {
"score_map_threshold": 0.5,
"box_threshold": 0.1,
"nms_threshold": 0.2
}
}