Divyasreepat commited on
Commit
3b8edc3
·
verified ·
1 Parent(s): b0276b2

Upload folder using huggingface_hub

Browse files
Files changed (8) hide show
  1. README.md +32 -0
  2. config.json +55 -0
  3. image_converter.json +35 -0
  4. metadata.json +9 -0
  5. model.weights.h5 +3 -0
  6. preprocessor.json +53 -0
  7. task.json +120 -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 [`CSPNet` model](https://keras.io/api/keras_hub/models/csp_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:** csp_net_backbone
9
+ * **trainable:** True
10
+ * **stem_filters:** 32
11
+ * **stem_kernel_size:** 3
12
+ * **stem_strides:** 1
13
+ * **stackwise_depth:** [1, 2, 8, 8, 4]
14
+ * **stackwise_strides:** 2
15
+ * **stackwise_num_filters:** [64, 128, 256, 512, 1024]
16
+ * **stage_type:** csp
17
+ * **block_type:** dark_block
18
+ * **output_strides:** 32
19
+ * **groups:** 1
20
+ * **activation:** leaky_relu
21
+ * **bottle_ratio:** [0.5, 1.0]
22
+ * **block_ratio:** [1.0, 0.5]
23
+ * **expand_ratio:** [2.0, 1.0]
24
+ * **stem_padding:** valid
25
+ * **stem_pooling:** None
26
+ * **avg_down:** False
27
+ * **down_growth:** True
28
+ * **cross_linear:** False
29
+ * **image_shape:** [None, None, 3]
30
+ * **data_format:** channels_last
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,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.cspnet.cspnet_backbone",
3
+ "class_name": "CSPNetBackbone",
4
+ "config": {
5
+ "name": "csp_net_backbone",
6
+ "trainable": true,
7
+ "stem_filters": 32,
8
+ "stem_kernel_size": 3,
9
+ "stem_strides": 1,
10
+ "stackwise_depth": [
11
+ 1,
12
+ 2,
13
+ 8,
14
+ 8,
15
+ 4
16
+ ],
17
+ "stackwise_strides": 2,
18
+ "stackwise_num_filters": [
19
+ 64,
20
+ 128,
21
+ 256,
22
+ 512,
23
+ 1024
24
+ ],
25
+ "stage_type": "csp",
26
+ "block_type": "dark_block",
27
+ "output_strides": 32,
28
+ "groups": 1,
29
+ "activation": "leaky_relu",
30
+ "bottle_ratio": [
31
+ 0.5,
32
+ 1.0
33
+ ],
34
+ "block_ratio": [
35
+ 1.0,
36
+ 0.5
37
+ ],
38
+ "expand_ratio": [
39
+ 2.0,
40
+ 1.0
41
+ ],
42
+ "stem_padding": "valid",
43
+ "stem_pooling": null,
44
+ "avg_down": false,
45
+ "down_growth": true,
46
+ "cross_linear": false,
47
+ "image_shape": [
48
+ null,
49
+ null,
50
+ 3
51
+ ],
52
+ "data_format": "channels_last"
53
+ },
54
+ "registered_name": "keras_hub>CSPNetBackbone"
55
+ }
image_converter.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.cspnet.cspnet_image_converter",
3
+ "class_name": "CSPNetImageConverter",
4
+ "config": {
5
+ "name": "csp_net_image_converter_1",
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
+ 256,
17
+ 256
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": "bilinear",
30
+ "crop_to_aspect_ratio": true,
31
+ "pad_to_aspect_ratio": false,
32
+ "bounding_box_format": "yxyx"
33
+ },
34
+ "registered_name": "keras_hub>CSPNetImageConverter"
35
+ }
metadata.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "keras_version": "3.8.0",
3
+ "keras_hub_version": "0.19.0",
4
+ "parameter_count": 26652512,
5
+ "date_saved": "2025-03-04@22:57:11",
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:3bb8afa485fdd2e66705e95f974286a5fab2f9ee2b815c1036edae5c6cb8f369
3
+ size 107205048
preprocessor.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.cspnet.cspnet_image_classifier_preprocessor",
3
+ "class_name": "CSPNetImageClassifierPreprocessor",
4
+ "config": {
5
+ "name": "csp_net_image_classifier_preprocessor_1",
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.cspnet.cspnet_image_converter",
17
+ "class_name": "CSPNetImageConverter",
18
+ "config": {
19
+ "name": "csp_net_image_converter_1",
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
+ 256,
31
+ 256
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": "bilinear",
44
+ "crop_to_aspect_ratio": true,
45
+ "pad_to_aspect_ratio": false,
46
+ "bounding_box_format": "yxyx"
47
+ },
48
+ "registered_name": "keras_hub>CSPNetImageConverter"
49
+ },
50
+ "config_file": "preprocessor.json"
51
+ },
52
+ "registered_name": "keras_hub>CSPNetImageClassifierPreprocessor"
53
+ }
task.json ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.cspnet.cspnet_image_classifier",
3
+ "class_name": "CSPNetImageClassifier",
4
+ "config": {
5
+ "backbone": {
6
+ "module": "keras_hub.src.models.cspnet.cspnet_backbone",
7
+ "class_name": "CSPNetBackbone",
8
+ "config": {
9
+ "name": "csp_net_backbone",
10
+ "trainable": true,
11
+ "stem_filters": 32,
12
+ "stem_kernel_size": 3,
13
+ "stem_strides": 1,
14
+ "stackwise_depth": [
15
+ 1,
16
+ 2,
17
+ 8,
18
+ 8,
19
+ 4
20
+ ],
21
+ "stackwise_strides": 2,
22
+ "stackwise_num_filters": [
23
+ 64,
24
+ 128,
25
+ 256,
26
+ 512,
27
+ 1024
28
+ ],
29
+ "stage_type": "csp",
30
+ "block_type": "dark_block",
31
+ "output_strides": 32,
32
+ "groups": 1,
33
+ "activation": "leaky_relu",
34
+ "bottle_ratio": [
35
+ 0.5,
36
+ 1.0
37
+ ],
38
+ "block_ratio": [
39
+ 1.0,
40
+ 0.5
41
+ ],
42
+ "expand_ratio": [
43
+ 2.0,
44
+ 1.0
45
+ ],
46
+ "stem_padding": "valid",
47
+ "stem_pooling": null,
48
+ "avg_down": false,
49
+ "down_growth": true,
50
+ "cross_linear": false,
51
+ "image_shape": [
52
+ null,
53
+ null,
54
+ 3
55
+ ],
56
+ "data_format": "channels_last"
57
+ },
58
+ "registered_name": "keras_hub>CSPNetBackbone"
59
+ },
60
+ "preprocessor": {
61
+ "module": "keras_hub.src.models.cspnet.cspnet_image_classifier_preprocessor",
62
+ "class_name": "CSPNetImageClassifierPreprocessor",
63
+ "config": {
64
+ "name": "csp_net_image_classifier_preprocessor_1",
65
+ "trainable": true,
66
+ "dtype": {
67
+ "module": "keras",
68
+ "class_name": "DTypePolicy",
69
+ "config": {
70
+ "name": "float32"
71
+ },
72
+ "registered_name": null
73
+ },
74
+ "image_converter": {
75
+ "module": "keras_hub.src.models.cspnet.cspnet_image_converter",
76
+ "class_name": "CSPNetImageConverter",
77
+ "config": {
78
+ "name": "csp_net_image_converter_1",
79
+ "trainable": true,
80
+ "dtype": {
81
+ "module": "keras",
82
+ "class_name": "DTypePolicy",
83
+ "config": {
84
+ "name": "float32"
85
+ },
86
+ "registered_name": null
87
+ },
88
+ "image_size": [
89
+ 256,
90
+ 256
91
+ ],
92
+ "scale": [
93
+ 0.017124753831663668,
94
+ 0.01750700280112045,
95
+ 0.017429193899782133
96
+ ],
97
+ "offset": [
98
+ -2.1179039301310043,
99
+ -2.0357142857142856,
100
+ -1.8044444444444445
101
+ ],
102
+ "interpolation": "bilinear",
103
+ "crop_to_aspect_ratio": true,
104
+ "pad_to_aspect_ratio": false,
105
+ "bounding_box_format": "yxyx"
106
+ },
107
+ "registered_name": "keras_hub>CSPNetImageConverter"
108
+ },
109
+ "config_file": "preprocessor.json"
110
+ },
111
+ "registered_name": "keras_hub>CSPNetImageClassifierPreprocessor"
112
+ },
113
+ "name": "csp_net_image_classifier",
114
+ "num_classes": 1000,
115
+ "pooling": "avg",
116
+ "activation": "softmax",
117
+ "dropout": 0.0
118
+ },
119
+ "registered_name": "keras_hub>CSPNetImageClassifier"
120
+ }
task.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b4e3664edd5dab3569d418e81a0ae00a79c427151aa1add40e18431385a2d2a
3
+ size 111325168