Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeyiasemis committed Aug 21, 2024
1 parent f75f8e8 commit d912b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion direct/nn/registration/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def forward(self, moving_image: torch.Tensor, reference_image: torch.Tensor) ->

# Estimate the displacement field
displacement_field = [
self.displacement_transform(reference_image[_].cpu(), moving_image[_].cpu())
self.displacement_transform(reference_image[_].detach().cpu(), moving_image[_].detach().cpu())
for _ in range(moving_image.shape[0])
]
displacement_field = torch.stack(displacement_field, dim=0)
Expand Down

0 comments on commit d912b9e

Please sign in to comment.