kampkelly commited on
Commit
dc08063
1 Parent(s): 5556236

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +33 -4
config.json CHANGED
@@ -3,18 +3,47 @@
3
  "EfficientNetB0"
4
  ],
5
  "model_type": "EfficientNetB0",
6
- "num_labels": 7,
7
- "hidden_size": 128,
8
  "num_attention_heads": 1,
9
  "num_hidden_layers": 2,
10
- "intermediate_size": 0,
11
  "hidden_act": "relu",
12
  "hidden_dropout_prob": 0.2,
13
  "attention_probs_dropout_prob": 0.2,
14
  "initializer_range": 0.02,
15
  "layer_norm_eps": 1e-12,
16
- "image size": 128,
17
  "num_channels": 3,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  "label2id": {
19
  "celeba": 0,
20
  "celeba_hq": 1,
 
3
  "EfficientNetB0"
4
  ],
5
  "model_type": "EfficientNetB0",
6
+ "num_labels": 7,
7
+ "hidden_size": 300,
8
  "num_attention_heads": 1,
9
  "num_hidden_layers": 2,
10
+ "intermediate_size": 1200,
11
  "hidden_act": "relu",
12
  "hidden_dropout_prob": 0.2,
13
  "attention_probs_dropout_prob": 0.2,
14
  "initializer_range": 0.02,
15
  "layer_norm_eps": 1e-12,
16
+ "image_size": 128,
17
  "num_channels": 3,
18
+ "rescale": 0.00392156863,
19
+ "shear_range": 0.2,
20
+ "zoom_range": 0.2,
21
+ "horizontal_flip": true,
22
+ "batch_size": 64,
23
+ "learning_rate": 0.001,
24
+ "loss": "categorical_crossentropy",
25
+ "metrics": ["accuracy"],
26
+ "callbacks": [
27
+ {
28
+ "type": "EarlyStopping",
29
+ "params": {
30
+ "monitor": "val_loss",
31
+ "mode": "min",
32
+ "patience": 5,
33
+ "verbose": 1
34
+ }
35
+ },
36
+ {
37
+ "type": "ModelCheckpoint",
38
+ "params": {
39
+ "filepath": "./best_model_EB0_7_classification.h5",
40
+ "monitor": "val_loss",
41
+ "mode": "min",
42
+ "verbose": 1,
43
+ "save_best_only": true
44
+ }
45
+ }
46
+ ]
47
  "label2id": {
48
  "celeba": 0,
49
  "celeba_hq": 1,