Downloads · 30 days
0
mahnoor-2722/isic-segformer
isic-segformer is a image segmentation model from mahnoor-2722. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
Pixel-level skin lesion segmentation model fine-tuned on ISIC 2018 Task 1.
Downloads · 30 days
0
Access
Public
Updated Sep 1, 2026
Repo size
14.9 MB
Likes
0
Public
Click a slice to open those files.
.pth14.9 MB · 100%
From the Hugging Face model README
Pixel-level skin lesion segmentation model fine-tuned on ISIC 2018 Task 1.
| Metric | Score |
|---|---|
| Test Dice | 90.32% |
| Test IoU | 82.50% |
Compared against a from-scratch U-Net baseline (85.26% Dice).
best_segformer_isic2018.pth — fine-tuned weightsfrom transformers import SegformerForSemanticSegmentation
from huggingface_hub import hf_hub_download
import torch
model = SegformerForSemanticSegmentation.from_pretrained(
"nvidia/mit-b0",
num_labels=1,
ignore_mismatched_sizes=True
)
path = hf_hub_download(
"mahnoor-2722/isic-segformer",
"best_segformer_isic2018.pth"
)
model.load_state_dict(torch.load(path, map_location="cpu"))
model.eval()