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 do I generate a lot of images? #1

Closed
taki0112 opened this issue Sep 18, 2017 · 2 comments
Closed

How do I generate a lot of images? #1

taki0112 opened this issue Sep 18, 2017 · 2 comments

Comments

@taki0112
Copy link

How do I generate a lot of images?

python train.py

if max_iter = 100000, then only 64 images are generated

I want to generate a lot of features, but also a lot of images.

how ?

@minhnhat93
Copy link
Owner

To generate a lot of images you just need to load the model, generate images from random noise and save it back using the save_images function but with bigger sample_images array (see line 91, 92 https://github.com/minhnhat93/tf-SNDCGAN/blob/master/train.py#L91). The train.py file has all the above functionalities. You can modify the train.py file, remove all the extra training or just go into debug mode, break at line 91 and change sample_noise to some bigger array like np.random.random((1000, 128)). Note that there may not be enough memory available on GPU to generate all your images at once though so you may need to generate multiple times.

@taki0112
Copy link
Author

thank you

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

2 participants