How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("mask-generation", model="ahishamm/skinsam")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMaskGeneration

processor = AutoProcessor.from_pretrained("ahishamm/skinsam")
model = AutoModelForMaskGeneration.from_pretrained("ahishamm/skinsam", device_map="auto")
Quick Links

Model Description

SkinSAM is on the 12-layer ViT-b model, the mask decoder module of SAM is fine-tuned on a combined dataset of ISIC and PH2 skin lesion images and masks. SkinSAM was trained on an Nvidia Tesla A100 40GB GPU.

Some of the notable results taken:
ISIC Dataset:

  1. IOU 78.25%
  2. Pixel Accuracy 92.18%
  3. F1 Score 87.47%

PH2 Dataset:

  1. IOU 86.68%
  2. Pixel Accuracy 93.33%
  3. F1 Score 93.95%
Downloads last month
44
Safetensors
Model size
93.7M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Dataset used to train ahishamm/skinsam