DR_Classification / README.md
3v324v23's picture
added fixed readme file
6d2a042

A newer version of the Streamlit SDK is available: 1.48.1

Upgrade
metadata
title: DR Classification
emoji: 🐨
colorFrom: gray
colorTo: blue
sdk: streamlit
sdk_version: 1.44.1
app_file: app.py
pinned: false
license: mit

🐨 DR Classification

This is a Streamlit-based web app for Diabetic Retinopathy (DR) Classification using fundus images. The model classifies retinal images into different DR severity levels to assist in early detection and monitoring.

πŸ’‘ Features

  • Upload a fundus image and get an instant DR classification.
  • Preprocessing pipeline (CLAHE, gamma correction, normalization, etc.) to enhance input quality.
  • Uses a fine-tuned DenseNet-121 model pretrained on ImageNet.
  • Supports visual output like prediction label and optionally Grad-CAM heatmaps for model explainability.

πŸ–Ό Dataset

The dataset used is uploaded on the Hugging Face Hub:
πŸ‘‰ your-username/your-dataset-name

It includes fundus images categorized into the following DR stages:

  • 0: No DR
  • 1: Mild
  • 2: Moderate
  • 3: Severe
  • 4: Proliferative DR

πŸš€ How to Use

  1. Click the β€œOpen in Spaces” button or visit the live app.
  2. Upload a fundus image (JPEG or PNG).
  3. View the model prediction and (optional) heatmap.

🧠 Model Details

  • Architecture: DenseNet-121
  • Pretrained on: ImageNet
  • Fine-tuned on: Fundus images from the uploaded dataset

πŸ›  Tools & Libraries

  • Streamlit
  • PyTorch / TensorFlow (depending on what you're using)
  • OpenCV for image preprocessing
  • Hugging Face Datasets

πŸ“„ License

This project is licensed under the MIT License.


Check the app πŸ‘‰ Live Demo