Push model using huggingface_hub.
Browse files- README.md +65 -0
- config.json +20 -0
- model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
# UnetPlusPlus 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": "densenet201",
|
| 33 |
+
"encoder_depth": 5,
|
| 34 |
+
"encoder_weights": "imagenet",
|
| 35 |
+
"decoder_use_norm": "batchnorm",
|
| 36 |
+
"decoder_channels": (256, 128, 64, 32, 16),
|
| 37 |
+
"decoder_attention_type": None,
|
| 38 |
+
"decoder_interpolation": "nearest",
|
| 39 |
+
"in_channels": 3,
|
| 40 |
+
"classes": 1,
|
| 41 |
+
"activation": None,
|
| 42 |
+
"aux_params": None
|
| 43 |
+
}
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
## Model metrics
|
| 47 |
+
```json
|
| 48 |
+
[
|
| 49 |
+
{
|
| 50 |
+
"test_per_image_iou": 0.5305242538452148,
|
| 51 |
+
"test_dataset_iou": 0.5433780550956726,
|
| 52 |
+
"test_per_image_accuracy": 0.7349790334701538,
|
| 53 |
+
"test_dataset_accuracy": 0.7349790334701538
|
| 54 |
+
}
|
| 55 |
+
]
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## Dataset
|
| 59 |
+
Dataset name: VIP
|
| 60 |
+
|
| 61 |
+
## More Information
|
| 62 |
+
- Library: https://github.com/qubvel/segmentation_models.pytorch
|
| 63 |
+
- Docs: https://smp.readthedocs.io/en/latest/
|
| 64 |
+
|
| 65 |
+
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,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_model_class": "UnetPlusPlus",
|
| 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_interpolation": "nearest",
|
| 15 |
+
"decoder_use_norm": "batchnorm",
|
| 16 |
+
"encoder_depth": 5,
|
| 17 |
+
"encoder_name": "densenet201",
|
| 18 |
+
"encoder_weights": "imagenet",
|
| 19 |
+
"in_channels": 3
|
| 20 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7aec0bb89b7d08bb3657fec2826d72d7143715771172b51d35b94d6bc6f3002
|
| 3 |
+
size 195448012
|