Push model using huggingface_hub.
Browse files- README.md +8 -5
- config.json +2 -1
- model.safetensors +2 -2
README.md
CHANGED
|
@@ -3,9 +3,11 @@ 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 |
---
|
|
@@ -21,19 +23,20 @@ Table of Contents:
|
|
| 21 |
```python
|
| 22 |
import segmentation_models_pytorch as smp
|
| 23 |
|
| 24 |
-
model = smp.
|
| 25 |
```
|
| 26 |
|
| 27 |
## Model init parameters
|
| 28 |
```python
|
| 29 |
model_init_params = {
|
| 30 |
-
"encoder_name": "
|
| 31 |
"encoder_depth": 5,
|
| 32 |
"encoder_weights": "imagenet",
|
| 33 |
"decoder_pyramid_channels": 256,
|
| 34 |
"decoder_segmentation_channels": 128,
|
| 35 |
"decoder_merge_policy": "add",
|
| 36 |
"decoder_dropout": 0.2,
|
|
|
|
| 37 |
"in_channels": 3,
|
| 38 |
"classes": 1,
|
| 39 |
"activation": None,
|
|
@@ -46,8 +49,8 @@ model_init_params = {
|
|
| 46 |
```json
|
| 47 |
[
|
| 48 |
{
|
| 49 |
-
"test_per_image_iou": 0.
|
| 50 |
-
"test_dataset_iou": 0.
|
| 51 |
}
|
| 52 |
]
|
| 53 |
```
|
|
|
|
| 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 |
---
|
|
|
|
| 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": "resnet34",
|
| 33 |
"encoder_depth": 5,
|
| 34 |
"encoder_weights": "imagenet",
|
| 35 |
"decoder_pyramid_channels": 256,
|
| 36 |
"decoder_segmentation_channels": 128,
|
| 37 |
"decoder_merge_policy": "add",
|
| 38 |
"decoder_dropout": 0.2,
|
| 39 |
+
"decoder_interpolation": "nearest",
|
| 40 |
"in_channels": 3,
|
| 41 |
"classes": 1,
|
| 42 |
"activation": None,
|
|
|
|
| 49 |
```json
|
| 50 |
[
|
| 51 |
{
|
| 52 |
+
"test_per_image_iou": 0.5610896944999695,
|
| 53 |
+
"test_dataset_iou": 0.561133086681366
|
| 54 |
}
|
| 55 |
]
|
| 56 |
```
|
config.json
CHANGED
|
@@ -4,11 +4,12 @@
|
|
| 4 |
"aux_params": null,
|
| 5 |
"classes": 1,
|
| 6 |
"decoder_dropout": 0.2,
|
|
|
|
| 7 |
"decoder_merge_policy": "add",
|
| 8 |
"decoder_pyramid_channels": 256,
|
| 9 |
"decoder_segmentation_channels": 128,
|
| 10 |
"encoder_depth": 5,
|
| 11 |
-
"encoder_name": "
|
| 12 |
"encoder_weights": "imagenet",
|
| 13 |
"in_channels": 3,
|
| 14 |
"upsampling": 4
|
|
|
|
| 4 |
"aux_params": null,
|
| 5 |
"classes": 1,
|
| 6 |
"decoder_dropout": 0.2,
|
| 7 |
+
"decoder_interpolation": "nearest",
|
| 8 |
"decoder_merge_policy": "add",
|
| 9 |
"decoder_pyramid_channels": 256,
|
| 10 |
"decoder_segmentation_channels": 128,
|
| 11 |
"encoder_depth": 5,
|
| 12 |
+
"encoder_name": "resnet34",
|
| 13 |
"encoder_weights": "imagenet",
|
| 14 |
"in_channels": 3,
|
| 15 |
"upsampling": 4
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8e8290eeb068102ec28d1702b42ea13532451a15b2699460fd630b281623656
|
| 3 |
+
size 92714324
|