协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
pairwise-registration【开发与工程】Construct and smoke-test VoxelMorph VxmPairwise registration models with current PyTorch APIs, Neurite losses, checkpoint patterns, and legacy-script caveats.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.