KhalfounMehdi/dermatology_anomaly_detection_vit
Viewer • Updated • 656 • 115 • 2
How to use KhalfounMehdi/dermatology_vit with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="KhalfounMehdi/dermatology_vit")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("KhalfounMehdi/dermatology_vit")
model = AutoModelForImageClassification.from_pretrained("KhalfounMehdi/dermatology_vit")