Spaces:
Runtime error
Runtime error
Merge branch 'main' of https://huggingface.co/spaces/Ci-Dave/DR_Classification
Browse files
README.md
CHANGED
|
@@ -1,13 +1,43 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
Check
|
|
|
|
| 1 |
+
# 🐨 DR Classification
|
| 2 |
+
|
| 3 |
+
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.
|
| 4 |
+
|
| 5 |
+
## 💡 Features
|
| 6 |
+
- Upload a fundus image and get an instant DR classification.
|
| 7 |
+
- Preprocessing pipeline (CLAHE, gamma correction, normalization, etc.) to enhance input quality.
|
| 8 |
+
- Uses a fine-tuned DenseNet-121 model pretrained on ImageNet.
|
| 9 |
+
- Supports visual output like prediction label and optionally Grad-CAM heatmaps for model explainability.
|
| 10 |
+
|
| 11 |
+
## 🖼 Dataset
|
| 12 |
+
The dataset used is uploaded on the Hugging Face Hub:
|
| 13 |
+
👉 [**your-username/your-dataset-name**](https://huggingface.co/datasets/Ci-Dave/DDR_dataset_train_test)
|
| 14 |
+
|
| 15 |
+
It includes fundus images categorized into the following DR stages:
|
| 16 |
+
- 0: No DR
|
| 17 |
+
- 1: Mild
|
| 18 |
+
- 2: Moderate
|
| 19 |
+
- 3: Severe
|
| 20 |
+
- 4: Proliferative DR
|
| 21 |
+
|
| 22 |
+
## 🚀 How to Use
|
| 23 |
+
1. Click the “Open in Spaces” button or visit the live app.
|
| 24 |
+
2. Upload a fundus image (JPEG or PNG).
|
| 25 |
+
3. View the model prediction and (optional) heatmap.
|
| 26 |
+
|
| 27 |
+
## 🧠 Model Details
|
| 28 |
+
- **Architecture**: DenseNet-121
|
| 29 |
+
- **Pretrained on**: ImageNet
|
| 30 |
+
- **Fine-tuned on**: Fundus images from the uploaded dataset
|
| 31 |
+
|
| 32 |
+
## 🛠 Tools & Libraries
|
| 33 |
+
- Streamlit
|
| 34 |
+
- PyTorch / TensorFlow (depending on what you're using)
|
| 35 |
+
- OpenCV for image preprocessing
|
| 36 |
+
- Hugging Face Datasets
|
| 37 |
+
|
| 38 |
+
## 📄 License
|
| 39 |
+
This project is licensed under the MIT License.
|
| 40 |
+
|
| 41 |
---
|
| 42 |
|
| 43 |
+
**Check the app 👉 [Live Demo](https://huggingface.co/spaces/Ci-Dave/DR_Classification)**
|