DimitrisMantas commited on
Commit
f34af4f
·
verified ·
1 Parent(s): a93f23c

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +63 -0
  2. config.json +27 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: segmentation-models-pytorch
3
+ license: mit
4
+ pipeline_tag: image-segmentation
5
+ tags:
6
+ - model_hub_mixin
7
+ - pytorch_model_hub_mixin
8
+ - segmentation-models-pytorch
9
+ - semantic-segmentation
10
+ - pytorch
11
+ languages:
12
+ - python
13
+ ---
14
+ # DeepLabV3Plus Model Card
15
+
16
+ Table of Contents:
17
+ - [Load trained model](#load-trained-model)
18
+ - [Model init parameters](#model-init-parameters)
19
+ - [Model metrics](#model-metrics)
20
+ - [Dataset](#dataset)
21
+
22
+ ## Load trained model
23
+ ```python
24
+ import segmentation_models_pytorch as smp
25
+
26
+ model = smp.from_pretrained("<save-directory-or-this-repo>")
27
+ ```
28
+
29
+ ## Model init parameters
30
+ ```python
31
+ model_init_params = {
32
+ "encoder_name": "tu-resnet18d",
33
+ "encoder_depth": 5,
34
+ "encoder_weights": "imagenet",
35
+ "encoder_output_stride": 16,
36
+ "decoder_channels": 256,
37
+ "decoder_atrous_rates": (20, 15, 6),
38
+ "decoder_aspp_separable": True,
39
+ "decoder_aspp_dropout": 0,
40
+ "in_channels": 10,
41
+ "classes": 9,
42
+ "activation": None,
43
+ "upsampling": 4,
44
+ "aux_params": None,
45
+ "global_pool": "avgmax",
46
+ "drop_rate": 0.030244232449387346,
47
+ "drop_path_rate": 0.43231510659674255,
48
+ "zero_init_last": True,
49
+ "block_args": {'attn_layer': 'eca'}
50
+ }
51
+ ```
52
+
53
+ ## Model metrics
54
+ [More Information Needed]
55
+
56
+ ## Dataset
57
+ Dataset name: [More Information Needed]
58
+
59
+ ## More Information
60
+ - Library: https://github.com/qubvel/segmentation_models.pytorch
61
+ - Docs: https://smp.readthedocs.io/en/latest/
62
+
63
+ This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin)
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_model_class": "DeepLabV3Plus",
3
+ "activation": null,
4
+ "aux_params": null,
5
+ "block_args": {
6
+ "attn_layer": "eca"
7
+ },
8
+ "classes": 9,
9
+ "decoder_aspp_dropout": 0,
10
+ "decoder_aspp_separable": true,
11
+ "decoder_atrous_rates": [
12
+ 20,
13
+ 15,
14
+ 6
15
+ ],
16
+ "decoder_channels": 256,
17
+ "drop_path_rate": 0.43231510659674255,
18
+ "drop_rate": 0.030244232449387346,
19
+ "encoder_depth": 5,
20
+ "encoder_name": "tu-resnet18d",
21
+ "encoder_output_stride": 16,
22
+ "encoder_weights": "imagenet",
23
+ "global_pool": "avgmax",
24
+ "in_channels": 10,
25
+ "upsampling": 4,
26
+ "zero_init_last": true
27
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26c9a610f3b8d474a43b30d54cad3b07cdaf4f25466aa00bd1b01b9342d21a83
3
+ size 49486852