-
Notifications
You must be signed in to change notification settings - Fork 18
/
config.json
75 lines (75 loc) · 1.74 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"name": "DB",
"data_loader": {
"type": "ImageDataset",
"args": {
"dataset": {
"train_data_path": [
[
"./dataset_ic13and15_train.txt"
]
],
"train_data_ratio": [
1.0
],
"val_data_path": "./dataset_ic13_test.txt",
"input_size": 640,
"img_channel": 3,
"shrink_ratio": 0.4
},
"loader": {
"validation_split": 0.1,
"train_batch_size": 10,
"shuffle": true,
"pin_memory": false,
"num_workers": 8
}
}
},
"arch": {
"type": "DBModel",
"args": {
"backbone": "shufflenetv2",
"fpem_repeat": 2,
"pretrained": true,
"segmentation_head": "FPN"
}
},
"loss": {
"type": "DBLoss",
"args": {
"alpha": 1.0,
"beta": 10.0,
"ohem_ratio": 3
}
},
"optimizer": {
"type": "Adam",
"args": {
"lr": 0.001,
"weight_decay": 0,
"amsgrad": true
}
},
"lr_scheduler": {
"type": "StepLR",
"args": {
"step_size": 300,
"gamma": 0.1
}
},
"trainer": {
"seed": 2,
"gpus": [
5
],
"epochs": 1000,
"display_interval": 10,
"show_images_interval": 100,
"resume_checkpoint": "",
"finetune_checkpoint": "",
"output_dir": "output",
"tensorboard": false,
"metrics": "loss"
}
}