Divyasreepat
commited on
Commit
•
20ee89e
1
Parent(s):
6943598
Upload folder using huggingface_hub
Browse files- README.md +19 -0
- config.json +40 -0
- image_converter.json +33 -0
- metadata.json +6 -0
- model.weights.h5 +3 -0
- preprocessor.json +51 -0
- task.json +103 -0
- 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, 8, 36, 3]
|
14 |
+
* **stackwise_num_strides:** [1, 2, 2, 2]
|
15 |
+
* **block_type:** bottleneck_block
|
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,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 |
+
8,
|
22 |
+
36,
|
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": false,
|
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.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>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": 58295232,
|
5 |
+
"date_saved": "2024-10-17@19:18:11"
|
6 |
+
}
|
model.weights.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ece2a168e0731bc608fdfcc5af687ed89e838c3fa8b4c0f0d43a7426aaca60bf
|
3 |
+
size 234447624
|
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": "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 |
+
8,
|
26 |
+
36,
|
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": false,
|
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.017124753831663668,
|
79 |
+
0.01750700280112045,
|
80 |
+
0.017429193899782133
|
81 |
+
],
|
82 |
+
"offset": [
|
83 |
+
-2.1179039301310043,
|
84 |
+
-2.0357142857142856,
|
85 |
+
-1.8044444444444445
|
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:0d0caf3f802d897f24db08764d412198c8f2b29d9643ca153c590c9072717e22
|
3 |
+
size 242662488
|