Skip to content

Commit

Permalink
turn off bilinear upsampling
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Apr 4, 2022
1 parent cd9b6ac commit 3ce9f1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lightweight_gan/lightweight_gan.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def forward(self, images, prob = 0., types = [], detach = False, **kwargs):
norm_class = nn.BatchNorm2d

def upsample(scale_factor = 2):
return nn.Upsample(scale_factor = scale_factor, mode = 'bilinear', align_corners = False)
return nn.Upsample(scale_factor = scale_factor)

# squeeze excitation classes

Expand Down
2 changes: 1 addition & 1 deletion lightweight_gan/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.21.3'
__version__ = '0.21.4'

0 comments on commit 3ce9f1f

Please sign in to comment.