Arham-Irfan commited on
Commit
649f919
·
verified ·
1 Parent(s): 83201f1

Create config.json

Browse files
Files changed (1) hide show
  1. config.json +44 -0
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "googlenet",
3
+ "model_name": "Googlenet_pneumonia_binaryclassification",
4
+ "architecture": "googlenet",
5
+ "task": "image-classification",
6
+ "num_labels": 2,
7
+ "label2id": {
8
+ "Normal": 0,
9
+ "Pneumonia": 1
10
+ },
11
+ "id2label": {
12
+ "0": "Normal",
13
+ "1": "Pneumonia"
14
+ },
15
+ "input_size": [224, 224],
16
+ "pretrained": true,
17
+ "weights": "models.GoogLeNet_Weights.DEFAULT",
18
+ "classifier_dropout": 0.5,
19
+ "batch_size": 256,
20
+ "epochs": 20,
21
+ "optimizer": "Adam",
22
+ "scheduler": "ReduceLROnPlateau",
23
+ "learning_rate": {
24
+ "features_lr": 1e-4,
25
+ "classifier_lr": 1e-4
26
+ },
27
+ "loss_function": "CrossEntropyLoss",
28
+ "label_smoothing": 0.1,
29
+ "augmentation": {
30
+ "resize": [224, 224],
31
+ "random_flip": 0.3,
32
+ "random_affine": {
33
+ "degrees": [-5, 5],
34
+ "translate": [0.05, 0.05],
35
+ "scale": [0.95, 1.05]
36
+ },
37
+ "random_color_jitter": {
38
+ "brightness": 0.2,
39
+ "contrast": 0.2
40
+ }
41
+ },
42
+ "early_stopping_patience": 3,
43
+ "device": "cuda"
44
+ }