Skip to content

Files

Latest commit

author
Your Name
May 1, 2022
369ce7b · May 1, 2022

History

History
55 lines (45 loc) · 1.86 KB

README.md

File metadata and controls

55 lines (45 loc) · 1.86 KB

MGN

Description

This project provides a clean pytorch implementation of Learning mesh-based simulation with Graph Networks.

New Features compared to original MeshGraphNets

  • Using pytorch-geometric data structure for graph representation and processing.
  • Using hydra for hierarchical configuration and using Weigts&Biases to track and visualize experiments.

Visuals

GT: left
Prediction: right

Quantitative Results

Table below shows quantitative results of different rollout steps for both dataset cylinder_flow and flag_simple. Our results differ from the ones published in Paper. Results can vary under different hyperparameter settings, e.g. random seed and learning rate.

rollout
in scale(1e-3)
1 10 50 100 200 all
cylinder_flow 3.99 8.90 18.10 25.36 34.97 63.56
flag_simple 0.98 12.15 133.51 157.07 157.42 165.09

Installation

More simply you can install this package via packaging tool pip.

# download this package
git clone ...
# change directory
cd mgn
# install mgn package
pip install -e .

Usage

You can train models with

python example/train.py model=cloth datamodule=flag_simple

or

python example/train.py model=cfd datamodule=cylinder_flow

For evaluating checkpoints see eval.ipynb.