技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
voxelmorph【数据与研究】Use VoxelMorph's current PyTorch image-registration package for dense transforms, VxmPairwise registration models, VoxelMorph data generators, and medical-volume workflow troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves VoxelMorph's current PyTorch package surface for learning-based medical image registration, dense deformation fields, pairwise registration models, VoxelMorph volume data conventions, or related troubleshooting.
voxelmorph.nn.models.VxmPairwise and understand its forward outputs..npz, NIfTI, MGZ, list-file, segmentation, atlas, or generator inputs.VxmDense/.h5 workflows; this skill covers the current PyTorch branch and flags those old surfaces as compatibility issues.Basic package install:
python -m pip install voxelmorph
python - <<'PY'
import voxelmorph as vxm
import neurite
import torch
print(vxm.__version__, neurite.__version__, torch.__version__)
PY
For a source checkout, use an isolated environment and editable install:
python -m pip install -e .
python -m pip check
Then run the bundled root checker when VoxelMorph is available in the active environment:
python scripts/check_voxelmorph_env.py --help
python scripts/check_voxelmorph_env.py
Read install and compatibility before using old tutorials, GPU environments, source installs, or checkpoints from another branch.
| User intent | Read next | Why |
|---|---|---|
Affine/displacement fields, coordinate normalization, spatial_transform, scaling-and-squaring, SpatialTransformer, transform composition, random fields | transform-ops | Owns tensor transform APIs and shape/sign/interpolation guidance. |
VxmPairwise construction, forward return modes, tiny training loops, Neurite losses, checkpoint patterns, legacy registration-script caveats | pairwise-registration | Owns current PyTorch model workflows and safe synthetic training smoke. |
.npz/NIfTI/MGZ volume I/O, vol/seg schemas, labels, Dice/Jacobian helpers, scan-to-scan/atlas/semisupervised/template/surface/SynthMorph generators | data-generators | Owns data contracts and NumPy generator selection before model code. |
| Package import, dependency, branch/API drift, deprecated losses, optional CUDA, or stale docs | root troubleshooting | Cross-cutting triage before routing to a sub-skill. |
| Staleness check for a checkout | repo provenance | Records commit, package version, and evidence paths used to create this skill. |
import voxelmorph as vxm.vxm.nn.models.VxmPairwise.vxm.affine_to_disp, vxm.spatial_transform, vxm.integrate_disp, vxm.resize_disp, vxm.compose, plus vxm.nn.functional for (B, C, *spatial) neural-network layouts.vxm.nn.modules.SpatialTransformer, IntegrateVelocityField, ResizeDisplacementField.vxm.py.utils and vxm.py.generators.neurite.nn.modules; VoxelMorph loss classes are deprecated stubs in this branch..h5 model-loading commands unless the user intentionally switches to the TensorFlow branch.vxm.networks.VxmDense.load(...) as a current runnable API; this branch exposes VxmPairwise under vxm.nn.models.repo-skills-router import tools..npz schema and tensor shape conventions explicit when moving between sub-skills.