Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Nov 22, 2020
1 parent d95f794 commit 4cd81d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lightweight_gan/lightweight_gan.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def __init__(
):
super().__init__()
resolution = log2(image_size)
assert is_power_of_two(resolution), 'image size must be a power of 2'
assert is_power_of_two(image_size), 'image size must be a power of 2'
init_channel = 4 if transparent else 3
fmap_max = default(fmap_max, latent_dim)

Expand Down Expand Up @@ -444,7 +444,7 @@ def __init__(
):
super().__init__()
resolution = log2(image_size)
assert is_power_of_two(resolution), 'image size must be a power of 2'
assert is_power_of_two(image_size), 'image size must be a power of 2'
assert disc_output_size in {1, 5}, 'discriminator output dimensions can only be 5x5 or 1x1'

resolution = int(resolution)
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.9.1'
__version__ = '0.9.2'

0 comments on commit 4cd81d0

Please sign in to comment.