Divyasreepat
commited on
Commit
•
eaed757
1
Parent(s):
d7e2830
Upload folder using huggingface_hub
Browse files- README.md +15 -0
- config.json +22 -0
- image_converter.json +33 -0
- metadata.json +6 -0
- model.weights.h5 +3 -0
- preprocessor.json +51 -0
- task.json +85 -0
- task.weights.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: keras-hub
|
3 |
+
---
|
4 |
+
This is a [`DenseNet` model](https://keras.io/api/keras_hub/models/dense_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:** dense_net_backbone
|
9 |
+
* **trainable:** True
|
10 |
+
* **stackwise_num_repeats:** [6, 12, 48, 32]
|
11 |
+
* **compression_ratio:** 0.5
|
12 |
+
* **growth_rate:** 32
|
13 |
+
* **image_shape:** [None, None, 3]
|
14 |
+
|
15 |
+
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,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"module": "keras_hub.src.models.densenet.densenet_backbone",
|
3 |
+
"class_name": "DenseNetBackbone",
|
4 |
+
"config": {
|
5 |
+
"name": "dense_net_backbone",
|
6 |
+
"trainable": true,
|
7 |
+
"stackwise_num_repeats": [
|
8 |
+
6,
|
9 |
+
12,
|
10 |
+
48,
|
11 |
+
32
|
12 |
+
],
|
13 |
+
"compression_ratio": 0.5,
|
14 |
+
"growth_rate": 32,
|
15 |
+
"image_shape": [
|
16 |
+
null,
|
17 |
+
null,
|
18 |
+
3
|
19 |
+
]
|
20 |
+
},
|
21 |
+
"registered_name": "keras_hub>DenseNetBackbone"
|
22 |
+
}
|
image_converter.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"module": "keras_hub.src.models.densenet.densenet_image_converter",
|
3 |
+
"class_name": "DenseNetImageConverter",
|
4 |
+
"config": {
|
5 |
+
"name": "dense_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>DenseNetImageConverter"
|
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": 18321984,
|
5 |
+
"date_saved": "2024-10-17@19:29:28"
|
6 |
+
}
|
model.weights.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8c07c355d4c7a060003ce3673e4486f7f961234bff38d676d5749a42966abad0
|
3 |
+
size 75002632
|
preprocessor.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"module": "keras_hub.src.models.densenet.densenet_image_classifier_preprocessor",
|
3 |
+
"class_name": "DenseNetImageClassifierPreprocessor",
|
4 |
+
"config": {
|
5 |
+
"name": "dense_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.densenet.densenet_image_converter",
|
17 |
+
"class_name": "DenseNetImageConverter",
|
18 |
+
"config": {
|
19 |
+
"name": "dense_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>DenseNetImageConverter"
|
47 |
+
},
|
48 |
+
"config_file": "preprocessor.json"
|
49 |
+
},
|
50 |
+
"registered_name": "keras_hub>DenseNetImageClassifierPreprocessor"
|
51 |
+
}
|
task.json
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"module": "keras_hub.src.models.densenet.densenet_image_classifier",
|
3 |
+
"class_name": "DenseNetImageClassifier",
|
4 |
+
"config": {
|
5 |
+
"backbone": {
|
6 |
+
"module": "keras_hub.src.models.densenet.densenet_backbone",
|
7 |
+
"class_name": "DenseNetBackbone",
|
8 |
+
"config": {
|
9 |
+
"name": "dense_net_backbone",
|
10 |
+
"trainable": true,
|
11 |
+
"stackwise_num_repeats": [
|
12 |
+
6,
|
13 |
+
12,
|
14 |
+
48,
|
15 |
+
32
|
16 |
+
],
|
17 |
+
"compression_ratio": 0.5,
|
18 |
+
"growth_rate": 32,
|
19 |
+
"image_shape": [
|
20 |
+
null,
|
21 |
+
null,
|
22 |
+
3
|
23 |
+
]
|
24 |
+
},
|
25 |
+
"registered_name": "keras_hub>DenseNetBackbone"
|
26 |
+
},
|
27 |
+
"preprocessor": {
|
28 |
+
"module": "keras_hub.src.models.densenet.densenet_image_classifier_preprocessor",
|
29 |
+
"class_name": "DenseNetImageClassifierPreprocessor",
|
30 |
+
"config": {
|
31 |
+
"name": "dense_net_image_classifier_preprocessor",
|
32 |
+
"trainable": true,
|
33 |
+
"dtype": {
|
34 |
+
"module": "keras",
|
35 |
+
"class_name": "DTypePolicy",
|
36 |
+
"config": {
|
37 |
+
"name": "float32"
|
38 |
+
},
|
39 |
+
"registered_name": null
|
40 |
+
},
|
41 |
+
"image_converter": {
|
42 |
+
"module": "keras_hub.src.models.densenet.densenet_image_converter",
|
43 |
+
"class_name": "DenseNetImageConverter",
|
44 |
+
"config": {
|
45 |
+
"name": "dense_net_image_converter",
|
46 |
+
"trainable": true,
|
47 |
+
"dtype": {
|
48 |
+
"module": "keras",
|
49 |
+
"class_name": "DTypePolicy",
|
50 |
+
"config": {
|
51 |
+
"name": "float32"
|
52 |
+
},
|
53 |
+
"registered_name": null
|
54 |
+
},
|
55 |
+
"image_size": [
|
56 |
+
224,
|
57 |
+
224
|
58 |
+
],
|
59 |
+
"scale": [
|
60 |
+
0.017124753831663668,
|
61 |
+
0.01750700280112045,
|
62 |
+
0.017429193899782133
|
63 |
+
],
|
64 |
+
"offset": [
|
65 |
+
-2.1179039301310043,
|
66 |
+
-2.0357142857142856,
|
67 |
+
-1.8044444444444445
|
68 |
+
],
|
69 |
+
"interpolation": "bicubic",
|
70 |
+
"crop_to_aspect_ratio": true
|
71 |
+
},
|
72 |
+
"registered_name": "keras_hub>DenseNetImageConverter"
|
73 |
+
},
|
74 |
+
"config_file": "preprocessor.json"
|
75 |
+
},
|
76 |
+
"registered_name": "keras_hub>DenseNetImageClassifierPreprocessor"
|
77 |
+
},
|
78 |
+
"name": "dense_net_image_classifier",
|
79 |
+
"num_classes": 1000,
|
80 |
+
"pooling": "avg",
|
81 |
+
"activation": null,
|
82 |
+
"dropout": 0.0
|
83 |
+
},
|
84 |
+
"registered_name": "keras_hub>DenseNetImageClassifier"
|
85 |
+
}
|
task.weights.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:be444b44ecf62cbc3b7f73c9e6932b878ca72b7bb64eb346d11cfe0707ec8842
|
3 |
+
size 82703424
|