-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
64 lines (63 loc) · 1.05 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
{
"name": "UNet",
"n_gpu": 1,
"arch": {
"type": "UNet",
"args": {
"num_classes": 19
}
},
"train_data_loader": {
"type": "CityScapesDataLoader",
"args": {
"data_dir": "CityScapes",
"phase": "train",
"batch_size": 8,
"shuffle": true,
"num_workers": 8
}
},
"valid_data_loader": {
"type": "CityScapesDataLoader",
"args": {
"data_dir": "CityScapes",
"phase": "val",
"batch_size": 4,
"shuffle": true,
"num_workers": 8
}
},
"optimizer": {
"type": "SGD",
"args": {
"lr": 0.05,
"weight_decay": 0.0005,
"momentum": 0.9
}
},
"loss": {
"type": "CrossEntropyLoss",
"args": {
}
},
"metrics": [
"accuracy",
"mIoU"
],
"lr_scheduler": {
"type": "StepLR",
"args": {
"step_size": 1,
"gamma": 0.997
}
},
"trainer": {
"epochs": 484,
"save_dir": "saved/",
"save_period": 30,
"verbosity": 2,
"monitor": "min val_loss",
"early_stop": -1,
"tensorboard": true
}
}