Arham-Irfan commited on
Commit
b5bc95a
·
verified ·
1 Parent(s): 99191c5

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +44 -2
config.json CHANGED
@@ -3,5 +3,47 @@
3
  "model_name": "Densenet169_pnuemonia_binaryclassification",
4
  "architecture": "densenet169",
5
  "task": "image-classification",
6
- "classes": ["Normal", "Pneumonia"]
7
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  "model_name": "Densenet169_pnuemonia_binaryclassification",
4
  "architecture": "densenet169",
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.DenseNet169_Weights.DEFAULT",
18
+ "classifier_dropout": 0.4,
19
+ "batch_size": 128,
20
+ "epochs": 30,
21
+ "optimizer": "Lion",
22
+ "scheduler": "OneCycleLR",
23
+ "learning_rate": {
24
+ "features_lr": 7e-5,
25
+ "classifier_lr": 1e-4
26
+ },
27
+ "loss_function": "FocalLoss",
28
+ "focal_loss_params": {
29
+ "alpha": 2.5,
30
+ "gamma": 2
31
+ },
32
+ "augmentation": {
33
+ "resize": [224, 224],
34
+ "random_flip": 0.3,
35
+ "random_affine": {
36
+ "degrees": [-15, 15],
37
+ "translate": [0.1, 0.1],
38
+ "scale": [0.85, 1.15]
39
+ },
40
+ "random_color_jitter": {
41
+ "brightness": 0.2,
42
+ "contrast": 0.2
43
+ },
44
+ "random_blur": 0.2,
45
+ "random_erasing": 0.1
46
+ },
47
+ "early_stopping_patience": 7,
48
+ "device": "cuda"
49
+ }