qubvel-hf HF staff commited on
Commit
013899f
1 Parent(s): d12b09b

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +58 -0
  2. config.json +19 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: segmentation-models-pytorch
3
+ license: mit
4
+ pipeline_tag: image-segmentation
5
+ tags:
6
+ - semantic-segmentation
7
+ - pytorch
8
+ - segmentation-models-pytorch
9
+ languages:
10
+ - python
11
+ ---
12
+ # Unet Model Card
13
+
14
+ Table of Contents:
15
+ - [Load trained model](#load-trained-model)
16
+ - [Model init parameters](#model-init-parameters)
17
+ - [Model metrics](#model-metrics)
18
+ - [Dataset](#dataset)
19
+
20
+ ## Load trained model
21
+ ```python
22
+ import segmentation_models_pytorch as smp
23
+
24
+ model = smp.from_pretrained("<save-directory-or-this-repo>")
25
+ ```
26
+
27
+ ## Model init parameters
28
+ ```python
29
+ model_init_params = {
30
+ "encoder_name": "resnet34",
31
+ "encoder_depth": 5,
32
+ "encoder_weights": "imagenet",
33
+ "decoder_use_batchnorm": True,
34
+ "decoder_channels": (256, 128, 64, 32, 16),
35
+ "decoder_attention_type": None,
36
+ "in_channels": 3,
37
+ "classes": 1,
38
+ "activation": None,
39
+ "aux_params": None
40
+ }
41
+ ```
42
+
43
+ ## Model metrics
44
+ ```json
45
+ {
46
+ "mIoU": 0.95,
47
+ "accuracy": 0.96
48
+ }
49
+ ```
50
+
51
+ ## Dataset
52
+ Dataset name: PASCAL VOC
53
+
54
+ ## More Information
55
+ - Library: https://github.com/qubvel/segmentation_models.pytorch
56
+ - Docs: https://smp.readthedocs.io/en/latest/
57
+
58
+ 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,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_model_class": "Unet",
3
+ "activation": null,
4
+ "aux_params": null,
5
+ "classes": 1,
6
+ "decoder_attention_type": null,
7
+ "decoder_channels": [
8
+ 256,
9
+ 128,
10
+ 64,
11
+ 32,
12
+ 16
13
+ ],
14
+ "decoder_use_batchnorm": true,
15
+ "encoder_depth": 5,
16
+ "encoder_name": "resnet34",
17
+ "encoder_weights": "imagenet",
18
+ "in_channels": 3
19
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a805c3220c60424208b80ad5a5676d1e3c225cd5cf00e63c659afb56dfc46a7f
3
+ size 97849364