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

Generate only 1 image #20

Closed
luchoster opened this issue Feb 20, 2020 · 12 comments
Closed

Generate only 1 image #20

luchoster opened this issue Feb 20, 2020 · 12 comments

Comments

@luchoster
Copy link

Would it be possible to generate only 1 image? similar to what thispersondoesnotexist.com does it?

I'm still training atm, but I figured the end result of the generation of images, is 8x8 collage of images, am I right?

@lucidrains
Copy link
Owner

@luchoster yea! i had no idea somebody would get this far! I can offer another flag? --num-image-tiles ? Or how do you think it should be named?

@luchoster
Copy link
Author

I think that flag name makes sense, that'd be awesome!!!

I'm 47% into the training, so it'd be awesome to have that option. Also, how long does it take to generate an/the images? I would love to build a clone of thispersondoesnotexist :)

@lucidrains
Copy link
Owner

@luchoster if you have a GPU, a single image would be less than 100ms. It'll be very fast! What are you training it on? Is it learning?

@luchoster
Copy link
Author

ooo that's goood!
I have a windows machine for this.

Here are some pictures of the training.

4-mr
20-mr
40-mr
41-mr
46-mr
47-mr

@luchoster
Copy link
Author

the last 2 are the most recent ones, 46 and 47 %. As you can see, it started to generate nice faces and in the last 2, started to get weird again haha

@lucidrains
Copy link
Owner

@luchoster very cool! when the discriminator loss hits 0 consistently, D: {num} in the logs, the training is done, and you usually have to pick the generator just before it explodes

@luchoster
Copy link
Author

oh that's good to know. I'll keep an eye on that.

@lucidrains
Copy link
Owner

@luchoster ok, I just updated the package with the new flag! just set it to 1 and you are all set

@luchoster
Copy link
Author

you are awesome!!!!
Thank you! I'll keep you posted on the results :)

@lucidrains
Copy link
Owner

@luchoster please do!

@tjukanovt
Copy link

@lucidrains I am also trying to create only a single image as in the original issue, but can't seem to get this working. I am running command stylegan2_pytorch --data /mydata/ --name mapproject --results_dir /myresults/ --models_dir /mymodels/ --num_image_tiles 1

also tried with --num_image_tiles 1 and modified all the num_image_tiles = 8 values to 1 in the Python script, but nothing seems to change the outputs.

Still I am not getting a single image, but a mosaic instead.
7

@HeleenE
Copy link

HeleenE commented Mar 9, 2020

Oeh I'm super interested in this new flag as well! Been training the software on a very small set of drawings, but with surprisingly good results. It would be nice to create some higher res versions. Now running the training again with the image-size 256 flag, going to take some time 😅

I'm running it on Google Colab, but it hasn't been super stable. Sometimes it crashes right before the 10000 save. If I lower that number in the code would it also create more models?
SAVE_EVERY = 10000

EDIT: I'll create a new issue for that last question in case someone else goes looking for it in the future

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

4 participants