RetAMD is a web-based application developed in Flask for classifying retinal images. It specializes in detecting Age-related Macular Degeneration (AMD) using deep learning.
-
AMD classification: ResNet-18 architecture pretrained by Oliveira et al. This network was trained mixing real and synthetic data generated by StyleGAN-2 to create a robust model that overcomes limitations in generalization.
-
Retinal image quality assessment: DenseNet trained by Fu et al. which classified these in 3 classes: “Good”, “Usable” and “Reject”. The rejected images were of poor quality based on significant blurring, low contrast, inadequate illumination.
-
Decision interpretation: A heatmap created by GradCAM is displayed on the right. This heatmap highlights the regions that were used in the diagnosis and allows the clinical users to understand the basis of the system's decision.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have the following installed:
-
Clone the Repository
git clone https://github.com/GuiCamargoX/RetAMD.git cd retamd -
Create and activate the Conda environment:
conda env create -f environment.yml conda activate retamd
Before running the application, download the required model weights for DenseNet and ResNet18:
Place these weights in the specified directory (e.g., weights/).
After setting up the environment and downloading the weights, start the web application:
python app.py
The application will be accessible at http://localhost:5000.
RetAMD is released under the MIT License.
If you use this code, please cite the following papers:
-
Oliveira, G. C., Rosa, G. H., Pedronette, D. C., Papa, J. P., Kumar, H., Passos, L. A., & Kumar, D. (2024). Robust deep learning for eye fundus images: Bridging real and synthetic data for enhancing generalization. Biomedical Signal Processing and Control, 94, 106263.
-
Huazhu Fu, Boyang Wang, Jianbing Shen, Shanshan Cui, Yanwu Xu, Jiang Liu, Ling Shao, (2019). Evaluation of Retinal Image Quality Assessment Networks in Different Color-Spaces. In: Shen, D., et al. Medical Image Computing and Computer Assisted Intervention – MICCAI 2019. MICCAI 2019. Lecture Notes in Computer Science(), vol 11764. Springer
We would like to thank Fu et al. for sharing their code at https://github.com/HzFu/EyeQ.

