forked from Vipermdl/OCR_detection_IC15
-
Notifications
You must be signed in to change notification settings - Fork 23
/
config.json
51 lines (49 loc) · 1.15 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
{
"name": "united_2019-05-13_自有数据",
"cuda": true,
"gpus": [0],
"finetune": "",
"need_grad_backbone": true,
"data_loader": {
"dataset":"mydataset",
"image_dir": "/data/OCR/own_dataset/training_images",
"annotation_dir": "/data/OCR/own_dataset/training_gt",
"batch_size": 4,
"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",
"metrics": ["fots_metric"],
"trainer": {
"epochs": 10000,
"save_dir": "/data/OCR/model/own_dataset",
"save_freq": 1,
"verbosity": 2,
"monitor": "loss",
"monitor_mode": "min"
},
"arch": "FOTSModel",
"model": {
"mode": "united",
"scale": 512,
"crnn": {
"img_h": 16,
"hidden": 1024
},
"keys": "number_and_dot"
}
}