executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
transform-opsUse VoxelMorph PyTorch tensor transform operations for affine, displacement, coordinate, warping, integration, resizing, composition, random transform, and module wrapper workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.