Upload folder using huggingface_hub
Browse files- README.md +53 -0
- config.json +11 -0
- input-tensor.pth +3 -0
- model.safetensors +3 -0
- output-tensor.pth +3 -0
README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
# Segformer 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": "tu-resnet18",
|
| 33 |
+
"encoder_depth": 5,
|
| 34 |
+
"encoder_weights": "imagenet",
|
| 35 |
+
"decoder_segmentation_channels": 256,
|
| 36 |
+
"in_channels": 3,
|
| 37 |
+
"classes": 1,
|
| 38 |
+
"activation": None,
|
| 39 |
+
"aux_params": None
|
| 40 |
+
}
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
## Model metrics
|
| 44 |
+
[More Information Needed]
|
| 45 |
+
|
| 46 |
+
## Dataset
|
| 47 |
+
Dataset name: [More Information Needed]
|
| 48 |
+
|
| 49 |
+
## More Information
|
| 50 |
+
- Library: https://github.com/qubvel/segmentation_models.pytorch
|
| 51 |
+
- Docs: https://smp.readthedocs.io/en/latest/
|
| 52 |
+
|
| 53 |
+
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,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_model_class": "Segformer",
|
| 3 |
+
"activation": null,
|
| 4 |
+
"aux_params": null,
|
| 5 |
+
"classes": 1,
|
| 6 |
+
"decoder_segmentation_channels": 256,
|
| 7 |
+
"encoder_depth": 5,
|
| 8 |
+
"encoder_name": "tu-resnet18",
|
| 9 |
+
"encoder_weights": "imagenet",
|
| 10 |
+
"in_channels": 3
|
| 11 |
+
}
|
input-tensor.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43cebe575523ed0d2e9820e994b70e96cff73d577bc5e225ecb2131bf187c006
|
| 3 |
+
size 787637
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27342c13c78a5c58ecb51f0e27a2231dda6fb50a1cee1c0594196c5333a212a7
|
| 3 |
+
size 47128324
|
output-tensor.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:434588c44c92c99fb6cebda87de0c3dcb8f48cf1e3bf5ea8fa195e74275f81ad
|
| 3 |
+
size 263354
|