技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-generators【数据与研究】Use VoxelMorph volume I/O, npz/NIfTI/MGZ data conventions, segmentation utilities, metric helpers, and NumPy data generators for registration workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about preparing, validating, loading, or selecting data streams for VoxelMorph workflows before model-specific training or transform math begins.
voxelmorph.py.utils.load_volfile() and save_volfile()..npz, .npy, NIfTI, and MGZ conventions, including vol and optional seg keys.voxelmorph.py.generators for scan-to-scan, scan-to-atlas, semisupervised, template, surface, or SynthMorph workflows..npz files without downloading data or running training.../pairwise-registration/SKILL.md.transform-ops..npz files should contain vol; semisupervised and surface workflows also need discrete integer seg arrays.(batch, *spatial, features)..npz/.npy loading does not carry affine metadata unless the caller separately manages it..npz files or a VoxelMorph image list, run the bundled validator before choosing a generator.references/api-reference.md — signatures and behavioral notes for voxelmorph.py.utils and voxelmorph.py.generators, including generator yield structures.references/data-formats.md — volume, atlas, segmentation, label, list-file, affine, and README-derived data assumptions.references/workflows.md — generator-selection matrix and copyable recipes for scan-to-scan, scan-to-atlas, semisupervised, template, surface, and SynthMorph data streams.references/troubleshooting.md — symptoms, likely causes, and recovery steps for missing keys, shape mismatches, invalid labels, empty globs, and surface-generator edge cases.scripts/validate_vxm_npz.py — safe .npz validator for vol/seg keys, shape consistency, label dtypes, NaNs, and expected labels.From this sub-skill directory:
python scripts/validate_vxm_npz.py --help
python scripts/validate_vxm_npz.py data/*.npz --require-seg --allowed-labels 0,1,2,3
python scripts/validate_vxm_npz.py --file-list images.txt --prefix data/ --expect-shape 160,192,224
The validator reads only local files, writes nothing, performs no downloads, and exits non-zero on schema failures.
.npz files only.