Downloads · 30 days
3
1% of all-time downloads
Kar1hik/computer-vision-project
computer-vision-project is a image classification model from Kar1hik. Use it when you need a label for an image. The card lists the license as apache-2.0.
This model classifies images of skin lesions into one of the predefined categories from the ISIC2018 dataset. It is fine-tuned on top of the facebook/dinov2-base Vision Transformer backbone for improved performance in…
Downloads · 30 days
3
1% of all-time downloads
All-time downloads
371
Public
Repo size
693 MB
Likes
1
Public
Click a slice to open those files.
.bin347 MB · 100%
From the Hugging Face model README
This model classifies images of skin lesions into one of the predefined categories from the ISIC2018 dataset. It is fine-tuned on top of the facebook/dinov2-base Vision Transformer backbone for improved performance in medical image classification tasks.
facebook/dinov2-baseISIC2018This model can be used directly for classifying dermatoscopic images from the ISIC2018 dataset into one of the skin disease categories such as melanoma, nevus, basal cell carcinoma, etc.
This model should not be used as a standalone diagnostic tool. Clinical decisions should not rely solely on model predictions.
from transformers import AutoImageProcessor, AutoModelForImageClassification
from PIL import Image
import torch
image = Image.open("your_skin_image.jpg")
processor = AutoImageProcessor.from_pretrained("kar1hik/computer-vision-project")
model = AutoModelForImageClassification.from_pretrained("kar1hik/computer-vision-project")
inputs = processor(images=image, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
predicted_class = logits.argmax(-1).item()