Fixed bad use of ConvTranspose2D
Former-commit-id: 245b072a82f2e87a9032a1b87136a9930c008afc
This commit is contained in:
parent
8008b77af6
commit
90e988c10f
|
@ -57,7 +57,7 @@ class up(nn.Module):
|
|||
if bilinear:
|
||||
self.up = nn.UpsamplingBilinear2d(scale_factor=2)
|
||||
else:
|
||||
self.up = nn.ConvTranspose2d(in_ch, out_ch, 2, stride=2)
|
||||
self.up = nn.ConvTranspose2d(in_ch//2, in_ch//2, 2, stride=2)
|
||||
|
||||
self.conv = double_conv(in_ch, out_ch)
|
||||
|
||||
|
|
Loading…
Reference in a new issue