KerasHub
Divyasreepat commited on
Commit
69610d7
·
verified ·
1 Parent(s): 86a680f

Upload folder using huggingface_hub

Browse files
Files changed (8) hide show
  1. README.md +14 -0
  2. config.json +96 -0
  3. image_converter.json +28 -0
  4. metadata.json +9 -0
  5. model.weights.h5 +3 -0
  6. preprocessor.json +46 -0
  7. task.json +154 -0
  8. task.weights.h5 +3 -0
README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: keras-hub
3
+ ---
4
+ This is a [`Xception` model](https://keras.io/api/keras_hub/models/xception) 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:** xception_backbone
9
+ * **trainable:** True
10
+ * **stackwise_conv_filters:** [[32, 64], [128, 128], [256, 256], [728, 728], [728, 728, 728], [728, 728, 728], [728, 728, 728], [728, 728, 728], [728, 728, 728], [728, 728, 728], [728, 728, 728], [728, 728, 728], [728, 1024], [1536, 2048]]
11
+ * **stackwise_pooling:** [False, True, True, True, False, False, False, False, False, False, False, False, True, False]
12
+ * **image_shape:** [None, None, 3]
13
+
14
+ 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,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.xception.xception_backbone",
3
+ "class_name": "XceptionBackbone",
4
+ "config": {
5
+ "name": "xception_backbone",
6
+ "trainable": true,
7
+ "stackwise_conv_filters": [
8
+ [
9
+ 32,
10
+ 64
11
+ ],
12
+ [
13
+ 128,
14
+ 128
15
+ ],
16
+ [
17
+ 256,
18
+ 256
19
+ ],
20
+ [
21
+ 728,
22
+ 728
23
+ ],
24
+ [
25
+ 728,
26
+ 728,
27
+ 728
28
+ ],
29
+ [
30
+ 728,
31
+ 728,
32
+ 728
33
+ ],
34
+ [
35
+ 728,
36
+ 728,
37
+ 728
38
+ ],
39
+ [
40
+ 728,
41
+ 728,
42
+ 728
43
+ ],
44
+ [
45
+ 728,
46
+ 728,
47
+ 728
48
+ ],
49
+ [
50
+ 728,
51
+ 728,
52
+ 728
53
+ ],
54
+ [
55
+ 728,
56
+ 728,
57
+ 728
58
+ ],
59
+ [
60
+ 728,
61
+ 728,
62
+ 728
63
+ ],
64
+ [
65
+ 728,
66
+ 1024
67
+ ],
68
+ [
69
+ 1536,
70
+ 2048
71
+ ]
72
+ ],
73
+ "stackwise_pooling": [
74
+ false,
75
+ true,
76
+ true,
77
+ true,
78
+ false,
79
+ false,
80
+ false,
81
+ false,
82
+ false,
83
+ false,
84
+ false,
85
+ false,
86
+ true,
87
+ false
88
+ ],
89
+ "image_shape": [
90
+ null,
91
+ null,
92
+ 3
93
+ ]
94
+ },
95
+ "registered_name": "keras_hub>XceptionBackbone"
96
+ }
image_converter.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.layers.preprocessing.image_converter",
3
+ "class_name": "ImageConverter",
4
+ "config": {
5
+ "name": "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
+ 299,
17
+ 299
18
+ ],
19
+ "scale": 0.00784313725490196,
20
+ "offset": -1.0,
21
+ "interpolation": "bilinear",
22
+ "antialias": false,
23
+ "crop_to_aspect_ratio": true,
24
+ "pad_to_aspect_ratio": false,
25
+ "bounding_box_format": "yxyx"
26
+ },
27
+ "registered_name": "keras_hub>ImageConverter"
28
+ }
metadata.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "keras_version": "3.9.0",
3
+ "keras_hub_version": "0.20.0.dev0",
4
+ "parameter_count": 20861480,
5
+ "date_saved": "2025-03-29@16:29:08",
6
+ "tasks": [
7
+ "ImageClassifier"
8
+ ]
9
+ }
model.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:284c8729a8dbf6e3249abb5900fdf3b767869aec5bb1648ed06ca8724b7c9de8
3
+ size 83801784
preprocessor.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.xception.xception_image_classifier_preprocessor",
3
+ "class_name": "XceptionImageClassifierPreprocessor",
4
+ "config": {
5
+ "name": "xception_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.layers.preprocessing.image_converter",
17
+ "class_name": "ImageConverter",
18
+ "config": {
19
+ "name": "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
+ 299,
31
+ 299
32
+ ],
33
+ "scale": 0.00784313725490196,
34
+ "offset": -1.0,
35
+ "interpolation": "bilinear",
36
+ "antialias": false,
37
+ "crop_to_aspect_ratio": true,
38
+ "pad_to_aspect_ratio": false,
39
+ "bounding_box_format": "yxyx"
40
+ },
41
+ "registered_name": "keras_hub>ImageConverter"
42
+ },
43
+ "config_file": "preprocessor.json"
44
+ },
45
+ "registered_name": "keras_hub>XceptionImageClassifierPreprocessor"
46
+ }
task.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.xception.xception_image_classifier",
3
+ "class_name": "XceptionImageClassifier",
4
+ "config": {
5
+ "backbone": {
6
+ "module": "keras_hub.src.models.xception.xception_backbone",
7
+ "class_name": "XceptionBackbone",
8
+ "config": {
9
+ "name": "xception_backbone",
10
+ "trainable": true,
11
+ "stackwise_conv_filters": [
12
+ [
13
+ 32,
14
+ 64
15
+ ],
16
+ [
17
+ 128,
18
+ 128
19
+ ],
20
+ [
21
+ 256,
22
+ 256
23
+ ],
24
+ [
25
+ 728,
26
+ 728
27
+ ],
28
+ [
29
+ 728,
30
+ 728,
31
+ 728
32
+ ],
33
+ [
34
+ 728,
35
+ 728,
36
+ 728
37
+ ],
38
+ [
39
+ 728,
40
+ 728,
41
+ 728
42
+ ],
43
+ [
44
+ 728,
45
+ 728,
46
+ 728
47
+ ],
48
+ [
49
+ 728,
50
+ 728,
51
+ 728
52
+ ],
53
+ [
54
+ 728,
55
+ 728,
56
+ 728
57
+ ],
58
+ [
59
+ 728,
60
+ 728,
61
+ 728
62
+ ],
63
+ [
64
+ 728,
65
+ 728,
66
+ 728
67
+ ],
68
+ [
69
+ 728,
70
+ 1024
71
+ ],
72
+ [
73
+ 1536,
74
+ 2048
75
+ ]
76
+ ],
77
+ "stackwise_pooling": [
78
+ false,
79
+ true,
80
+ true,
81
+ true,
82
+ false,
83
+ false,
84
+ false,
85
+ false,
86
+ false,
87
+ false,
88
+ false,
89
+ false,
90
+ true,
91
+ false
92
+ ],
93
+ "image_shape": [
94
+ null,
95
+ null,
96
+ 3
97
+ ]
98
+ },
99
+ "registered_name": "keras_hub>XceptionBackbone"
100
+ },
101
+ "preprocessor": {
102
+ "module": "keras_hub.src.models.xception.xception_image_classifier_preprocessor",
103
+ "class_name": "XceptionImageClassifierPreprocessor",
104
+ "config": {
105
+ "name": "xception_image_classifier_preprocessor",
106
+ "trainable": true,
107
+ "dtype": {
108
+ "module": "keras",
109
+ "class_name": "DTypePolicy",
110
+ "config": {
111
+ "name": "float32"
112
+ },
113
+ "registered_name": null
114
+ },
115
+ "image_converter": {
116
+ "module": "keras_hub.src.layers.preprocessing.image_converter",
117
+ "class_name": "ImageConverter",
118
+ "config": {
119
+ "name": "image_converter",
120
+ "trainable": true,
121
+ "dtype": {
122
+ "module": "keras",
123
+ "class_name": "DTypePolicy",
124
+ "config": {
125
+ "name": "float32"
126
+ },
127
+ "registered_name": null
128
+ },
129
+ "image_size": [
130
+ 299,
131
+ 299
132
+ ],
133
+ "scale": 0.00784313725490196,
134
+ "offset": -1.0,
135
+ "interpolation": "bilinear",
136
+ "antialias": false,
137
+ "crop_to_aspect_ratio": true,
138
+ "pad_to_aspect_ratio": false,
139
+ "bounding_box_format": "yxyx"
140
+ },
141
+ "registered_name": "keras_hub>ImageConverter"
142
+ },
143
+ "config_file": "preprocessor.json"
144
+ },
145
+ "registered_name": "keras_hub>XceptionImageClassifierPreprocessor"
146
+ },
147
+ "name": "xception_image_classifier",
148
+ "num_classes": 1000,
149
+ "pooling": "avg",
150
+ "activation": null,
151
+ "dropout": 0.0
152
+ },
153
+ "registered_name": "keras_hub>XceptionImageClassifier"
154
+ }
task.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bc463b750db045a1d29731cef91b49e4942ec33cc2f4337b521a66f64adc143
3
+ size 92014592