Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions monai/networks/nets/voxelmorph.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ def __init__(
self.warp = Warp(mode="bilinear", padding_mode="zeros")

def forward(self, moving: torch.Tensor, fixed: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]:
# TODO: add optional moving_seg, fixed_seg arguments and handle warping of segmentation maps
if moving.shape != fixed.shape:
raise ValueError(
"The spatial shape of the moving image should be the same as the spatial shape of the fixed image."
Expand Down
Loading