-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathpretrain.json
66 lines (64 loc) · 1.58 KB
/
pretrain.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
{
"name": "pretrain",
"cuda": true,
"gpus": [0, 1],
"precision": 32,
"backbone_weights": "./vision-0.9.0",
"pretrain": "/home/luning/dev/projects/FOTS.PyTorch/saved/pretrain_reg_nb/checkpoints/epoch=3-step=259999.ckpt",
"freeze_det": false,
"data_loader": {
"dataset":"synth800k",
"data_dir": "/home/luning/dev/data/SynthText800k/detection/",
"scale": 0.25,
"train": {
"batch_size": 8,
"max_transcripts_per_batch": 16,
"workers": 4,
"size": [640, 640]
},
"val": {
"batch_size": 8,
"max_transcripts_per_batch": 16,
"workers": 4,
"size": [640, 640]
}
},
"lr_scheduler": {
"name": null,
"args":
{
"gamma": 0.1,
"step_size": 10
}
},
"optimizer_type": "AdamW",
"optimizer": {
"lr": 0.0001
},
"loss": "FOTSLoss",
"metrics": ["fots_metric"],
"trainer": {
"epochs": 10,
"save_dir": "saved/",
"save_freq": 1,
"verbosity": 2,
"monitor": "loss",
"monitor_mode": "min",
"log_every_n_steps": 1,
"log_gpu_memory": "all",
"overfit_batches": 0.0,
"terminate_on_nan": false,
"fast_dev_run": false,
"check_val_every_n_epoch": 1,
"save_top_k": 5,
"every_n_train_steps": 100
},
"arch": "FOTSModel",
"model": {
"mode": "e2e",
"recognizer": {
"dropout": 0.2,
"max_width": 80
}
}
}