KerasHub
mattdangerw commited on
Commit
2621ccf
·
verified ·
1 Parent(s): 0f85284

Upload folder using huggingface_hub

Browse files
Files changed (8) hide show
  1. README.md +34 -0
  2. config.json +124 -0
  3. image_converter.json +33 -0
  4. metadata.json +9 -0
  5. model.weights.h5 +3 -0
  6. preprocessor.json +51 -0
  7. task.json +187 -0
  8. task.weights.h5 +3 -0
README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ * **stackwise_width_coefficients:** [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
11
+ * **stackwise_depth_coefficients:** [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
12
+ * **dropout:** 0
13
+ * **depth_divisor:** 8
14
+ * **min_depth:** None
15
+ * **activation:** relu6
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, 0, 0, 0, 0, 0, 0]
23
+ * **stackwise_strides:** [1, 2, 2, 2, 1, 2, 1]
24
+ * **stackwise_block_types:** ['v1', 'v1', 'v1', 'v1', 'v1', 'v1', 'v1']
25
+ * **stackwise_force_input_filters:** [0, 0, 0, 0, 0, 0, 0]
26
+ * **include_stem_padding:** True
27
+ * **use_depth_divisor_as_min_depth:** True
28
+ * **cap_round_filter_decrease:** True
29
+ * **stem_conv_padding:** valid
30
+ * **batch_norm_momentum:** 0.9
31
+ * **batch_norm_epsilon:** 1e-05
32
+ * **projection_activation:** None
33
+
34
+ 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,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "stackwise_width_coefficients": [
8
+ 1.0,
9
+ 1.0,
10
+ 1.0,
11
+ 1.0,
12
+ 1.0,
13
+ 1.0,
14
+ 1.0
15
+ ],
16
+ "stackwise_depth_coefficients": [
17
+ 1.0,
18
+ 1.0,
19
+ 1.0,
20
+ 1.0,
21
+ 1.0,
22
+ 1.0,
23
+ 1.0
24
+ ],
25
+ "dropout": 0,
26
+ "depth_divisor": 8,
27
+ "min_depth": null,
28
+ "activation": "relu6",
29
+ "input_shape": [
30
+ null,
31
+ null,
32
+ 3
33
+ ],
34
+ "stackwise_kernel_sizes": [
35
+ 3,
36
+ 3,
37
+ 5,
38
+ 3,
39
+ 5,
40
+ 5,
41
+ 3
42
+ ],
43
+ "stackwise_num_repeats": [
44
+ 1,
45
+ 2,
46
+ 2,
47
+ 3,
48
+ 3,
49
+ 4,
50
+ 1
51
+ ],
52
+ "stackwise_input_filters": [
53
+ 32,
54
+ 16,
55
+ 24,
56
+ 40,
57
+ 80,
58
+ 112,
59
+ 192
60
+ ],
61
+ "stackwise_output_filters": [
62
+ 16,
63
+ 24,
64
+ 40,
65
+ 80,
66
+ 112,
67
+ 192,
68
+ 320
69
+ ],
70
+ "stackwise_expansion_ratios": [
71
+ 1,
72
+ 6,
73
+ 6,
74
+ 6,
75
+ 6,
76
+ 6,
77
+ 6
78
+ ],
79
+ "stackwise_squeeze_and_excite_ratios": [
80
+ 0,
81
+ 0,
82
+ 0,
83
+ 0,
84
+ 0,
85
+ 0,
86
+ 0
87
+ ],
88
+ "stackwise_strides": [
89
+ 1,
90
+ 2,
91
+ 2,
92
+ 2,
93
+ 1,
94
+ 2,
95
+ 1
96
+ ],
97
+ "stackwise_block_types": [
98
+ "v1",
99
+ "v1",
100
+ "v1",
101
+ "v1",
102
+ "v1",
103
+ "v1",
104
+ "v1"
105
+ ],
106
+ "stackwise_force_input_filters": [
107
+ 0,
108
+ 0,
109
+ 0,
110
+ 0,
111
+ 0,
112
+ 0,
113
+ 0
114
+ ],
115
+ "include_stem_padding": true,
116
+ "use_depth_divisor_as_min_depth": true,
117
+ "cap_round_filter_decrease": true,
118
+ "stem_conv_padding": "valid",
119
+ "batch_norm_momentum": 0.9,
120
+ "batch_norm_epsilon": 1e-05,
121
+ "projection_activation": null
122
+ },
123
+ "registered_name": "keras_hub>EfficientNetBackbone"
124
+ }
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,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "keras_version": "3.7.0",
3
+ "keras_hub_version": "0.19.0",
4
+ "parameter_count": 3413024,
5
+ "date_saved": "2024-12-20@20:11:44",
6
+ "tasks": [
7
+ "ImageClassifier"
8
+ ]
9
+ }
model.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b6910d31ea4c927a151a97f9f2f8c240a4f61012765c9a77f66ad1a8d1b0130
3
+ size 14050328
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,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "stackwise_width_coefficients": [
12
+ 1.0,
13
+ 1.0,
14
+ 1.0,
15
+ 1.0,
16
+ 1.0,
17
+ 1.0,
18
+ 1.0
19
+ ],
20
+ "stackwise_depth_coefficients": [
21
+ 1.0,
22
+ 1.0,
23
+ 1.0,
24
+ 1.0,
25
+ 1.0,
26
+ 1.0,
27
+ 1.0
28
+ ],
29
+ "dropout": 0,
30
+ "depth_divisor": 8,
31
+ "min_depth": null,
32
+ "activation": "relu6",
33
+ "input_shape": [
34
+ null,
35
+ null,
36
+ 3
37
+ ],
38
+ "stackwise_kernel_sizes": [
39
+ 3,
40
+ 3,
41
+ 5,
42
+ 3,
43
+ 5,
44
+ 5,
45
+ 3
46
+ ],
47
+ "stackwise_num_repeats": [
48
+ 1,
49
+ 2,
50
+ 2,
51
+ 3,
52
+ 3,
53
+ 4,
54
+ 1
55
+ ],
56
+ "stackwise_input_filters": [
57
+ 32,
58
+ 16,
59
+ 24,
60
+ 40,
61
+ 80,
62
+ 112,
63
+ 192
64
+ ],
65
+ "stackwise_output_filters": [
66
+ 16,
67
+ 24,
68
+ 40,
69
+ 80,
70
+ 112,
71
+ 192,
72
+ 320
73
+ ],
74
+ "stackwise_expansion_ratios": [
75
+ 1,
76
+ 6,
77
+ 6,
78
+ 6,
79
+ 6,
80
+ 6,
81
+ 6
82
+ ],
83
+ "stackwise_squeeze_and_excite_ratios": [
84
+ 0,
85
+ 0,
86
+ 0,
87
+ 0,
88
+ 0,
89
+ 0,
90
+ 0
91
+ ],
92
+ "stackwise_strides": [
93
+ 1,
94
+ 2,
95
+ 2,
96
+ 2,
97
+ 1,
98
+ 2,
99
+ 1
100
+ ],
101
+ "stackwise_block_types": [
102
+ "v1",
103
+ "v1",
104
+ "v1",
105
+ "v1",
106
+ "v1",
107
+ "v1",
108
+ "v1"
109
+ ],
110
+ "stackwise_force_input_filters": [
111
+ 0,
112
+ 0,
113
+ 0,
114
+ 0,
115
+ 0,
116
+ 0,
117
+ 0
118
+ ],
119
+ "include_stem_padding": true,
120
+ "use_depth_divisor_as_min_depth": true,
121
+ "cap_round_filter_decrease": true,
122
+ "stem_conv_padding": "valid",
123
+ "batch_norm_momentum": 0.9,
124
+ "batch_norm_epsilon": 1e-05,
125
+ "projection_activation": null
126
+ },
127
+ "registered_name": "keras_hub>EfficientNetBackbone"
128
+ },
129
+ "preprocessor": {
130
+ "module": "keras_hub.src.models.efficientnet.efficientnet_image_classifier_preprocessor",
131
+ "class_name": "EfficientNetImageClassifierPreprocessor",
132
+ "config": {
133
+ "name": "efficient_net_image_classifier_preprocessor",
134
+ "trainable": true,
135
+ "dtype": {
136
+ "module": "keras",
137
+ "class_name": "DTypePolicy",
138
+ "config": {
139
+ "name": "float32"
140
+ },
141
+ "registered_name": null
142
+ },
143
+ "image_converter": {
144
+ "module": "keras_hub.src.models.efficientnet.efficientnet_image_converter",
145
+ "class_name": "EfficientNetImageConverter",
146
+ "config": {
147
+ "name": "efficient_net_image_converter",
148
+ "trainable": true,
149
+ "dtype": {
150
+ "module": "keras",
151
+ "class_name": "DTypePolicy",
152
+ "config": {
153
+ "name": "float32"
154
+ },
155
+ "registered_name": null
156
+ },
157
+ "image_size": [
158
+ 224,
159
+ 224
160
+ ],
161
+ "scale": [
162
+ 0.017124753831663668,
163
+ 0.01750700280112045,
164
+ 0.017429193899782133
165
+ ],
166
+ "offset": [
167
+ -2.1179039301310043,
168
+ -2.0357142857142856,
169
+ -1.8044444444444445
170
+ ],
171
+ "interpolation": "bicubic",
172
+ "crop_to_aspect_ratio": true
173
+ },
174
+ "registered_name": "keras_hub>EfficientNetImageConverter"
175
+ },
176
+ "config_file": "preprocessor.json"
177
+ },
178
+ "registered_name": "keras_hub>EfficientNetImageClassifierPreprocessor"
179
+ },
180
+ "name": "efficient_net_image_classifier",
181
+ "num_classes": 1000,
182
+ "pooling": "avg",
183
+ "activation": null,
184
+ "dropout": 0.0
185
+ },
186
+ "registered_name": "keras_hub>EfficientNetImageClassifier"
187
+ }
task.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb3d063f0ec01e251e15ceef81b1b19a35c0614082bd3e2d051b2e51b614a518
3
+ size 19192360