Image Classification
KerasHub
Divyasreepat commited on
Commit
76e61d9
1 Parent(s): 6f4c3ae

Upload folder using huggingface_hub

Browse files
Files changed (8) hide show
  1. README.md +19 -0
  2. config.json +40 -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 +103 -0
  8. task.weights.h5 +3 -0
README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: keras-hub
3
+ ---
4
+ This is a [`ResNet` model](https://keras.io/api/keras_hub/models/res_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:** res_net_backbone
9
+ * **trainable:** True
10
+ * **input_conv_filters:** [64]
11
+ * **input_conv_kernel_sizes:** [7]
12
+ * **stackwise_num_filters:** [64, 128, 256, 512]
13
+ * **stackwise_num_blocks:** [3, 4, 6, 3]
14
+ * **stackwise_num_strides:** [1, 2, 2, 2]
15
+ * **block_type:** bottleneck_block
16
+ * **use_pre_activation:** True
17
+ * **image_shape:** [None, None, 3]
18
+
19
+ 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,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.resnet.resnet_backbone",
3
+ "class_name": "ResNetBackbone",
4
+ "config": {
5
+ "name": "res_net_backbone",
6
+ "trainable": true,
7
+ "input_conv_filters": [
8
+ 64
9
+ ],
10
+ "input_conv_kernel_sizes": [
11
+ 7
12
+ ],
13
+ "stackwise_num_filters": [
14
+ 64,
15
+ 128,
16
+ 256,
17
+ 512
18
+ ],
19
+ "stackwise_num_blocks": [
20
+ 3,
21
+ 4,
22
+ 6,
23
+ 3
24
+ ],
25
+ "stackwise_num_strides": [
26
+ 1,
27
+ 2,
28
+ 2,
29
+ 2
30
+ ],
31
+ "block_type": "bottleneck_block",
32
+ "use_pre_activation": true,
33
+ "image_shape": [
34
+ null,
35
+ null,
36
+ 3
37
+ ]
38
+ },
39
+ "registered_name": "keras_hub>ResNetBackbone"
40
+ }
image_converter.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.resnet.resnet_image_converter",
3
+ "class_name": "ResNetImageConverter",
4
+ "config": {
5
+ "name": "res_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.00784313725490196,
21
+ 0.00784313725490196,
22
+ 0.00784313725490196
23
+ ],
24
+ "offset": [
25
+ -1.0,
26
+ -1.0,
27
+ -1.0
28
+ ],
29
+ "interpolation": "bicubic",
30
+ "crop_to_aspect_ratio": true
31
+ },
32
+ "registered_name": "keras_hub>ResNetImageConverter"
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": 23545792,
5
+ "date_saved": "2024-10-17@19:18:25"
6
+ }
model.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:333c4cec842f7182739f8074f54aa84a6b6259c1baad8eb52e4383bce0b5dd21
3
+ size 94607120
preprocessor.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.resnet.resnet_image_classifier_preprocessor",
3
+ "class_name": "ResNetImageClassifierPreprocessor",
4
+ "config": {
5
+ "name": "res_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.resnet.resnet_image_converter",
17
+ "class_name": "ResNetImageConverter",
18
+ "config": {
19
+ "name": "res_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.00784313725490196,
35
+ 0.00784313725490196,
36
+ 0.00784313725490196
37
+ ],
38
+ "offset": [
39
+ -1.0,
40
+ -1.0,
41
+ -1.0
42
+ ],
43
+ "interpolation": "bicubic",
44
+ "crop_to_aspect_ratio": true
45
+ },
46
+ "registered_name": "keras_hub>ResNetImageConverter"
47
+ },
48
+ "config_file": "preprocessor.json"
49
+ },
50
+ "registered_name": "keras_hub>ResNetImageClassifierPreprocessor"
51
+ }
task.json ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.resnet.resnet_image_classifier",
3
+ "class_name": "ResNetImageClassifier",
4
+ "config": {
5
+ "backbone": {
6
+ "module": "keras_hub.src.models.resnet.resnet_backbone",
7
+ "class_name": "ResNetBackbone",
8
+ "config": {
9
+ "name": "res_net_backbone",
10
+ "trainable": true,
11
+ "input_conv_filters": [
12
+ 64
13
+ ],
14
+ "input_conv_kernel_sizes": [
15
+ 7
16
+ ],
17
+ "stackwise_num_filters": [
18
+ 64,
19
+ 128,
20
+ 256,
21
+ 512
22
+ ],
23
+ "stackwise_num_blocks": [
24
+ 3,
25
+ 4,
26
+ 6,
27
+ 3
28
+ ],
29
+ "stackwise_num_strides": [
30
+ 1,
31
+ 2,
32
+ 2,
33
+ 2
34
+ ],
35
+ "block_type": "bottleneck_block",
36
+ "use_pre_activation": true,
37
+ "image_shape": [
38
+ null,
39
+ null,
40
+ 3
41
+ ]
42
+ },
43
+ "registered_name": "keras_hub>ResNetBackbone"
44
+ },
45
+ "preprocessor": {
46
+ "module": "keras_hub.src.models.resnet.resnet_image_classifier_preprocessor",
47
+ "class_name": "ResNetImageClassifierPreprocessor",
48
+ "config": {
49
+ "name": "res_net_image_classifier_preprocessor",
50
+ "trainable": true,
51
+ "dtype": {
52
+ "module": "keras",
53
+ "class_name": "DTypePolicy",
54
+ "config": {
55
+ "name": "float32"
56
+ },
57
+ "registered_name": null
58
+ },
59
+ "image_converter": {
60
+ "module": "keras_hub.src.models.resnet.resnet_image_converter",
61
+ "class_name": "ResNetImageConverter",
62
+ "config": {
63
+ "name": "res_net_image_converter",
64
+ "trainable": true,
65
+ "dtype": {
66
+ "module": "keras",
67
+ "class_name": "DTypePolicy",
68
+ "config": {
69
+ "name": "float32"
70
+ },
71
+ "registered_name": null
72
+ },
73
+ "image_size": [
74
+ 224,
75
+ 224
76
+ ],
77
+ "scale": [
78
+ 0.00784313725490196,
79
+ 0.00784313725490196,
80
+ 0.00784313725490196
81
+ ],
82
+ "offset": [
83
+ -1.0,
84
+ -1.0,
85
+ -1.0
86
+ ],
87
+ "interpolation": "bicubic",
88
+ "crop_to_aspect_ratio": true
89
+ },
90
+ "registered_name": "keras_hub>ResNetImageConverter"
91
+ },
92
+ "config_file": "preprocessor.json"
93
+ },
94
+ "registered_name": "keras_hub>ResNetImageClassifierPreprocessor"
95
+ },
96
+ "name": "res_net_image_classifier",
97
+ "num_classes": 1000,
98
+ "pooling": "avg",
99
+ "activation": null,
100
+ "dropout": 0.0
101
+ },
102
+ "registered_name": "keras_hub>ResNetImageClassifier"
103
+ }
task.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07e053a7bb228d28b314fc9b141d7e60a82a4326154166407978f968a9ce2a7b
3
+ size 102819808