evaluation-submission
Prepare fastMRI reconstructions for validation, metric evaluation, zero-filled baselines, v2 filename conversion, and leaderboard-style submissions.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
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 资源文件 3
- 参考文档references/evaluation-reference.md3.8 KB
- 参考文档references/submission-workflows.md4.1 KB
- 参考文档references/troubleshooting.md3.6 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
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.