Divyasreepat commited on
Commit
06d869e
1 Parent(s): 34d20ed

Upload folder using huggingface_hub

Browse files
Files changed (8) hide show
  1. README.md +32 -0
  2. config.json +98 -0
  3. image_converter.json +33 -0
  4. metadata.json +6 -0
  5. model.weights.h5 +3 -0
  6. preprocessor.json +51 -0
  7. task.json +161 -0
  8. task.weights.h5 +3 -0
README.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: keras-hub
3
+ ---
4
+ This is a [`EfficientNet` model](https://keras.io/api/keras_hub/models/efficient_net) uploaded using the KerasHub library and can be used with JAX, TensorFlow, and PyTorch backends.
5
+ This model is related to a `ImageClassifier` task.
6
+
7
+ Model config:
8
+ * **name:** efficient_net_backbone
9
+ * **trainable:** True
10
+ * **width_coefficient:** 1.0
11
+ * **depth_coefficient:** 1.1
12
+ * **dropout:** 0
13
+ * **depth_divisor:** 8
14
+ * **min_depth:** None
15
+ * **activation:** swish
16
+ * **input_shape:** [None, None, 3]
17
+ * **stackwise_kernel_sizes:** [3, 3, 5, 3, 5, 5, 3]
18
+ * **stackwise_num_repeats:** [1, 2, 2, 3, 3, 4, 1]
19
+ * **stackwise_input_filters:** [32, 16, 24, 40, 80, 112, 192]
20
+ * **stackwise_output_filters:** [16, 24, 40, 80, 112, 192, 320]
21
+ * **stackwise_expansion_ratios:** [1, 6, 6, 6, 6, 6, 6]
22
+ * **stackwise_squeeze_and_excite_ratios:** [0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25]
23
+ * **stackwise_strides:** [1, 2, 2, 2, 1, 2, 1]
24
+ * **stackwise_block_types:** ['v1', 'v1', 'v1', 'v1', 'v1', 'v1', 'v1']
25
+ * **include_stem_padding:** True
26
+ * **use_depth_divisor_as_min_depth:** True
27
+ * **cap_round_filter_decrease:** True
28
+ * **stem_conv_padding:** valid
29
+ * **batch_norm_momentum:** 0.9
30
+ * **batch_norm_epsilon:** 1e-05
31
+
32
+ This model card has been generated automatically and should be completed by the model author. See [Model Cards documentation](https://huggingface.co/docs/hub/model-cards) for more information.
config.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.efficientnet.efficientnet_backbone",
3
+ "class_name": "EfficientNetBackbone",
4
+ "config": {
5
+ "name": "efficient_net_backbone",
6
+ "trainable": true,
7
+ "width_coefficient": 1.0,
8
+ "depth_coefficient": 1.1,
9
+ "dropout": 0,
10
+ "depth_divisor": 8,
11
+ "min_depth": null,
12
+ "activation": "swish",
13
+ "input_shape": [
14
+ null,
15
+ null,
16
+ 3
17
+ ],
18
+ "stackwise_kernel_sizes": [
19
+ 3,
20
+ 3,
21
+ 5,
22
+ 3,
23
+ 5,
24
+ 5,
25
+ 3
26
+ ],
27
+ "stackwise_num_repeats": [
28
+ 1,
29
+ 2,
30
+ 2,
31
+ 3,
32
+ 3,
33
+ 4,
34
+ 1
35
+ ],
36
+ "stackwise_input_filters": [
37
+ 32,
38
+ 16,
39
+ 24,
40
+ 40,
41
+ 80,
42
+ 112,
43
+ 192
44
+ ],
45
+ "stackwise_output_filters": [
46
+ 16,
47
+ 24,
48
+ 40,
49
+ 80,
50
+ 112,
51
+ 192,
52
+ 320
53
+ ],
54
+ "stackwise_expansion_ratios": [
55
+ 1,
56
+ 6,
57
+ 6,
58
+ 6,
59
+ 6,
60
+ 6,
61
+ 6
62
+ ],
63
+ "stackwise_squeeze_and_excite_ratios": [
64
+ 0.25,
65
+ 0.25,
66
+ 0.25,
67
+ 0.25,
68
+ 0.25,
69
+ 0.25,
70
+ 0.25
71
+ ],
72
+ "stackwise_strides": [
73
+ 1,
74
+ 2,
75
+ 2,
76
+ 2,
77
+ 1,
78
+ 2,
79
+ 1
80
+ ],
81
+ "stackwise_block_types": [
82
+ "v1",
83
+ "v1",
84
+ "v1",
85
+ "v1",
86
+ "v1",
87
+ "v1",
88
+ "v1"
89
+ ],
90
+ "include_stem_padding": true,
91
+ "use_depth_divisor_as_min_depth": true,
92
+ "cap_round_filter_decrease": true,
93
+ "stem_conv_padding": "valid",
94
+ "batch_norm_momentum": 0.9,
95
+ "batch_norm_epsilon": 1e-05
96
+ },
97
+ "registered_name": "keras_hub>EfficientNetBackbone"
98
+ }
image_converter.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.efficientnet.efficientnet_image_converter",
3
+ "class_name": "EfficientNetImageConverter",
4
+ "config": {
5
+ "name": "efficient_net_image_converter",
6
+ "trainable": true,
7
+ "dtype": {
8
+ "module": "keras",
9
+ "class_name": "DTypePolicy",
10
+ "config": {
11
+ "name": "float32"
12
+ },
13
+ "registered_name": null
14
+ },
15
+ "image_size": [
16
+ 224,
17
+ 224
18
+ ],
19
+ "scale": [
20
+ 0.017124753831663668,
21
+ 0.01750700280112045,
22
+ 0.017429193899782133
23
+ ],
24
+ "offset": [
25
+ -2.1179039301310043,
26
+ -2.0357142857142856,
27
+ -1.8044444444444445
28
+ ],
29
+ "interpolation": "bicubic",
30
+ "crop_to_aspect_ratio": true
31
+ },
32
+ "registered_name": "keras_hub>EfficientNetImageConverter"
33
+ }
metadata.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "keras_version": "3.5.0",
3
+ "keras_hub_version": "0.16.1",
4
+ "parameter_count": 6575232,
5
+ "date_saved": "2024-10-22@16:27:32"
6
+ }
model.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4f80bd3e2030c44c84d624cf51cd22f9a4a363a65e4230c6c4a9ff9f1904e26
3
+ size 27118976
preprocessor.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.efficientnet.efficientnet_image_classifier_preprocessor",
3
+ "class_name": "EfficientNetImageClassifierPreprocessor",
4
+ "config": {
5
+ "name": "efficient_net_image_classifier_preprocessor",
6
+ "trainable": true,
7
+ "dtype": {
8
+ "module": "keras",
9
+ "class_name": "DTypePolicy",
10
+ "config": {
11
+ "name": "float32"
12
+ },
13
+ "registered_name": null
14
+ },
15
+ "image_converter": {
16
+ "module": "keras_hub.src.models.efficientnet.efficientnet_image_converter",
17
+ "class_name": "EfficientNetImageConverter",
18
+ "config": {
19
+ "name": "efficient_net_image_converter",
20
+ "trainable": true,
21
+ "dtype": {
22
+ "module": "keras",
23
+ "class_name": "DTypePolicy",
24
+ "config": {
25
+ "name": "float32"
26
+ },
27
+ "registered_name": null
28
+ },
29
+ "image_size": [
30
+ 224,
31
+ 224
32
+ ],
33
+ "scale": [
34
+ 0.017124753831663668,
35
+ 0.01750700280112045,
36
+ 0.017429193899782133
37
+ ],
38
+ "offset": [
39
+ -2.1179039301310043,
40
+ -2.0357142857142856,
41
+ -1.8044444444444445
42
+ ],
43
+ "interpolation": "bicubic",
44
+ "crop_to_aspect_ratio": true
45
+ },
46
+ "registered_name": "keras_hub>EfficientNetImageConverter"
47
+ },
48
+ "config_file": "preprocessor.json"
49
+ },
50
+ "registered_name": "keras_hub>EfficientNetImageClassifierPreprocessor"
51
+ }
task.json ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.efficientnet.efficientnet_image_classifier",
3
+ "class_name": "EfficientNetImageClassifier",
4
+ "config": {
5
+ "backbone": {
6
+ "module": "keras_hub.src.models.efficientnet.efficientnet_backbone",
7
+ "class_name": "EfficientNetBackbone",
8
+ "config": {
9
+ "name": "efficient_net_backbone",
10
+ "trainable": true,
11
+ "width_coefficient": 1.0,
12
+ "depth_coefficient": 1.1,
13
+ "dropout": 0,
14
+ "depth_divisor": 8,
15
+ "min_depth": null,
16
+ "activation": "swish",
17
+ "input_shape": [
18
+ null,
19
+ null,
20
+ 3
21
+ ],
22
+ "stackwise_kernel_sizes": [
23
+ 3,
24
+ 3,
25
+ 5,
26
+ 3,
27
+ 5,
28
+ 5,
29
+ 3
30
+ ],
31
+ "stackwise_num_repeats": [
32
+ 1,
33
+ 2,
34
+ 2,
35
+ 3,
36
+ 3,
37
+ 4,
38
+ 1
39
+ ],
40
+ "stackwise_input_filters": [
41
+ 32,
42
+ 16,
43
+ 24,
44
+ 40,
45
+ 80,
46
+ 112,
47
+ 192
48
+ ],
49
+ "stackwise_output_filters": [
50
+ 16,
51
+ 24,
52
+ 40,
53
+ 80,
54
+ 112,
55
+ 192,
56
+ 320
57
+ ],
58
+ "stackwise_expansion_ratios": [
59
+ 1,
60
+ 6,
61
+ 6,
62
+ 6,
63
+ 6,
64
+ 6,
65
+ 6
66
+ ],
67
+ "stackwise_squeeze_and_excite_ratios": [
68
+ 0.25,
69
+ 0.25,
70
+ 0.25,
71
+ 0.25,
72
+ 0.25,
73
+ 0.25,
74
+ 0.25
75
+ ],
76
+ "stackwise_strides": [
77
+ 1,
78
+ 2,
79
+ 2,
80
+ 2,
81
+ 1,
82
+ 2,
83
+ 1
84
+ ],
85
+ "stackwise_block_types": [
86
+ "v1",
87
+ "v1",
88
+ "v1",
89
+ "v1",
90
+ "v1",
91
+ "v1",
92
+ "v1"
93
+ ],
94
+ "include_stem_padding": true,
95
+ "use_depth_divisor_as_min_depth": true,
96
+ "cap_round_filter_decrease": true,
97
+ "stem_conv_padding": "valid",
98
+ "batch_norm_momentum": 0.9,
99
+ "batch_norm_epsilon": 1e-05
100
+ },
101
+ "registered_name": "keras_hub>EfficientNetBackbone"
102
+ },
103
+ "preprocessor": {
104
+ "module": "keras_hub.src.models.efficientnet.efficientnet_image_classifier_preprocessor",
105
+ "class_name": "EfficientNetImageClassifierPreprocessor",
106
+ "config": {
107
+ "name": "efficient_net_image_classifier_preprocessor",
108
+ "trainable": true,
109
+ "dtype": {
110
+ "module": "keras",
111
+ "class_name": "DTypePolicy",
112
+ "config": {
113
+ "name": "float32"
114
+ },
115
+ "registered_name": null
116
+ },
117
+ "image_converter": {
118
+ "module": "keras_hub.src.models.efficientnet.efficientnet_image_converter",
119
+ "class_name": "EfficientNetImageConverter",
120
+ "config": {
121
+ "name": "efficient_net_image_converter",
122
+ "trainable": true,
123
+ "dtype": {
124
+ "module": "keras",
125
+ "class_name": "DTypePolicy",
126
+ "config": {
127
+ "name": "float32"
128
+ },
129
+ "registered_name": null
130
+ },
131
+ "image_size": [
132
+ 224,
133
+ 224
134
+ ],
135
+ "scale": [
136
+ 0.017124753831663668,
137
+ 0.01750700280112045,
138
+ 0.017429193899782133
139
+ ],
140
+ "offset": [
141
+ -2.1179039301310043,
142
+ -2.0357142857142856,
143
+ -1.8044444444444445
144
+ ],
145
+ "interpolation": "bicubic",
146
+ "crop_to_aspect_ratio": true
147
+ },
148
+ "registered_name": "keras_hub>EfficientNetImageConverter"
149
+ },
150
+ "config_file": "preprocessor.json"
151
+ },
152
+ "registered_name": "keras_hub>EfficientNetImageClassifierPreprocessor"
153
+ },
154
+ "name": "efficient_net_image_classifier",
155
+ "num_classes": 1000,
156
+ "pooling": "avg",
157
+ "activation": null,
158
+ "dropout": 0.0
159
+ },
160
+ "registered_name": "keras_hub>EfficientNetImageClassifier"
161
+ }
task.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7a5be149b0cd3c82600e3b3c921004c121d2c083e6567f770455486e4cb6475
3
+ size 32259640