Downloads · 30 days
24
22% of all-time downloads
blackstarai/resnet50-diabetic-retinopathy
resnet50-diabetic-retinopathy is a image classification model from blackstarai. Use it when you need a label for an image. It is set up for keras. The card lists the license as mit.
This model is a fine-tuned ResNet50 convolutional neural network trained to classify diabetic retinopathy (DR) severity stages from retinal fundus images.
Downloads · 30 days
24
22% of all-time downloads
All-time downloads
109
Public
Repo size
120 MB
Likes
0
Public
Click a slice to open those files.
.keras120 MB · 100%
From the Hugging Face model README
This model is a fine-tuned ResNet50 convolutional neural network trained to classify diabetic retinopathy (DR) severity stages from retinal fundus images.
Provide a summary of validation performance:
from huggingface_hub import hf_hub_download
from keras.models import load_model
import numpy as np
# Download weights from Hugging Face Hub
model_path = hf_hub_download(
repo_id="your-username/resnet50-diabetic-retinopathy",
filename="best_resnet50_model.keras"
)
# Load the model
model = load_model(model_path)
# Run prediction on a preprocessed numpy image (shape: 1, 224, 224, 3)
# predictions = model.predict(preprocessed_image)
# print("Predicted Class:", np.argmax(predictions[0]))
──────