计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
transform-ops【效率与协作】Use VoxelMorph PyTorch tensor transform operations for affine, displacement, coordinate, warping, integration, resizing, composition, random transform, and module wrapper workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about VoxelMorph's PyTorch tensor transform primitives, not about model training or data generation. It covers dense displacement fields, affine transforms, coordinate normalization, spatial warping, scaling-and-squaring integration, displacement resizing/composition, random transform generation, and the module wrappers around these operations.
voxelmorph.params_to_affine() or voxelmorph.random_affine().voxelmorph.affine_to_disp().disp_to_trf(), trf_to_disp(), and disp_to_coords().voxelmorph.spatial_transform() or voxelmorph.nn.functional.spatial_transform().integrate_disp() or IntegrateVelocityField.resize_disp() or ResizeDisplacementField.compose().SpatialTransformer, IntegrateVelocityField, and ResizeDisplacementField inside PyTorch modules.voxelmorph functions for unbatched fields, affine utilities, and shape-agnostic transforms. Use voxelmorph.nn.functional when tensors are already in neural-network format (B, C, *spatial) for images and (B, ndim, *spatial) for fields. Use module wrappers when the operation belongs in an nn.Module graph.(ndim, *spatial) or (B, ndim, *spatial). Image tensors use non_spatial_dims to identify leading channel/batch dimensions. Meshgrids are (ndim, *spatial) with ij indexing.spatial_transform() samples the source image at x + disp(x), so a positive displacement samples from a larger coordinate and can make visible image content move in the opposite direction.coords_to_disp() as unavailable. It exists in both public layers but currently raises NotImplementedError; do not plan workflows that require the inverse normalized-coordinate conversion.voxelmorph.functional, voxelmorph.nn.functional, and module wrappers.python scripts/transform_ops_smoke.py --help from this sub-skill directory or with the script path from any project that has voxelmorph importable.