3v324v23 commited on
Commit
8b55728
·
2 Parent(s): 3f4479e 2d6cdab

Merge branch 'main' of https://huggingface.co/spaces/Ci-Dave/DR_Classification

Browse files
Files changed (1) hide show
  1. README.md +41 -11
README.md CHANGED
@@ -1,13 +1,43 @@
1
- ---
2
- title: DR Classification
3
- emoji: 🐨
4
- colorFrom: gray
5
- colorTo: blue
6
- sdk: streamlit
7
- sdk_version: 1.44.1
8
- app_file: app.py
9
- pinned: false
10
- license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
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)**