Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,39 +1,39 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
tags:
|
| 4 |
-
- tattoo-segmentation
|
| 5 |
-
- image-segmentation
|
| 6 |
-
- pytorch
|
| 7 |
-
---
|
| 8 |
-
|
| 9 |
-
# Deep Tattoo Segmentation
|
| 10 |
-
|
| 11 |
-
2-Stage tattoo extraction model using Attention U-Net.
|
| 12 |
-
|
| 13 |
-
## Models
|
| 14 |
-
|
| 15 |
-
- `best_model_pytorch.pth`: Stage 1 - Skin detection (Val Dice: 93.08%)
|
| 16 |
-
- `tattoo_stage2_best.pth`: Stage 2 v1 - Tattoo extraction (Val Dice: 75.77%)
|
| 17 |
-
- `tattoo_stage2_v2_best.pth`: Stage 2 v2 - Fine-line tattoo detection (Val Dice: 73.63%)
|
| 18 |
-
- `tattoo_final_best.pth`: Final model trained on 9,000 images (Best checkpoint)
|
| 19 |
-
- `tattoo_final_last.pth`: Final model trained on 9,000 images (Last checkpoint)
|
| 20 |
-
|
| 21 |
-
## Usage
|
| 22 |
-
|
| 23 |
-
```python
|
| 24 |
-
import torch
|
| 25 |
-
from huggingface_hub import hf_hub_download
|
| 26 |
-
|
| 27 |
-
# Download model
|
| 28 |
-
model_path = hf_hub_download(
|
| 29 |
-
repo_id="jun710/deep-tattoo",
|
| 30 |
-
filename="best_model_pytorch.pth"
|
| 31 |
-
)
|
| 32 |
-
|
| 33 |
-
# Load model
|
| 34 |
-
model = torch.load(model_path, map_location='cpu')
|
| 35 |
-
```
|
| 36 |
-
|
| 37 |
-
## Repository
|
| 38 |
-
|
| 39 |
-
https://github.com/enjius/deep-tattoo
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- tattoo-segmentation
|
| 5 |
+
- image-segmentation
|
| 6 |
+
- pytorch
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# Deep Tattoo Segmentation
|
| 10 |
+
|
| 11 |
+
2-Stage tattoo extraction model using Attention U-Net.
|
| 12 |
+
|
| 13 |
+
## Models
|
| 14 |
+
|
| 15 |
+
- `best_model_pytorch.pth`: Stage 1 - Skin detection (Val Dice: 93.08%)
|
| 16 |
+
- `tattoo_stage2_best.pth`: Stage 2 v1 - Tattoo extraction (Val Dice: 75.77%)
|
| 17 |
+
- `tattoo_stage2_v2_best.pth`: Stage 2 v2 - Fine-line tattoo detection (Val Dice: 73.63%)
|
| 18 |
+
- `tattoo_final_best.pth`: Final model trained on 9,000 images (Best checkpoint)
|
| 19 |
+
- `tattoo_final_last.pth`: Final model trained on 9,000 images (Last checkpoint)
|
| 20 |
+
|
| 21 |
+
## Usage
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
import torch
|
| 25 |
+
from huggingface_hub import hf_hub_download
|
| 26 |
+
|
| 27 |
+
# Download model
|
| 28 |
+
model_path = hf_hub_download(
|
| 29 |
+
repo_id="jun710/deep-tattoo",
|
| 30 |
+
filename="best_model_pytorch.pth"
|
| 31 |
+
)
|
| 32 |
+
|
| 33 |
+
# Load model
|
| 34 |
+
model = torch.load(model_path, map_location='cpu')
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## Repository
|
| 38 |
+
|
| 39 |
+
https://github.com/enjius/deep-tattoo
|