Arham-Irfan commited on
Commit
3430b27
·
verified ·
1 Parent(s): 33857c2

Create config.json

Browse files
Files changed (1) hide show
  1. config.json +57 -0
config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "resnet",
3
+ "model_name": "Resnet18_pnuemonia_binaryclassification",
4
+ "architecture": "resnet18",
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.ResNet18_Weights.DEFAULT",
18
+ "classifier_dropout": 0.5,
19
+ "batch_size": 512,
20
+ "epochs": 25,
21
+ "optimizer": "AdamW",
22
+ "optimizer_params": {
23
+ "lr": 1e-4,
24
+ "betas": [0.9, 0.999],
25
+ "eps": 1e-8,
26
+ "weight_decay": 1e-4
27
+ },
28
+ "scheduler": {
29
+ "type": "OneCycleLR",
30
+ "max_lr": [1e-4, 1e-4, 1e-4, 1e-4, 1e-4, 1e-3],
31
+ "epochs": 25,
32
+ "pct_start": 0.3,
33
+ "anneal_strategy": "cos"
34
+ },
35
+ "loss_function": "FocalLoss",
36
+ "focal_loss_params": {
37
+ "alpha": 1,
38
+ "gamma": 2
39
+ },
40
+ "augmentation": {
41
+ "resize": [224, 224],
42
+ "random_flip": 0.5,
43
+ "random_affine": {
44
+ "degrees": [-10, 10],
45
+ "translate": [0.1, 0.1],
46
+ "scale": [0.9, 1.1]
47
+ },
48
+ "color_jitter": {
49
+ "brightness": 0.3,
50
+ "contrast": 0.3
51
+ },
52
+ "random_blur": 0.2,
53
+ "random_erasing": 0.2
54
+ },
55
+ "early_stopping_patience": 5,
56
+ "device": "cuda"
57
+ }