Skip to content

Commit

Permalink
fix bug with discriminator attention, thanks to @ferrophile
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Mar 2, 2021
1 parent 54eb6d9 commit 24098fa
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 @@ -567,7 +567,7 @@ def __init__(
self.residual_layers = nn.ModuleList([])

for (res, ((_, chan_in), (_, chan_out))) in zip(non_residual_resolutions, chan_in_out):
image_width = 2 ** resolution
image_width = 2 ** res

attn = None
if image_width in attn_res_layers:
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.17.7'
__version__ = '0.18.0'

0 comments on commit 24098fa

Please sign in to comment.