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

binary data? #16

Open
genekogan opened this issue Dec 18, 2015 · 3 comments
Open

binary data? #16

genekogan opened this issue Dec 18, 2015 · 3 comments

Comments

@genekogan
Copy link

what is the best way to make this work effectively on binary data?
i'm assuming the network won't learn to output binary on its own, even if all the inputs are binary. trivially you can just threshold each output value at 0.5, but is there a better way to do this? i'm hoping to take advantage of having only two states to get away with using a larger input vector.

@dribnet
Copy link

dribnet commented Dec 18, 2015

I think thresholding input at 0.5 to either 0.0 or 1.0 is sufficient and generally done. I'd expect output to quickly favor binary as anything else would tip of the discriminator. Main speed up would be making sure the architecture has 1 channel and not 3.

@Newmu
Copy link
Owner

Newmu commented Dec 18, 2015

Have you tried using sigmoid generator output instead? When you train a DCGAN on MNIST with sigmoid outputs it's pretty much always railed binary like you expect.

@genekogan
Copy link
Author

thanks for the tips!
relatedly -- is my intuition about using larger inputs incorrect? i.e. in the image examples, each element is an 8-bit int (0-255). if i use binary instead, is it fair to expect comparable performance for input vectors 8x the same size?

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

3 participants