-
Notifications
You must be signed in to change notification settings - Fork 112
/
config.json
83 lines (83 loc) · 1.96 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
76
77
78
79
80
81
82
83
{
"name": "PAN",
"data_loader": {
"type": "ImageDataset",
"args": {
"dataset": {
"train_data_path": [
[
"dataset1.txt1",
"dataset1.txt2"
],
[
"dataset2.txt1",
"dataset2.txt2"
]
],
"train_data_ratio": [
0.5,
0.5
],
"val_data_path": "path/to/test/",
"input_size": 640,
"img_channel": 3,
"shrink_ratio": 0.5
},
"loader": {
"validation_split": 0.1,
"train_batch_size": 16,
"shuffle": true,
"pin_memory": false,
"num_workers": 6
}
}
},
"arch": {
"type": "PANModel",
"args": {
"backbone": "resnet18",
"fpem_repeat": 2,
"pretrained": true,
"segmentation_head": "FPEM_FFM"
}
},
"loss": {
"type": "PANLoss",
"args": {
"alpha": 0.5,
"beta": 0.25,
"delta_agg": 0.5,
"delta_dis": 3,
"ohem_ratio": 3
}
},
"optimizer": {
"type": "Adam",
"args": {
"lr": 0.001,
"weight_decay": 0,
"amsgrad": true
}
},
"lr_scheduler": {
"type": "StepLR",
"args": {
"step_size": 200,
"gamma": 0.1
}
},
"trainer": {
"seed": 2,
"gpus": [
0
],
"epochs": 600,
"display_interval": 10,
"show_images_interval": 50,
"resume_checkpoint": "",
"finetune_checkpoint": "",
"output_dir": "output",
"tensorboard": true,
"metrics": "hmean"
}
}