Push model using huggingface_hub.
Browse files- README.md +61 -0
- config.json +12 -0
- model.safetensors +3 -0
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
# PAN 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": "resnet34",
|
33 |
+
"encoder_weights": "imagenet",
|
34 |
+
"encoder_output_stride": 16,
|
35 |
+
"decoder_channels": 32,
|
36 |
+
"in_channels": 1,
|
37 |
+
"classes": 1,
|
38 |
+
"activation": None,
|
39 |
+
"upsampling": 4,
|
40 |
+
"aux_params": None
|
41 |
+
}
|
42 |
+
```
|
43 |
+
|
44 |
+
## Model metrics
|
45 |
+
```json
|
46 |
+
[
|
47 |
+
{
|
48 |
+
"test_per_image_iou": 0.742108166217804,
|
49 |
+
"test_dataset_iou": 0.7333046197891235
|
50 |
+
}
|
51 |
+
]
|
52 |
+
```
|
53 |
+
|
54 |
+
## Dataset
|
55 |
+
Dataset name: Breast
|
56 |
+
|
57 |
+
## More Information
|
58 |
+
- Library: https://github.com/qubvel/segmentation_models.pytorch
|
59 |
+
- Docs: https://smp.readthedocs.io/en/latest/
|
60 |
+
|
61 |
+
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,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_model_class": "PAN",
|
3 |
+
"activation": null,
|
4 |
+
"aux_params": null,
|
5 |
+
"classes": 1,
|
6 |
+
"decoder_channels": 32,
|
7 |
+
"encoder_name": "resnet34",
|
8 |
+
"encoder_output_stride": 16,
|
9 |
+
"encoder_weights": "imagenet",
|
10 |
+
"in_channels": 1,
|
11 |
+
"upsampling": 4
|
12 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8406f39a41be890b24ca8483c4877088ac6c98b8ddf868f495e30d9e6543f480
|
3 |
+
size 85979176
|