ahishamm/combined_masks
Viewer • Updated • 2.95k • 35
How to use ahishamm/skinsam with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("mask-generation", model="ahishamm/skinsam") # Load model directly
from transformers import AutoProcessor, AutoModelForMaskGeneration
processor = AutoProcessor.from_pretrained("ahishamm/skinsam")
model = AutoModelForMaskGeneration.from_pretrained("ahishamm/skinsam")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:
PH2 Dataset: