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

How to generate a single sample? #15

Open
falcon000 opened this issue Dec 16, 2015 · 4 comments
Open

How to generate a single sample? #15

falcon000 opened this issue Dec 16, 2015 · 4 comments

Comments

@falcon000
Copy link

Could someone tell me how to generate a single sample? For a single input, batchnorm changes it to [0, 0, 0...], so generated images are always the same no matter what the input is.

@udibr
Copy link

udibr commented Dec 16, 2015

the only way I found was to generate a random batch of images and pick just one.
You can look at my code at https://github.com/udibr/dcgan_code/blob/master/acro/train_uncond_dcgan.py
it includes many generation features including filtering images that look "better" and generating GIF

HTH, Udi

@udibr
Copy link

udibr commented Dec 16, 2015

this notebook has instructions on how to generate single images (with or without selection of better looking images) https://github.com/udibr/dcgan_code/blob/master/acro/one%20cool%20trick%20for%20GAN.ipynb

@soumith
Copy link
Contributor

soumith commented Dec 16, 2015

@udibr that's a cool trick.

@falcon000
Copy link
Author

@udibr Thanks man. Very helpful code and notebook.
The blog post about #selfie is cool too.

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