Divyasreepat commited on
Commit
35c1d4f
1 Parent(s): 827ed4c

Upload folder using huggingface_hub

Browse files
Files changed (8) hide show
  1. README.md +18 -0
  2. config.json +63 -0
  3. image_converter.json +25 -0
  4. metadata.json +6 -0
  5. model.weights.h5 +3 -0
  6. preprocessor.json +43 -0
  7. task.json +116 -0
  8. task.weights.h5 +3 -0
README.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: keras-hub
3
+ ---
4
+ This is a [`DeepLabV3` model](https://keras.io/api/keras_hub/models/deep_lab_v3) uploaded using the KerasHub library and can be used with JAX, TensorFlow, and PyTorch backends.
5
+ This model is related to a `ImageSegmenter` task.
6
+
7
+ Model config:
8
+ * **name:** deep_lab_v3_backbone
9
+ * **trainable:** True
10
+ * **image_encoder:** {'module': 'keras_hub.src.models.resnet.resnet_backbone', 'class_name': 'ResNetBackbone', 'config': {'name': 'res_net_backbone', 'trainable': True, 'input_conv_filters': [64], 'input_conv_kernel_sizes': [7], 'stackwise_num_filters': [64, 128, 256, 512], 'stackwise_num_blocks': [3, 4, 6, 3], 'stackwise_num_strides': [1, 2, 2, 2], 'block_type': 'bottleneck_block', 'use_pre_activation': False, 'image_shape': [None, None, 3]}, 'registered_name': 'keras_hub>ResNetBackbone'}
11
+ * **projection_filters:** 48
12
+ * **dilation_rates:** [6, 12, 18]
13
+ * **upsampling_size:** 8
14
+ * **low_level_feature_key:** P2
15
+ * **spatial_pyramid_pooling_key:** P5
16
+ * **image_shape:** [None, None, 3]
17
+
18
+ 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,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.deeplab_v3.deeplab_v3_backbone",
3
+ "class_name": "DeepLabV3Backbone",
4
+ "config": {
5
+ "name": "deep_lab_v3_backbone",
6
+ "trainable": true,
7
+ "image_encoder": {
8
+ "module": "keras_hub.src.models.resnet.resnet_backbone",
9
+ "class_name": "ResNetBackbone",
10
+ "config": {
11
+ "name": "res_net_backbone",
12
+ "trainable": true,
13
+ "input_conv_filters": [
14
+ 64
15
+ ],
16
+ "input_conv_kernel_sizes": [
17
+ 7
18
+ ],
19
+ "stackwise_num_filters": [
20
+ 64,
21
+ 128,
22
+ 256,
23
+ 512
24
+ ],
25
+ "stackwise_num_blocks": [
26
+ 3,
27
+ 4,
28
+ 6,
29
+ 3
30
+ ],
31
+ "stackwise_num_strides": [
32
+ 1,
33
+ 2,
34
+ 2,
35
+ 2
36
+ ],
37
+ "block_type": "bottleneck_block",
38
+ "use_pre_activation": false,
39
+ "image_shape": [
40
+ null,
41
+ null,
42
+ 3
43
+ ]
44
+ },
45
+ "registered_name": "keras_hub>ResNetBackbone"
46
+ },
47
+ "projection_filters": 48,
48
+ "dilation_rates": [
49
+ 6,
50
+ 12,
51
+ 18
52
+ ],
53
+ "upsampling_size": 8,
54
+ "low_level_feature_key": "P2",
55
+ "spatial_pyramid_pooling_key": "P5",
56
+ "image_shape": [
57
+ null,
58
+ null,
59
+ 3
60
+ ]
61
+ },
62
+ "registered_name": "keras_hub>DeepLabV3Backbone"
63
+ }
image_converter.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.deeplab_v3.deeplab_v3_image_converter",
3
+ "class_name": "DeepLabV3ImageConverter",
4
+ "config": {
5
+ "name": "deep_lab_v3_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
+ 512,
17
+ 512
18
+ ],
19
+ "scale": null,
20
+ "offset": null,
21
+ "interpolation": "nearest",
22
+ "crop_to_aspect_ratio": true
23
+ },
24
+ "registered_name": "keras_hub>DeepLabV3ImageConverter"
25
+ }
metadata.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "keras_version": "3.6.0",
3
+ "keras_hub_version": "0.16.1",
4
+ "parameter_count": 39190656,
5
+ "date_saved": "2024-10-10@05:25:05"
6
+ }
model.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a1d64427e771a24955026f301ab6062b10b1c47ce696e6387e3ab702a8620df
3
+ size 157330040
preprocessor.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.deeplab_v3.deeplab_v3_image_segmeter_preprocessor",
3
+ "class_name": "DeepLabV3ImageSegmenterPreprocessor",
4
+ "config": {
5
+ "name": "deep_lab_v3_image_segmenter_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.deeplab_v3.deeplab_v3_image_converter",
17
+ "class_name": "DeepLabV3ImageConverter",
18
+ "config": {
19
+ "name": "deep_lab_v3_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
+ 512,
31
+ 512
32
+ ],
33
+ "scale": null,
34
+ "offset": null,
35
+ "interpolation": "nearest",
36
+ "crop_to_aspect_ratio": true
37
+ },
38
+ "registered_name": "keras_hub>DeepLabV3ImageConverter"
39
+ },
40
+ "config_file": "preprocessor.json"
41
+ },
42
+ "registered_name": "keras_hub>DeepLabV3ImageSegmenterPreprocessor"
43
+ }
task.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.deeplab_v3.deeplab_v3_segmenter",
3
+ "class_name": "DeepLabV3ImageSegmenter",
4
+ "config": {
5
+ "backbone": {
6
+ "module": "keras_hub.src.models.deeplab_v3.deeplab_v3_backbone",
7
+ "class_name": "DeepLabV3Backbone",
8
+ "config": {
9
+ "name": "deep_lab_v3_backbone",
10
+ "trainable": true,
11
+ "image_encoder": {
12
+ "module": "keras_hub.src.models.resnet.resnet_backbone",
13
+ "class_name": "ResNetBackbone",
14
+ "config": {
15
+ "name": "res_net_backbone",
16
+ "trainable": true,
17
+ "input_conv_filters": [
18
+ 64
19
+ ],
20
+ "input_conv_kernel_sizes": [
21
+ 7
22
+ ],
23
+ "stackwise_num_filters": [
24
+ 64,
25
+ 128,
26
+ 256,
27
+ 512
28
+ ],
29
+ "stackwise_num_blocks": [
30
+ 3,
31
+ 4,
32
+ 6,
33
+ 3
34
+ ],
35
+ "stackwise_num_strides": [
36
+ 1,
37
+ 2,
38
+ 2,
39
+ 2
40
+ ],
41
+ "block_type": "bottleneck_block",
42
+ "use_pre_activation": false,
43
+ "image_shape": [
44
+ null,
45
+ null,
46
+ 3
47
+ ]
48
+ },
49
+ "registered_name": "keras_hub>ResNetBackbone"
50
+ },
51
+ "projection_filters": 48,
52
+ "dilation_rates": [
53
+ 6,
54
+ 12,
55
+ 18
56
+ ],
57
+ "upsampling_size": 8,
58
+ "low_level_feature_key": "P2",
59
+ "spatial_pyramid_pooling_key": "P5",
60
+ "image_shape": [
61
+ null,
62
+ null,
63
+ 3
64
+ ]
65
+ },
66
+ "registered_name": "keras_hub>DeepLabV3Backbone"
67
+ },
68
+ "preprocessor": {
69
+ "module": "keras_hub.src.models.deeplab_v3.deeplab_v3_image_segmeter_preprocessor",
70
+ "class_name": "DeepLabV3ImageSegmenterPreprocessor",
71
+ "config": {
72
+ "name": "deep_lab_v3_image_segmenter_preprocessor",
73
+ "trainable": true,
74
+ "dtype": {
75
+ "module": "keras",
76
+ "class_name": "DTypePolicy",
77
+ "config": {
78
+ "name": "float32"
79
+ },
80
+ "registered_name": null
81
+ },
82
+ "image_converter": {
83
+ "module": "keras_hub.src.models.deeplab_v3.deeplab_v3_image_converter",
84
+ "class_name": "DeepLabV3ImageConverter",
85
+ "config": {
86
+ "name": "deep_lab_v3_image_converter",
87
+ "trainable": true,
88
+ "dtype": {
89
+ "module": "keras",
90
+ "class_name": "DTypePolicy",
91
+ "config": {
92
+ "name": "float32"
93
+ },
94
+ "registered_name": null
95
+ },
96
+ "image_size": [
97
+ 512,
98
+ 512
99
+ ],
100
+ "scale": null,
101
+ "offset": null,
102
+ "interpolation": "nearest",
103
+ "crop_to_aspect_ratio": true
104
+ },
105
+ "registered_name": "keras_hub>DeepLabV3ImageConverter"
106
+ },
107
+ "config_file": "preprocessor.json"
108
+ },
109
+ "registered_name": "keras_hub>DeepLabV3ImageSegmenterPreprocessor"
110
+ },
111
+ "name": "deep_lab_v3_image_segmenter",
112
+ "num_classes": 21,
113
+ "activation": "softmax"
114
+ },
115
+ "registered_name": "keras_hub>DeepLabV3ImageSegmenter"
116
+ }
task.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04b35253794b3b4c90bc725d67ecd059ef2e23824b92460b2f8e63b286fd5b2a
3
+ size 313990840