Upload trained UnetPlusPlus model
Browse files- README.md +30 -3
- config.json +15 -0
- pytorch_model.bin +3 -0
README.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- computer-vision
|
| 5 |
+
- image-segmentation
|
| 6 |
+
- pytorch
|
| 7 |
+
- efficientnet
|
| 8 |
+
- plant-disease
|
| 9 |
+
- segmentation-models-pytorch
|
| 10 |
+
---
|
| 11 |
+
# nwrd-tukl
|
| 12 |
+
UnetPlusPlus model with timm-efficientnet-b7 encoder for plant disease segmentation.
|
| 13 |
+
## Model Details
|
| 14 |
+
- **Architecture:** UnetPlusPlus
|
| 15 |
+
- **Encoder:** timm-efficientnet-b7
|
| 16 |
+
- **Dataset:** [Plant Disease Segmentation](https://www.kaggle.com/datasets/vipoooool/plantdiseasestukl)
|
| 17 |
+
- **Image Size:** 512x512
|
| 18 |
+
- **Classes:** 2 (0: Background, 1: Disease)
|
| 19 |
+
## How to Use
|
| 20 |
+
```bash
|
| 21 |
+
pip install torch segmentation-models-pytorch huggingface_hub
|
| 22 |
+
```
|
| 23 |
+
```python
|
| 24 |
+
import torch
|
| 25 |
+
import segmentation_models_pytorch as smp
|
| 26 |
+
from huggingface_hub import hf_hub_download
|
| 27 |
+
model = smp.UnetPlusPlus(encoder_name="timm-efficientnet-b7", encoder_weights=None, in_channels=3, classes=2)
|
| 28 |
+
model.load_state_dict(torch.load(hf_hub_download(repo_id="KM-Alee/nwrd-tukl", filename="pytorch_model.bin")))
|
| 29 |
+
model.eval()
|
| 30 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture": "segmentation_models_pytorch.UnetPlusPlus",
|
| 3 |
+
"model_name": "UnetPlusPlus",
|
| 4 |
+
"encoder": "timm-efficientnet-b7",
|
| 5 |
+
"patch_size": 512,
|
| 6 |
+
"num_classes": 2,
|
| 7 |
+
"class_values": [
|
| 8 |
+
0,
|
| 9 |
+
255
|
| 10 |
+
],
|
| 11 |
+
"class_mapping": {
|
| 12 |
+
"0": "Background",
|
| 13 |
+
"1": "Disease"
|
| 14 |
+
}
|
| 15 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac26a4b3cd574671e2c8d1d26a1ffb71cc775ca8bf2d64842e09b19895ec334d
|
| 3 |
+
size 274408382
|