conda env create -f utils/envs/gnn.yml
conda activate gnnbash download_dataset.sh cylinder_flow data/It will create a folder cylinder_flow/ inside the folder data/ and will take some time to download the simulations. You will obtain four files:
meta.jsontest.tfrecordtrain.tfrecordvalid.tfrecord
Rename the folder cylinder_flow/ to raw/.
Open main.py to update the paths.
The dataset is composed of 1000 simulations, each of them having 600 time steps. Pre-processing and training on all the dataset is not possible on standards GPU in a short time. To select only a part of the dataset, have a look at the data.* parameters. These are already set up, but you can change to reduce the number of data and have a faster training.
Train the model by running:
python main.py fitYou can get help on the command line arguments by running:
python main.py fit --helpIt will create a new folder in the logs/ folder containing the checkpoints of the model and a configuration file containing the parameters used for the training, that you can use later if you want.
To evaluate the model training, run:
tensorboard --logdir=logs/You can stop the training whenever you are satisfied with the learning. The model is saved in logs\version_*\checkpoints\.
To test the model, run:
python main.py test --ckpt_path $ckpt_pathwhere $ckpt_path is the path to the checkpoint file located in the logs/version_$version/checkpoints/ folder.
Ugo Pelissier
<ugo.pelissier@minesparis.psl.eu>