MoNo-light: Darcy 85x85
This package reproduces the MoNo-light Darcy experiment in Table 3 of the MoNo paper. It predicts pressure from permeability on an 85x85 grid using multiscale latent variables and Sinkhorn transport. The single-seed run completed 500 epochs with 1,000 training and 200 test samples.
Results
The reloaded final-epoch checkpoint achieves mean test relative L2 0.00693725, versus 0.0070 in the paper, a numerical difference of about 0.9%. Hardware, software, and the Sinkhorn kernel differ from the authors' setup, so this is not evidence of strict same-condition superiority. Full metrics and plots are in results/.
Download
hf download OneScience-Group/MoNo-light --local-dir ./MoNo-light
cd MoNo-light
The two original 421x421 Darcy MAT files are also hosted in the OneScience/HNO-Darcy ModelScope dataset. This Hugging Face repository contains the model only, not the raw data. Download the dataset from the model directory:
modelscope download --dataset OneScience/HNO-Darcy --local_dir ./data
The package reads data/piececonst_r421_N1024_smooth1.mat and data/piececonst_r421_N1024_smooth2.mat. Both contain coeff and sol arrays; the loader uses the first 1,000 and 200 samples respectively and strides the 421x421 grid by five. It creates a local cache on first use.
Environment and usage
Use Python 3.11, PyTorch on an allocated GPU/DCU, onescience[cfd-gpu] or onescience[cfd-dcu], SciPy, PyYAML, and Matplotlib. The raw MAT files total about 3.39 GB; allow sufficient RAM for the first load.
python scripts/inference.py
python scripts/result.py
For a new 500-epoch training run, move the included weight/ and results/ outside the model directory before running python scripts/train.py. The published inference accepts a relocated data directory while retaining the model/training-configuration check. The weights are unchanged from the original run.
Checkpoint: weight/best_model.pth (SHA256 d20393f9ae89d38f53b8da9e09799db57bef37154ec8c7fddb9a9dd4a6666122). Original data source: FNO Darcy files. Check the source's terms before redistributing the data.
中文说明
MoNo-light 的达西流(Darcy flow)85x85 实验
此软件包复现 MoNo 论文表 3 中的 MoNo-light 达西流实验。该模型利用多尺度潜变量和 Sinkhorn 传输,根据 85x85 网格上的渗透率预测压力。使用单个随机种子的运行包含 1,000 个训练样本和 200 个测试样本,共完成 500 轮训练。
结果
重新加载最终轮次的模型权重(检查点)(checkpoint)后,测试平均相对 L2 为 0.00693725,论文数值为 0.0070,数值差异约为 0.9%。本次运行的硬件、软件及 Sinkhorn 核与作者设置不同,因此结果不能证明在严格相同条件下性能更优。完整指标和图表位于 results/ 中。
下载
hf download OneScience-Group/MoNo-light --local-dir ./MoNo-light
cd MoNo-light
两个原始的 421x421 达西流 MAT 文件也托管在 OneScience/HNO-Darcy ModelScope 数据集中。此 Hugging Face 仓库仅包含模型,不包含原始数据。在模型目录中下载数据集。
modelscope download --dataset OneScience/HNO-Darcy --local_dir ./data
此软件包读取 data/piececonst_r421_N1024_smooth1.mat 和 data/piececonst_r421_N1024_smooth2.mat。两个文件均包含 coeff 和 sol 数组。加载器分别使用前 1,000 个和前 200 个样本,并以五为步长对 421x421 网格采样。首次使用时会创建本地缓存。
环境与使用
使用 Python 3.11、已分配 GPU/DCU 上的 PyTorch、onescience[cfd-gpu] 或 onescience[cfd-dcu]、SciPy、PyYAML 和 Matplotlib。原始 MAT 文件总计约 3.39 GB,首次加载时请预留足够的 RAM。
python scripts/inference.py
python scripts/result.py
如需重新运行 500 轮训练,请先将随附的 weight/ 和 results/ 移到模型目录外,再运行 python scripts/train.py。发布的推理(inference)支持更改数据目录位置,同时保留模型及训练配置检查。权重与原始运行时相同。
模型权重(检查点)为 weight/best_model.pth(SHA256 d20393f9ae89d38f53b8da9e09799db57bef37154ec8c7fddb9a9dd4a6666122)。原始数据来源为 FNO 达西流文件。重新分发数据前请核查来源条款。
- Downloads last month
- 174