Skip to content

Commit

Permalink
Better Model
Browse files Browse the repository at this point in the history
  • Loading branch information
madhavkhoslaa committed Jul 9, 2019
1 parent 2b7f014 commit 528453c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/unet_parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, in_ch, out_ch, bilinear=True):
# would be a nice idea if the upsampling could be learned too,
# but my machine do not have enough memory to handle all those weights
if bilinear:
self.up = nn.functional.interpolate(scale_factor=2, mode='bilinear', align_corners=True)
self.up = nn.Upsample(scale_factor=2, mode='bilinear', align_corners=True)
else:
self.up = nn.ConvTranspose2d(in_ch//2, in_ch//2, 2, stride=2)

Expand Down

0 comments on commit 528453c

Please sign in to comment.