-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from SayantikaLaskar/eyedisease
Add Eye disease classification
- Loading branch information
Showing
8 changed files
with
2,569 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
The link to the dataset: | ||
https://www.kaggle.com/datasets/kondwani/eye-disease-dataset |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,463 changes: 2,463 additions & 0 deletions
2,463
Eye Disease Classification/Model/Eye_Disease_classification.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Eye Disease Classification Using CNN, VGG16, and ResNet-50 | ||
|
||
## Overview | ||
|
||
This repository contains the implementation of an eye disease classification system using Convolutional Neural Networks (CNN), VGG16, and ResNet-50 architectures. The project aims to accurately classify various eye diseases from retinal images. | ||
|
||
This project is part of the GirlScript Summer of Code 2024 program. | ||
|
||
## Table of Contents | ||
- [Overview](#overview) | ||
- [Table of Contents](#table-of-contents) | ||
- [Features](#features) | ||
- [Dataset](#dataset) | ||
- [Requirements](#requirements) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [Model Architecture](#model-architecture) | ||
- [Training](#training) | ||
- [License](#license) | ||
|
||
## Features | ||
- Data preprocessing and augmentation. | ||
- Implementation of CNN, VGG16, and ResNet-50 models. | ||
- Training and validation scripts. | ||
|
||
## Dataset | ||
The dataset used for this project consists of retinal images labeled with various eye diseases. You can download the dataset from [Kaggle Eye Disease Dataset](https://www.kaggle.com/datasets/kondwani/eye-disease-dataset). | ||
|
||
## Requirements | ||
- Python 3.7+ | ||
- TensorFlow 2.x | ||
- Keras | ||
- NumPy | ||
- Pandas | ||
- Matplotlib | ||
- scikit-learn | ||
|
||
## Installation | ||
1. Clone the repository: | ||
```bash | ||
git clone https://github.com/yourusername/eye-disease-classification.git | ||
cd eye-disease-classification | ||
``` | ||
|
||
2. Install the required packages: | ||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
|
||
## Usage | ||
1. **Preprocess the Data:** | ||
- Download the dataset and place it in the `data/` directory. | ||
- Run the preprocessing script to prepare the data for training: | ||
```bash | ||
python preprocess.py | ||
``` | ||
|
||
2. **Train the Model:** | ||
- Train the CNN model: | ||
```bash | ||
python train.py --model cnn | ||
``` | ||
- Train the VGG16 model: | ||
```bash | ||
python train.py --model vgg16 | ||
``` | ||
- Train the ResNet-50 model: | ||
```bash | ||
python train.py --model resnet50 | ||
``` | ||
|
||
3. **Evaluate the Model:** | ||
- Evaluate the trained model: | ||
```bash | ||
python evaluate.py --model model_name | ||
``` | ||
|
||
## Model Architecture | ||
### Convolutional Neural Network (CNN) | ||
A custom CNN architecture designed for image classification. | ||
|
||
### VGG16 | ||
A pre-trained VGG16 model fine-tuned for eye disease classification. | ||
|
||
### ResNet-50 | ||
A pre-trained ResNet-50 model fine-tuned for eye disease classification. | ||
|
||
## Training | ||
The training process involves: | ||
- Splitting the dataset into training, validation, and test sets. | ||
- Data augmentation to improve model generalization. | ||
- Training the model with early stopping and model checkpointing. | ||
|
||
|
||
## License | ||
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
**Requirements For Project :-** | ||
|
||
1. NumPy: Fundamental package for numerical computing. | ||
2. pandas: Data analysis and manipulation library. | ||
3. scikit-learn: Machine learning library for classification, regression, and clustering. | ||
4. Matplotlib: Plotting library for creating visualizations. | ||
5. Keras: High-level neural networks API, typically used with TensorFlow backend. | ||
6. seaborn: Statistical data visualization library based on Matplotlib. |