This repository contains an AI model that does image classification on images on the eye to detect if an eye has any diseases and labels them accordingly. This repository came to life in accordance to the subject AI Convergence and Application that is held on Handong Global University (HGU).
The full list of requirements and their version number can be found in the requirements.txt
file.
Execute the following command to install all the required dependencies.
pip install -r requirements.txt
DISCLAIMER
The packages/libraries listed in the text document contains all the packages that have been installed in the used Python environment.
Furthermore the used packages/libraries might be of an older version or are not supported/maintained in the future.
To get starting with training the model, please download the dataset (link in the citations chapter), or use your own dataset.
To properly setup, create a folder named data
in the root folder and place your data in there. The images have to be separated by class by putting them in their respective folder (see example below).
Eye_Disease_Detection_Swin-Transformer_PyTorch
├── data
│ ├── class1
│ │ ├── imagefile
│ ├── class2
│ │ ├── imagefile
│ ├── class3
│ └── etc.
│
├── .gitignore
├── Eye_Disease_Detection.ipynb
├── README.md
└── requirement.txt
Here you can find the "main" program to run/train the AI model.
Here you can find all the needed packages/dependencies that were installed using the Python environment. The list also contains some packages/dependencies that were not needed to run this Jupyter Notebook.
For more information about the subject Swin Transformer visit the following websites:
@inproceedings{liu2021Swin,
title={Swin Transformer: Hierarchical Vision Transformer using Shifted Windows},
author={Liu, Ze and Lin, Yutong and Cao, Yue and Hu, Han and Wei, Yixuan and Zhang, Zheng and Lin, Stephen and Guo, Baining},
booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
year={2021}
}