DR_Classification / README.md
3v324v23's picture
added fixed readme file
6d2a042
---
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**](https://huggingface.co/datasets/Ci-Dave/DDR_dataset_train_test)
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](https://huggingface.co/spaces/Ci-Dave/DR_Classification)**