Image Classification
KerasHub
Divyasreepat commited on
Commit
9c78e49
1 Parent(s): e7a8067

Upload folder using huggingface_hub

Browse files
Files changed (8) hide show
  1. README.md +12 -0
  2. config.json +26 -0
  3. image_converter.json +30 -0
  4. metadata.json +6 -0
  5. model.weights.h5 +3 -0
  6. preprocessor.json +48 -0
  7. task.json +87 -0
  8. task.weights.h5 +3 -0
README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: keras-hub
3
+ ---
4
+ This is a [`VGG` model](https://keras.io/api/keras_hub/models/vgg) 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
+ * **stackwise_num_repeats:** [1, 1, 2, 2, 2]
9
+ * **stackwise_num_filters:** [64, 128, 256, 512, 512]
10
+ * **image_shape:** [None, None, 3]
11
+
12
+ 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,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.vgg.vgg_backbone",
3
+ "class_name": "VGGBackbone",
4
+ "config": {
5
+ "stackwise_num_repeats": [
6
+ 1,
7
+ 1,
8
+ 2,
9
+ 2,
10
+ 2
11
+ ],
12
+ "stackwise_num_filters": [
13
+ 64,
14
+ 128,
15
+ 256,
16
+ 512,
17
+ 512
18
+ ],
19
+ "image_shape": [
20
+ null,
21
+ null,
22
+ 3
23
+ ]
24
+ },
25
+ "registered_name": "keras_hub>VGGBackbone"
26
+ }
image_converter.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.vgg.vgg_image_classifier",
3
+ "class_name": "VGGImageConverter",
4
+ "config": {
5
+ "name": "vgg_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": null,
16
+ "scale": [
17
+ 0.017124753831663668,
18
+ 0.01750700280112045,
19
+ 0.017429193899782133
20
+ ],
21
+ "offset": [
22
+ -2.1179039301310043,
23
+ -2.0357142857142856,
24
+ -1.8044444444444445
25
+ ],
26
+ "interpolation": "bilinear",
27
+ "crop_to_aspect_ratio": true
28
+ },
29
+ "registered_name": "keras_hub>VGGImageConverter"
30
+ }
metadata.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "keras_version": "3.5.0",
3
+ "keras_hub_version": "0.16.1",
4
+ "parameter_count": 9220480,
5
+ "date_saved": "2024-10-15@00:19:19"
6
+ }
model.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d607e0b334661c941f802d8a19fd23e285a6ca813070d4d987ff708b3bbaa529
3
+ size 36918336
preprocessor.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.vgg.vgg_image_classifier",
3
+ "class_name": "VGGImageClassifierPreprocessor",
4
+ "config": {
5
+ "name": "vgg_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.vgg.vgg_image_classifier",
17
+ "class_name": "VGGImageConverter",
18
+ "config": {
19
+ "name": "vgg_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": null,
30
+ "scale": [
31
+ 0.017124753831663668,
32
+ 0.01750700280112045,
33
+ 0.017429193899782133
34
+ ],
35
+ "offset": [
36
+ -2.1179039301310043,
37
+ -2.0357142857142856,
38
+ -1.8044444444444445
39
+ ],
40
+ "interpolation": "bilinear",
41
+ "crop_to_aspect_ratio": true
42
+ },
43
+ "registered_name": "keras_hub>VGGImageConverter"
44
+ },
45
+ "config_file": "preprocessor.json"
46
+ },
47
+ "registered_name": "keras_hub>VGGImageClassifierPreprocessor"
48
+ }
task.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.vgg.vgg_image_classifier",
3
+ "class_name": "VGGImageClassifier",
4
+ "config": {
5
+ "backbone": {
6
+ "module": "keras_hub.src.models.vgg.vgg_backbone",
7
+ "class_name": "VGGBackbone",
8
+ "config": {
9
+ "stackwise_num_repeats": [
10
+ 1,
11
+ 1,
12
+ 2,
13
+ 2,
14
+ 2
15
+ ],
16
+ "stackwise_num_filters": [
17
+ 64,
18
+ 128,
19
+ 256,
20
+ 512,
21
+ 512
22
+ ],
23
+ "image_shape": [
24
+ null,
25
+ null,
26
+ 3
27
+ ]
28
+ },
29
+ "registered_name": "keras_hub>VGGBackbone"
30
+ },
31
+ "preprocessor": {
32
+ "module": "keras_hub.src.models.vgg.vgg_image_classifier",
33
+ "class_name": "VGGImageClassifierPreprocessor",
34
+ "config": {
35
+ "name": "vgg_image_classifier_preprocessor",
36
+ "trainable": true,
37
+ "dtype": {
38
+ "module": "keras",
39
+ "class_name": "DTypePolicy",
40
+ "config": {
41
+ "name": "float32"
42
+ },
43
+ "registered_name": null
44
+ },
45
+ "image_converter": {
46
+ "module": "keras_hub.src.models.vgg.vgg_image_classifier",
47
+ "class_name": "VGGImageConverter",
48
+ "config": {
49
+ "name": "vgg_image_converter",
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_size": null,
60
+ "scale": [
61
+ 0.017124753831663668,
62
+ 0.01750700280112045,
63
+ 0.017429193899782133
64
+ ],
65
+ "offset": [
66
+ -2.1179039301310043,
67
+ -2.0357142857142856,
68
+ -1.8044444444444445
69
+ ],
70
+ "interpolation": "bilinear",
71
+ "crop_to_aspect_ratio": true
72
+ },
73
+ "registered_name": "keras_hub>VGGImageConverter"
74
+ },
75
+ "config_file": "preprocessor.json"
76
+ },
77
+ "registered_name": "keras_hub>VGGImageClassifierPreprocessor"
78
+ },
79
+ "name": "vgg_image_classifier",
80
+ "num_classes": 1000,
81
+ "pooling": "avg",
82
+ "activation": null,
83
+ "dropout": 0.0,
84
+ "pooling_hidden_dim": 4096
85
+ },
86
+ "registered_name": "keras_hub>VGGImageClassifier"
87
+ }
task.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43be9455098504ab3fdb2b409ed3e7c2a9be39b938275e5d54725303d63f12e0
3
+ size 531514528