HO-FNO-Pipe-Flow
This package reproduces the Pipe experiment of Higher-Order Fourier Neural Operator. An eight-layer, second-order spectral operator maps two pipe-coordinate channels to horizontal velocity on a 129 x 129 grid.
Download
hf download OneScience-Group/HO-FNO-Pipe-Flow --local-dir ./HO-FNO-Pipe-Flow
cd HO-FNO-Pipe-Flow
Install PyTorch, NumPy, PyYAML and Matplotlib in a compatible GPU/DCU environment. The original 2310-sample Pipe dataset is available from the paper's official repository and as the OneScience ModelScope dataset. Download Pipe_X.npy, Pipe_Y.npy, and Pipe_Q.npy into data/; no dataset files are included in this Hugging Face model repository.
Run
python scripts/inference.py
python scripts/result.py
# To repeat the 500-epoch training run on an accelerator:
python scripts/train.py
The included weight/best_model.pth is from epoch 494. Its 200-case test mean relative L2 is 0.004887735; the paper reports 0.0049 for the Pipe setting. The weight SHA256 is 9d71053c64b62a6fc6f867108c29d2cc0d277d667a3504dc073a6b56072981d4. See results/ for the recorded metrics and plots.
Source and license
Model code in this reproduction is distributed under Apache 2.0. The underlying Pipe data has separate source terms; consult the original project before reuse.
中文说明
HO-FNO-Pipe-Flow
此软件包复现了高阶傅里叶神经算子(Higher-Order Fourier Neural Operator)的 Pipe 实验。一个八层二阶谱算子将两个管道坐标通道映射为 129 x 129 网格上的水平速度。
下载
hf download OneScience-Group/HO-FNO-Pipe-Flow --local-dir ./HO-FNO-Pipe-Flow
cd HO-FNO-Pipe-Flow
在兼容的 GPU/DCU 环境中安装 PyTorch、NumPy、PyYAML 和 Matplotlib。含 2310 个样本的原始 Pipe 数据集可通过论文的官方仓库或 OneScience ModelScope 数据集获取。将 Pipe_X.npy、Pipe_Y.npy 和 Pipe_Q.npy 下载到 data/。此 Hugging Face 模型仓库不包含数据集文件。
运行
python scripts/inference.py
python scripts/result.py
# To repeat the 500-epoch training run on an accelerator:
python scripts/train.py
随附的 weight/best_model.pth 来自第 494 轮训练。其在 200 个测试样本上的平均相对 L2 为 0.004887735,论文对 Pipe 配置报告的数值为 0.0049。权重的 SHA256 为 9d71053c64b62a6fc6f867108c29d2cc0d277d667a3504dc073a6b56072981d4。已记录的指标和图表见 results/。
来源和许可证
此复现的模型代码按照 Apache 2.0 分发。所用 Pipe 数据有独立来源条款,重新使用前请查阅原始项目。
- Downloads last month
- 35