Skin lesion binary classification using Keras and the ISIC 2020 dataset.
All the required packages can be installed with pip:
pip install -r requirements.txt
It's better to use a virtual env to prevent version conflicts between packages.
Then you'll have to download the ISIC 2020 train dataset as well as the metadata as CSV files. This can be done automatically with the setup_dataset.sh script:
./setup_dataset.sh
./train.py [--remove-artifacts] [--segmentation] [--checkpoint-folder FOLDER] [--epochs EPOCHS] [--batch-size BATCH_SIZE]
Available options:
--remove-artifactsto perform artifacts removal with morphological closing--segmentationto segment the images with the K-means algorithm--checkpoint-folderfolder to save model checkpoints and final model. Default ischeckpoints/--epochsmaximum number of epochs to train for. Default is 300--batch-sizebatch size to use for training. Default is 256--notifier-prefixheader to send in Telegram messages when sending training progress--help,-hshow available options
Pretrained models can be downloaded in the Releases page.
./test.py image model [--segment] [--remove-artifacts]
image must be the path to the image to evaluate
model must be the path of the saved Keras model
The output is the probability that the input image is malignant.