Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing factor in .sg_periodic_shuffle causes crash #14

Open
vincentschen opened this issue May 15, 2017 · 0 comments
Open

changing factor in .sg_periodic_shuffle causes crash #14

vincentschen opened this issue May 15, 2017 · 0 comments

Comments

@vincentschen
Copy link

.../sg_transform.py", line 603, in sg_periodic_shuffle
    channel_factor = channel // channel_target
ZeroDivisionError: integer division or modulo by zero

Get an error when changing factor=2 to factor=4:

with tf.sg_context(name='generator', act='relu', bn=True):
    gen = (x_small
           .sg_conv(dim=32)
           .sg_conv()
           .sg_conv(dim=4, act='sigmoid', bn=False)
           .sg_periodic_shuffle(factor=2))

Any thoughts?

vincentschen referenced this issue in vincentschen/cgan-superres May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant