Skip to content

nec-research/CAPE-ML4Sci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAPE-ML4Sci

This repository contains the code for the ICML 2023 paper: Learning Neural PDE Solvers with Parameter-Guided Channel Attention

In this work, we provide a code to reproduce the above paper experiments. This repository consists of the codes training and evaluating different machine learning models as baseline.

Visualizations of CAPE module. Visualizations of CAPE module function.

Dataset

We made use of the dataset provided by PDEBench: https://darus.uni-stuttgart.de/dataset.xhtml?persistentId=doi:10.18419/darus-2986

Installation

pip install --upgrade pip wheel
pip install -r requirements.txt

Requirements

In our paper, we used the following GPUs:
GeForce RTX 2080 GPU for 1D PDEs GeForce RTX 3090 for 2D

Baseline Models

In this work, we provide two different ML models with CAPE module to be trained and evaluated against the benchmark datasets, namely FNO and U-Net. The examples of the training scripts for the baseline model are contained in:

  • run_training_PrmEmb_Adv.sh is the main script to train and evaluate the FNO for 1D Advection equation.
  • run_training_PrmEmb_Adv_Unet.sh is the main script to train and evaluate the Unet for 1D Advection equation. -
  • run_training_PrmEmb_Bgs.sh is the main script to train and evaluate the FNO for 1D Burgers equation.
  • run_training_PrmEmb_Bgs_Unet.sh is the main script to train and evaluate the Unet for 1D Burgers equation. -
  • run_training_PrmEmb_2DCFD.sh is the main script to train and evaluate the FNO for 2D NS equations.
  • run_training_PrmEmb_2DCFD_Unet.sh is the main script to train and evaluate the Unet for 2D NS equations. -
sh run_training_PrmEmb_Adv.sh

(Note that training data should be downloaded from the PDEBench data server.)

Code contributors

  • Makoto Takamoto (NEC Laboratories Europe GmbH)

License

MIT for solver code and baseline code, and NLE Academic License for selected code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published