- CPU: AMD Ryzen™ 7 5800X, 8cores
- GPU: RTX 3090
- RAM: 32GB
- OS: Ubuntu 20.04
To train the model using the competition data, please follow these steps:
-
Clone this repo
-
Install dependencies via
pip install -r requirements.txt
-
Download the competition data from here and place the downloaded files in the
input
folder. -
Set the configuration file
working/config.py
. It is recommended to use the default values.- TRAINING_BATCH_SIZE: The training batch size
- TEST_BATCH_SIZE: The testing/validation batch size
- IMAGE_SIZE: The image size used during the training/infernece
- N_EPOCHS: The number of the training epochs
- NUM_IMAGES_3D: Number of the images/scans used to build the 3D images.
- do_valid: bool that indicates if we want to save the model weights based on the validation score
- n_workers: Number of workers used during the training
-
In case you want to use the pretrained weights from the final kaggle solution please skip the training step (next step). You will find the pretrained weights in
weights/
-
Run training script
bash working/train_valid.sh
-
Run prediction script
python3 -m working.predict
If you have any questions, please don't hestiate to reach out to me on this email: [email protected]