Skip to content

Commit

Permalink
Reformat feature_varnet
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuckley committed Jul 23, 2024
1 parent 4815bf5 commit 46a4c0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fastmri_examples/feature_varnet/feature_varnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def image_uncrop(image: Tensor, original_image: Tensor) -> Tensor:
if len(in_shape) == 2: # Assuming 2D images
original_image[pad_height_top:pad_height, pad_height_left:pad_width] = image
elif len(in_shape) == 3: # Assuming 3D images with channels
original_image[:, pad_height_top:pad_height, pad_height_left:pad_width] = (
image
)
original_image[
:, pad_height_top:pad_height, pad_height_left:pad_width
] = image
elif len(in_shape) == 4: # Assuming 4D images with batch size
original_image[
:, :, pad_height_top:pad_height, pad_height_left:pad_width
Expand Down

0 comments on commit 46a4c0b

Please sign in to comment.