-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.json
108 lines (108 loc) · 2.6 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"name": "AMSMNet",
"n_gpu": 4,
"arch": {
"type": "AMSMNetModel",
"args": {
"input_channels": 3,
"intermediate_channels": 64,
"num_ms_resblocks": 4,
"num_fusion_resblocks": 4,
"default_kernel_size": 3,
"rgb_range": 255,
"attention_input_channels": 3,
"dense_growth_rate": 8
}
},
"arch_fcn8s": {
"type": "FCN8sModel",
"args": {
"n_class": 3
}
},
"adobe_data_loader": {
"type": "AMSMNetDataLoader",
"args": {
"data_dir": "/public/adobe",
"batch_size": 8,
"shuffle": true,
"validation_split": 0.01,
"num_workers": 2
}
},
"alphamatting_data_loader": {
"type": "AMSMNetTestDataLoader",
"args": {
"data_dir": "/1/Datasets/alphamatting/low-res",
"batch_size": 4,
"shuffle": true,
"validation_split": 0.05,
"num_workers": 1
}
},
"carmedia_data_loader": {
"type": "AMSMNetCarMediaDataLoader",
"args": {
"data_dir": "/public/car-media",
"batch_size": 4,
"shuffle": true,
"validation_split": 0.05,
"num_workers": 1
}
},
"human_data_loader":{
"type": "HumanDataLoader",
"args": {
"data_dir": "/public/DAPM-Dataset",
"batch_size": 8,
"shuffle": true,
"validation_split": 0.01,
"num_workers": 1
}
},
"optimizer": {
"type": "Adam",
"args": {
"lr": 0.0001,
"weight_decay": 0.0004,
"amsgrad": true
}
},
"loss": "smooth_l1_loss",
"content_loss": {
"type": "VGG16ContentModel",
"args": {
"model": "vgg16",
"weights": [
0.25,
0.25,
0.25,
0.25
]
}
},
"alpha_loss_weight": 20,
"comp_loss_weight": 20,
"content_loss_weight": 0.1,
"metrics": [
"mse", "sad"
],
"lr_scheduler": {
"type": "StepLR",
"args": {
"step_size": 50,
"gamma": 0.1
}
},
"trainer": {
"epochs": 200,
"save_dir": "/home/niuc/amsmnet-log",
"save_period": 1,
"verbosity": 2,
"monitor": "min val_loss",
"early_stop": 50,
"log_step": 4,
"tensorboardX": true,
"log_dir": "/home/niuc/amsmnet-log/runs"
}
}