Downloads · 30 days
13
30% of all-time downloads
dhineshkmar/alzhimer
alzhimer is a image classification model from dhineshkmar. Use it when you need a label for an image. The card lists the license as mit.
This model detects alzhimer from brain MRI scans.
Downloads · 30 days
13
30% of all-time downloads
All-time downloads
44
Public
Repo size
343 MB
Likes
0
Public
Click a slice to open those files.
.pth343 MB · 100%
From the Hugging Face model README
This model detects alzhimer from brain MRI scans.
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
from PIL import Image
model_name = "dhineshkmar/alzhimer"
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
model = AutoModelForImageClassification.from_pretrained(model_name)
image = Image.open("brain_scan.jpg")
inputs = feature_extractor(images=image, return_tensors="pt")
outputs = model(**inputs)
predicted_class = outputs.logits.argmax(-1).item()
Trained on brain MRI scan dataset for alzhimer detection.