The Eye Age and Health Classification project focuses on predicting the age of patients and classifying the health status of their eyes as normal or indicating a disease. The project utilizes transfer learning with a pre-trained ResNet model and incorporates additional patient information for enhanced prediction accuracy.
- Python 3.7
- Conda (optional but recommended for environment management)
-
Clone the repository:
git clone https://github.com/HasanOJ/eye-age-regression.git cd eye-age-regression -
Create a virtual environment (optional but recommended):
conda env create -f environment.yaml conda activate MLhackathon
Run the main.py script from the terminal with the following command-line arguments:
python main.py -d /path/to/data -t left -c /path/to/checkpoint --train -e 10-dor--data_path: Path to the data directory (default: "data").-tor--tag: Tag for the model (default: "left").-cor--checkpoint: Path to the checkpoint file (optional).--train: Flag to indicate training (default: False).-eor--epochs: Number of epochs for training (default: 10).
Example command to test the model for right tag:
python main.py -d /path/to/data -t rightThe dataset contains information about patients' fundus images, including their age, left and right eye images, and a binary label indicating whether the eyes are normal (healthy) or indicate a disease.