- python 3.10.13
python -m venv venv
# linux
source venv/bin/activate
# windows
venv\Scripts\activate
Download Kaggle melanoma
dataset
here
Extract the main folder (melanoma_cancer_dataset folder).
python train_model.py <EPOCHS_NUMBER>
fastapi dev main.py
POST
body_type: form
params: (image: file)
NOTE: use images sizes around 224x224 to better accuracy, the endpoint rescales the image input to 224x224 but that can cause some precision issues.
GET
body_type: no need it
params: no need it