Skip to content

Commit

Permalink
Re-adding fastmri/models/feature_varnet.py to ensure CI passes - rein…
Browse files Browse the repository at this point in the history
…stalled black 22.3.0
  • Loading branch information
GiannakopoulosIlias authored and mmuckley committed Jul 23, 2024
1 parent cb0142a commit 280a7a8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions fastmri/models/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:
pad_height_left, pad_width = _calc_uncrop(image.shape[-1], in_shape[-1])

try:
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[...]
except RuntimeError:
print(f"in_shape: {in_shape}, image shape: {image.shape}")
raise
Expand Down Expand Up @@ -553,7 +553,6 @@ def forward(self, image: torch.Tensor) -> torch.Tensor:


class NormUnet(nn.Module):

def __init__(
self,
chans: int,
Expand Down Expand Up @@ -644,7 +643,6 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:


class Norm1DUnet(nn.Module):

def __init__(
self,
chans: int,
Expand Down

0 comments on commit 280a7a8

Please sign in to comment.