Skip to content

Repo to the paper "Message Passing Neural PDE Solvers", slightly modified to work on CPU without CUDA

License

Notifications You must be signed in to change notification settings

pkhudov/MP-Neural-PDE-Solvers_CPU

 
 

Repository files navigation

Message Passing Neural PDE Solvers

Slightly modified version of the code by Johannes Brandstetter*, Daniel Worrall* and Max Welling that allows it to run on a CPU without CUDA. Also, added the option of choosing radius and random sampling of edges when creating graph from data.

Link to the paper

ICLR 2022 Spotlight Paper

If you find our work and/or our code useful, please cite us via:

@article{brandstetter2022message,
  title={Message Passing Neural PDE Solvers},
  author={Brandstetter, Johannes and Worrall, Daniel and Welling, Max},
  journal={arXiv preprint arXiv:2202.03376},
  year={2022}
}

Set up conda environment

source environment.sh

Produce datasets for tasks E1, E2, E3, WE1, WE2, WE3

python generate/generate_data.py --experiment={E1, E2, E3, WE1, WE2, WE3} --train_samples=2048 --valid_samples=128 --test_samples=128 --log=True --device=cpu

Train MP-PDE solvers for tasks E1, E2, E3

python experiments/train.py --device=cpu --experiment={E1, E2, E3} --model={GNN, ResCNN, Res1DCNN} --base_resolution=250,{100,50,40} --time_window=25 --log=True

Train MP-PDE solvers for tasks WE1, WE2

python experiments/train.py --device=cpu --experiment={WE1, WE2} --base_resolution=250,{100,50,40} --neighbors=6 --time_window=25 --log=True

Train MP-PDE solvers for task WE3

python experiments/train.py --device=cpu --experiment=WE3 --base_resolution=250,100 --neighbors=20 --time_window=25 --log=True

python experiments/train.py --device=cpu --experiment=WE3 --base_resolution=250,50 --neighbors=12 --time_window=25 --log=True

python experiments/train.py --device=cpu --experiment=WE3 --base_resolution=250,40 --neighbors=10 --time_window=25 --log=True

python experiments/train.py --device=cpu --experiment=WE3 --base_resolution=250,40 --neighbors=6 --time_window=25 --log=True

About

Repo to the paper "Message Passing Neural PDE Solvers", slightly modified to work on CPU without CUDA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Shell 0.4%