Push model using huggingface_hub.
Browse files- README.md +64 -0
- config.json +15 -0
- model.safetensors +3 -0
README.md
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
# FPN 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": "resnet50",
|
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 |
+
"in_channels": 3,
|
40 |
+
"classes": 1,
|
41 |
+
"activation": None,
|
42 |
+
"upsampling": 4,
|
43 |
+
"aux_params": None
|
44 |
+
}
|
45 |
+
```
|
46 |
+
|
47 |
+
## Model metrics
|
48 |
+
```json
|
49 |
+
[
|
50 |
+
{
|
51 |
+
"test_per_image_iou": 0.7208837866783142,
|
52 |
+
"test_dataset_iou": 0.6995143294334412
|
53 |
+
}
|
54 |
+
]
|
55 |
+
```
|
56 |
+
|
57 |
+
## Dataset
|
58 |
+
Dataset name: water-meter
|
59 |
+
|
60 |
+
## More Information
|
61 |
+
- Library: https://github.com/qubvel/segmentation_models.pytorch
|
62 |
+
- Docs: https://smp.readthedocs.io/en/latest/
|
63 |
+
|
64 |
+
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,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_model_class": "FPN",
|
3 |
+
"activation": null,
|
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": "resnet50",
|
12 |
+
"encoder_weights": "imagenet",
|
13 |
+
"in_channels": 3,
|
14 |
+
"upsampling": 4
|
15 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3fa087148c2e3e7a6522303caea880f8f4e5e6901d53d572f90bc106232e6150
|
3 |
+
size 104711676
|