Divyasreepat commited on
Commit
71161d6
1 Parent(s): 4d2d0da

Upload folder using huggingface_hub

Browse files
Files changed (8) hide show
  1. README.md +19 -0
  2. config.json +44 -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 +107 -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:** [32, 32, 64]
11
+ * **input_conv_kernel_sizes:** [3, 3, 3]
12
+ * **stackwise_num_filters:** [64, 128, 256, 512]
13
+ * **stackwise_num_blocks:** [2, 2, 2, 2]
14
+ * **stackwise_num_strides:** [1, 2, 2, 2]
15
+ * **block_type:** basic_block_vd
16
+ * **use_pre_activation:** False
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,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 32,
9
+ 32,
10
+ 64
11
+ ],
12
+ "input_conv_kernel_sizes": [
13
+ 3,
14
+ 3,
15
+ 3
16
+ ],
17
+ "stackwise_num_filters": [
18
+ 64,
19
+ 128,
20
+ 256,
21
+ 512
22
+ ],
23
+ "stackwise_num_blocks": [
24
+ 2,
25
+ 2,
26
+ 2,
27
+ 2
28
+ ],
29
+ "stackwise_num_strides": [
30
+ 1,
31
+ 2,
32
+ 2,
33
+ 2
34
+ ],
35
+ "block_type": "basic_block_vd",
36
+ "use_pre_activation": false,
37
+ "image_shape": [
38
+ null,
39
+ null,
40
+ 3
41
+ ]
42
+ },
43
+ "registered_name": "keras_hub>ResNetBackbone"
44
+ }
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.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
+ },
32
+ "registered_name": "keras_hub>ResNetImageConverter"
33
+ }
metadata.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "keras_version": "3.4.1",
3
+ "keras_hub_version": "0.16.1",
4
+ "parameter_count": 11209824,
5
+ "date_saved": "2024-10-11@20:57:20"
6
+ }
model.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45c7a3b2eae668c9bdb16cbbf3dd370eea006c009ab7407c419f0a59768eeaf0
3
+ size 45040432
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.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
+ },
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,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 32,
13
+ 32,
14
+ 64
15
+ ],
16
+ "input_conv_kernel_sizes": [
17
+ 3,
18
+ 3,
19
+ 3
20
+ ],
21
+ "stackwise_num_filters": [
22
+ 64,
23
+ 128,
24
+ 256,
25
+ 512
26
+ ],
27
+ "stackwise_num_blocks": [
28
+ 2,
29
+ 2,
30
+ 2,
31
+ 2
32
+ ],
33
+ "stackwise_num_strides": [
34
+ 1,
35
+ 2,
36
+ 2,
37
+ 2
38
+ ],
39
+ "block_type": "basic_block_vd",
40
+ "use_pre_activation": false,
41
+ "image_shape": [
42
+ null,
43
+ null,
44
+ 3
45
+ ]
46
+ },
47
+ "registered_name": "keras_hub>ResNetBackbone"
48
+ },
49
+ "preprocessor": {
50
+ "module": "keras_hub.src.models.resnet.resnet_image_classifier_preprocessor",
51
+ "class_name": "ResNetImageClassifierPreprocessor",
52
+ "config": {
53
+ "name": "res_net_image_classifier_preprocessor",
54
+ "trainable": true,
55
+ "dtype": {
56
+ "module": "keras",
57
+ "class_name": "DTypePolicy",
58
+ "config": {
59
+ "name": "float32"
60
+ },
61
+ "registered_name": null
62
+ },
63
+ "image_converter": {
64
+ "module": "keras_hub.src.models.resnet.resnet_image_converter",
65
+ "class_name": "ResNetImageConverter",
66
+ "config": {
67
+ "name": "res_net_image_converter",
68
+ "trainable": true,
69
+ "dtype": {
70
+ "module": "keras",
71
+ "class_name": "DTypePolicy",
72
+ "config": {
73
+ "name": "float32"
74
+ },
75
+ "registered_name": null
76
+ },
77
+ "image_size": [
78
+ 224,
79
+ 224
80
+ ],
81
+ "scale": [
82
+ 0.017124753831663668,
83
+ 0.01750700280112045,
84
+ 0.017429193899782133
85
+ ],
86
+ "offset": [
87
+ -2.1179039301310043,
88
+ -2.0357142857142856,
89
+ -1.8044444444444445
90
+ ],
91
+ "interpolation": "bilinear",
92
+ "crop_to_aspect_ratio": true
93
+ },
94
+ "registered_name": "keras_hub>ResNetImageConverter"
95
+ },
96
+ "config_file": "preprocessor.json"
97
+ },
98
+ "registered_name": "keras_hub>ResNetImageClassifierPreprocessor"
99
+ },
100
+ "name": "res_net_image_classifier",
101
+ "num_classes": 1000,
102
+ "pooling": "avg",
103
+ "activation": null,
104
+ "dropout": 0.0
105
+ },
106
+ "registered_name": "keras_hub>ResNetImageClassifier"
107
+ }
task.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0c67011ccad1d148a3ab67fa5e088e87c3d876e7d21c5b5e38bf495ddc9f400
3
+ size 47110920