This code requires at least Python 3.8 to run, along with the CPU versions of PyTorch/PyTorch Geometric. (CUDA versions can be used but are not strictly necessary)
A full list of the required Python libraries is included in requirements.txt
.
Use utils/gen_data.py
to generate the training and test data with the following command:
python utils/gen_data.py --directory='Data/train_grids'
python utils/gen_data.py --directory='Data/test_grids'
A full list of arguments can be found by running with python utils/gen_data.py --help
.
Use train.py
to train the model:
python train.py
A full list of arguments can be found by running with python train.py --help
. A pre-trained model is also included as Model/model_trained.pth
.
Run the evaluation script with
python test.py
A full list of arguments can be found by running with python test.py --help
.