Skip to content

Commit bcdad84

Browse files
committed
fix style issues
1 parent 2495180 commit bcdad84

File tree

1 file changed

+1
-3
lines changed
  • segmentation_models_pytorch/decoders/upernet

1 file changed

+1
-3
lines changed

segmentation_models_pytorch/decoders/upernet/decoder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ def __init__(self, skip_channels, pyramid_channels, use_bathcnorm=True):
6363

6464
def forward(self, x, skip):
6565
_, channels, height, width = skip.shape
66-
x = F.interpolate(
67-
x, size=(height, width), mode="bilinear", align_corners=False
68-
)
66+
x = F.interpolate(x, size=(height, width), mode="bilinear", align_corners=False)
6967
if channels != 0:
7068
skip = self.skip_conv(skip)
7169
x = x + skip

0 commit comments

Comments
 (0)