sreenathsree1578 commited on
Commit
a1f8545
·
verified ·
1 Parent(s): 22a6bda

Upload 2 files

Browse files
Files changed (2) hide show
  1. model_config(2).json +41 -0
  2. preprocessing_config.json +21 -0
model_config(2).json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architecture": {
3
+ "base_model": "MobileNetV2",
4
+ "input_shape": [
5
+ 224,
6
+ 224,
7
+ 3
8
+ ]
9
+ },
10
+ "custom_layers": [
11
+ {
12
+ "type": "GlobalAveragePooling2D"
13
+ },
14
+ {
15
+ "type": "Dense",
16
+ "units": 128,
17
+ "activation": "relu"
18
+ },
19
+ {
20
+ "type": "Dropout",
21
+ "rate": 0.5
22
+ },
23
+ {
24
+ "type": "Dense",
25
+ "units": 1,
26
+ "activation": "sigmoid"
27
+ }
28
+ ],
29
+ "training": {
30
+ "optimizer": "Adam",
31
+ "learning_rate": 0.001,
32
+ "loss": "binary_crossentropy",
33
+ "metrics": [
34
+ "accuracy"
35
+ ]
36
+ },
37
+ "fine_tuning": {
38
+ "unfreeze_from_layer": 100,
39
+ "fine_tune_learning_rate": 0.0001
40
+ }
41
+ }
preprocessing_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image": {
3
+ "target_height": 224,
4
+ "target_width": 224,
5
+ "rescale_factor": 0.00392156862745098,
6
+ "color_mode": "rgb"
7
+ },
8
+ "data_generator": {
9
+ "batch_size": 32,
10
+ "class_mode": "binary"
11
+ },
12
+ "augmentation": {
13
+ "rotation_range": 20,
14
+ "width_shift_range": 0.2,
15
+ "height_shift_range": 0.2,
16
+ "horizontal_flip": true,
17
+ "zoom_range": 0.2,
18
+ "shear_range": 0.2,
19
+ "fill_mode": "nearest"
20
+ }
21
+ }