evaluation-submission
Prepare fastMRI reconstructions for validation, metric evaluation, zero-filled baselines, v2 filename conversion, and leaderboard-style submissions.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- evaluation-submission
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Prepare fastMRI reconstructions for validation, metric evaluation, zero-filled baselines, v2 filename conversion, and leaderboard-style submissions.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/evaluation-reference.md3.8 KB
- 参考文档references/submission-workflows.md4.1 KB
- 参考文档references/troubleshooting.md3.6 KB
- 脚本scripts/validate_reconstructions.py5.7 KB
- 脚本scripts/zero_filled_reconstruction.py2.9 KB
03 SKILL.md 正文
fastMRI evaluation-submission
Use this sub-skill when an agent needs to create, validate, rename, evaluate, or explain fastMRI reconstruction outputs for validation/test-style submission workflows.
Do not use this sub-skill for HDF5 dataset loading internals, low-level MRI tensor operators, or training loops; route those to data-loading, mri-operators, or the training sub-skill instead.
References and scripts
- Evaluation reference: Use this for exact public APIs, metric definitions, challenge target keys, and evaluation crop behavior.
- Submission workflows: Use this for end-to-end output preparation, zero-filled baselines, metric runs, v2 filename conversion, and BART caveats.
- Troubleshooting: Use this to diagnose missing datasets, filename/key mismatches, empty filters, crop issues, unavailable leaderboards, and optional BART setup failures.
- Zero-filled reconstruction script: Use this bundled baseline script to turn fastMRI k-space HDF5 files into
reconstructionprediction files without depending on repository example paths. - Validation script: Use this before metrics or packaging to check prediction filenames, HDF5 keys, target compatibility, optional filters, and v2 suffix expectations.
Critical facts
fastmri.save_reconstructions(reconstructions, out_dir)writes one.h5per dictionary key and stores the array under dataset keyreconstruction.fastmri.convert_fnames_to_v2(path)renames.h5files missing the_v2.h5suffix and raisesValueErrorif the directory path does not exist.- Metric evaluation expects target files and prediction files to share filenames; prediction files must contain dataset
reconstruction. --challenge multicoiluses target keyreconstruction_rss;--challenge singlecoiluses target keyreconstruction_esc.- The evaluation path center-crops both target and reconstruction to the square target width before computing MSE, NMSE, PSNR, and SSIM.
- The public fastMRI leaderboard site is unavailable in this checkout's README notice, so prepare and validate outputs but do not promise upload availability.
Minimal commands
python scripts/validate_reconstructions.py --predictions-path PREDICTIONS --target-path TARGETS --challenge multicoil
python -m fastmri.evaluate --target-path TARGETS --predictions-path PREDICTIONS --challenge multicoil
python scripts/zero_filled_reconstruction.py --data-path KSPACE_DATA --output-path PREDICTIONS --challenge multicoil
For public knee v2-style filenames after writing predictions:
from pathlib import Path
from fastmri import convert_fnames_to_v2
convert_fnames_to_v2(Path("PREDICTIONS"))
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).