Divyasreepat commited on
Commit
796858f
1 Parent(s): ea62c02

Upload folder using huggingface_hub

Browse files
Files changed (8) hide show
  1. README.md +33 -0
  2. config.json +99 -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 +162 -0
  8. task.weights.h5 +3 -0
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.4
11
+ * **depth_coefficient:** 1.8
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
+ * **projection_activation:** None
32
+
33
+ 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,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.4,
8
+ "depth_coefficient": 1.8,
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
+ "projection_activation": null
97
+ },
98
+ "registered_name": "keras_hub>EfficientNetBackbone"
99
+ }
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
+ 320,
17
+ 320
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.17.0.dev0",
4
+ "parameter_count": 17673816,
5
+ "date_saved": "2024-10-31@14:25:59"
6
+ }
model.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3b1400723f1add299d3db1a452b634b552dcfa3ceee457c6155f298a7e43cea
3
+ size 71830744
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
+ 320,
31
+ 320
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,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.4,
12
+ "depth_coefficient": 1.8,
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
+ "projection_activation": null
101
+ },
102
+ "registered_name": "keras_hub>EfficientNetBackbone"
103
+ },
104
+ "preprocessor": {
105
+ "module": "keras_hub.src.models.efficientnet.efficientnet_image_classifier_preprocessor",
106
+ "class_name": "EfficientNetImageClassifierPreprocessor",
107
+ "config": {
108
+ "name": "efficient_net_image_classifier_preprocessor",
109
+ "trainable": true,
110
+ "dtype": {
111
+ "module": "keras",
112
+ "class_name": "DTypePolicy",
113
+ "config": {
114
+ "name": "float32"
115
+ },
116
+ "registered_name": null
117
+ },
118
+ "image_converter": {
119
+ "module": "keras_hub.src.models.efficientnet.efficientnet_image_converter",
120
+ "class_name": "EfficientNetImageConverter",
121
+ "config": {
122
+ "name": "efficient_net_image_converter",
123
+ "trainable": true,
124
+ "dtype": {
125
+ "module": "keras",
126
+ "class_name": "DTypePolicy",
127
+ "config": {
128
+ "name": "float32"
129
+ },
130
+ "registered_name": null
131
+ },
132
+ "image_size": [
133
+ 320,
134
+ 320
135
+ ],
136
+ "scale": [
137
+ 0.017124753831663668,
138
+ 0.01750700280112045,
139
+ 0.017429193899782133
140
+ ],
141
+ "offset": [
142
+ -2.1179039301310043,
143
+ -2.0357142857142856,
144
+ -1.8044444444444445
145
+ ],
146
+ "interpolation": "bicubic",
147
+ "crop_to_aspect_ratio": true
148
+ },
149
+ "registered_name": "keras_hub>EfficientNetImageConverter"
150
+ },
151
+ "config_file": "preprocessor.json"
152
+ },
153
+ "registered_name": "keras_hub>EfficientNetImageClassifierPreprocessor"
154
+ },
155
+ "name": "efficient_net_image_classifier",
156
+ "num_classes": 1000,
157
+ "pooling": "avg",
158
+ "activation": null,
159
+ "dropout": 0.0
160
+ },
161
+ "registered_name": "keras_hub>EfficientNetImageClassifier"
162
+ }
task.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bc8234a0d434e03baab9fa63ea298d2041d37e39833f079e29b496178fd3a11
3
+ size 79019464