-
Notifications
You must be signed in to change notification settings - Fork 39
/
config.json
56 lines (53 loc) · 1.13 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
{
"name": "squeezenet",
"n_gpu": 0,
"arch": {
"type": "squeezenet",
"args": {"n_class": 10,
"img_size": [32, 32],
"pretrained": true,
"pretrained_path": "./pretrained"
}
},
"data_loader": {
"type": "CIFAR10DataLoader",
"args":{
"data_dir": "data/",
"batch_size": 16,
"shuffle": true,
"validation_split": 0.1,
"num_workers": 4
}
},
"optimizer": {
"type": "Adam",
"args":{
"lr": 0.0003,
"weight_decay": 0,
"amsgrad": true
}
},
"loss": "cls_loss",
"metrics": [
"accuracy",
"topK_accuracy"
],
"lr_scheduler": {
"type": "StepLR",
"args": {
"step_size": 50,
"gamma": 0.1
}
},
"trainer": {
"epochs": 20,
"save_dir": "saved/",
"save_period": 1,
"verbosity": 2,
"verbose_per_epoch": 1000,
"monitor": "max val_accuracy",
"early_stop": 10,
"tensorboardX": true,
"log_dir": "saved/runs"
}
}