For a detailed project report, click here.
- Download the first dataset and the second dataset
- After the download is complete, extract both datasets in the directory 'data'
- Download all the requirements needed by running the following command in your console:
pip install -r requirements.txt
- In the main directory, run the command in your console:
python load_data.py
This will extract all the images from the first dataset and move the images to the directories 'normal','corona','pneumonia', based on their labels. The directories can be found in in the directory 'data'.
- Run the command in your console:
python load_data2.py
This will extract all the images from the second dataset, in the same manner as for the first.
- Now run the command in your console:
python train.py
This will use the merged datasets, to train a neural network and print it's metrics. The weights/model/history will be saved in the corresponding directory.
- Extract the file 'dataset.zip' in the directory 'data', this is the merged dataset. The file 'merged_metadata' is the corresponding metadata file.
- Now run the command:
python train.py