khalednabawi11 commited on
Commit
0c3bbc0
·
verified ·
1 Parent(s): 50ba5ae

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +37 -6
config.json CHANGED
@@ -1,8 +1,39 @@
1
  {
2
- "architectures": ["ResNet"],
3
- "num_labels": 2,
4
- "hidden_size": 512,
5
- "num_hidden_layers": 18,
6
- "output_attentions": false,
7
- "output_hidden_states": false
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  }
 
1
  {
2
+ "architectures": [
3
+ "ResNet50"
4
+ ],
5
+ "model_type": "tf_resnet",
6
+ "layers": {
7
+ "base_model": {
8
+ "weights": "imagenet",
9
+ "include_top": false
10
+ },
11
+ "classifier": {
12
+ "dense_1": {
13
+ "units": 64,
14
+ "activation": "relu",
15
+ "kernel_regularizer": {
16
+ "l2": 0.001
17
+ }
18
+ },
19
+ "dropout_1": {
20
+ "rate": 0.4
21
+ },
22
+ "dense_2": {
23
+ "units": 1,
24
+ "activation": "sigmoid"
25
+ }
26
+ }
27
+ },
28
+ "loss": "binary_crossentropy",
29
+ "optimizer": {
30
+ "type": "Adam",
31
+ "learning_rate": 1e-5
32
+ },
33
+ "metrics": ["accuracy", "recall", "precision"],
34
+ "description": "A custom ResNet50-based model fine-tuned for tuberculosis detection (binary classification).",
35
+ "preprocessing": {
36
+ "input_shape": [224, 224, 3],
37
+ "rescale": [0, 255]
38
+ }
39
  }