forked from jiangxiluning/FOTS.PyTorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
40 lines (39 loc) · 857 Bytes
/
config.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
{
"name": "FOTS",
"cuda": true,
"gpus": [0, 1],
"data_loader": {
"dataset":"synth800k",
"data_dir": "/home/luning/Dev/data/OCR/Recognition/Train/SynthText",
"batch_size": 24,
"shuffle": true,
"workers": 8
},
"validation": {
"validation_split": 0.2,
"shuffle": true
},
"lr_scheduler_type": "",
"lr_scheduler_freq": 10000,
"lr_scheduler": {
"gamma": 0.94
},
"optimizer_type": "Adam",
"optimizer": {
"lr": 0.001
},
"loss": "FOTSLoss",
"metrics": ["fots_metric"],
"trainer": {
"epochs": 10,
"save_dir": "saved/",
"save_freq": 1,
"verbosity": 2,
"monitor": "hmean",
"monitor_mode": "max"
},
"arch": "FOTSModel",
"model": {
"mode": "united"
}
}