brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
pairwise-registrationConstruct and smoke-test VoxelMorph VxmPairwise registration models with current PyTorch APIs, Neurite losses, checkpoint patterns, and legacy-script caveats.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is to build, call, smoke-train, checkpoint, or troubleshoot the current PyTorch voxelmorph.nn.models.VxmPairwise pairwise registration model.
VxmPairwise with dimensionality, image channels, UNet features, integration steps, and Neurite-backed modules.forward() return options: displacement/velocity fields, warped source images, warped target images, and their shapes.state_dict pattern.transform-ops..npz/NIfTI schema preparation, image lists, real-data generators, segmentation labels, and validation of file layouts: use data-generators.voxelmorph.nn.models.VxmPairwise.(B, C, *spatial), and predicted fields are shaped (B, ndim, *spatial).neurite.nn.modules; voxelmorph.nn.losses classes are compatibility stubs that raise deprecation errors.vxm.networks.VxmDense, or the legacy registration CLI as runnable guidance for this PyTorch package.references/api-reference.md — verified constructor/forward signatures, return-shape matrix, Neurite loss choices, and error cases.references/workflows.md — model construction, tiny training loop, checkpoint round-trip, and current inference/legacy-script caveats.references/troubleshooting.md — failures around integration flags, unet_kwargs, Neurite imports/losses, shape divisibility, checkpoint mismatches, and stale scripts.scripts/tiny_pairwise_training_smoke.py — safe synthetic CPU smoke for model construction, Neurite losses, one or more optimizer steps, and optional checkpoint round-trip.From this sub-skill directory, run:
python scripts/tiny_pairwise_training_smoke.py --help
python scripts/tiny_pairwise_training_smoke.py --steps 1 --spatial-size 16 --features 4 4 4
The check should finish quickly without downloading data or writing files unless --checkpoint-out is explicitly provided.