Views
No views yet
⚠️ Disclaimer: This model is a research proof-of-concept trained on the SIPaKMeD dataset. It is NOT a certified medical device and should not be used for clinical diagnosis.
| ID | Label | Description |
|---|---|---|
| 0 | dyskeratotic | Abnormal (Squamous cell carcinoma) |
| 1 | koilocytotic | Abnormal (HPV infection indicator) |
| 2 | metaplastic | Benign (Normal variation) |
| 3 | parabasal | Benign (Normal variation) |
| 4 | superficial_intermediate | Benign (Normal variation) |
1from transformers import AutoImageProcessor, AutoModelForImageClassification
2from PIL import Image
3
4# Load Model
5repo_name = "AurevinP/cervical-cytology-mobilevit-sipakmed"
6processor = AutoImageProcessor.from_pretrained(repo_name)
7model = AutoModelForImageClassification.from_pretrained(repo_name)
8
9# Inference
10image = Image.open("path/to/slide_patch.jpg")
11inputs = processor(images=image, return_tensors="pt")
12outputs = model(**inputs)
13logits = outputs.logits
14predicted_class = logits.argmax(-1).item()
15
16print(f"Prediction: {model.config.id2label[predicted_class]}")