File size: 2,646 Bytes
b456e44
adabe36
b456e44
 
 
 
 
 
adabe36
b456e44
 
 
16ee864
b456e44
16ee864
b456e44
16ee864
b456e44
16ee864
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
title: DiabeticRetionPathyDetection
emoji: πŸš€
colorFrom: red
colorTo: red
sdk: docker
app_port: 8501
tags:
- streamlit
pinned: false
short_description: Streamlit template space
---
# Diabetic Retinopathy Detection

![Project Logo](https://huggingface.co/spaces/AsmaaElnagger/DiabeticRetionPathyDetection/resolve/main/assets/thumbnail.png)

A Streamlit-based web application for detecting diabetic retinopathy from eye fundus images using a deep learning model from Hugging Face.

[![Open in Streamlit](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://huggingface.co/spaces/AsmaaElnagger/DiabeticRetionPathyDetection)
[![Hugging Face Model](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-blue)](https://huggingface.co/Asmaa111/diabetic-eye)

## πŸ” Overview
This application uses a pre-trained deep learning model to classify eye fundus images into different stages of diabetic retinopathy. The model is hosted on Hugging Face and integrated into a user-friendly Streamlit interface.

## πŸš€ Getting Started

### Using Docker (Recommended)
1. Build the Docker image:
```bash
docker build -t diabetic-retinopathy .
```

2. Run the container:
```bash
docker run -p 8501:8501 diabetic-retinopathy
```

3. Access the app at `http://localhost:8501`

### Without Docker
1. Install dependencies:
```bash
pip install -r requirements.txt
```

2. Download the model:
```bash
python download_model.py
```

3. Run the Streamlit app:
```bash
streamlit run src/streamlit_app.py
```

## 🧠 Model Information
- **Model Name:** diabetic-eye
- **Repository:** [Asmaa111/diabetic-eye](https://huggingface.co/Asmaa111/diabetic-eye)
- **Framework:** PyTorch
- **Input:** Eye fundus images (JPEG/PNG)
- **Output:** Classification into retinopathy stages

## πŸ“‚ Project Structure
```
DiabeticRetionPathyDetection/
β”œβ”€β”€ .streamlit/            # Streamlit configuration
β”œβ”€β”€ src/
β”‚   └── streamlit_app.py   # Main application code
β”œβ”€β”€ Dockerfile             # Docker configuration
β”œβ”€β”€ download_model.py      # Model download script
β”œβ”€β”€ requirements.txt       # Python dependencies
└── README.md              # Project documentation
```

## 🌐 Live Demo
Try the live version hosted on Hugging Face Spaces:  
[DiabeticRetionPathyDetection Demo](https://huggingface.co/spaces/AsmaaElnagger/DiabeticRetionPathyDetection)

## πŸ“š Resources
- [Streamlit Documentation](https://docs.streamlit.io)
- [Hugging Face Transformers](https://huggingface.co/docs/transformers/index)
- [Diabetic Retinopathy Detection Research](https://www.kaggle.com/c/diabetic-retinopathy-detection)