genforce/eqgan-sa

How to generate images with pretrained network?

StevenShaw1999 opened this issue · 3 comments

Hello! Thank you for open source your code.
I wonder how to generate images with the provided models (e.g. LSUN cat).
I found that the 'generate.py' only supports image generation with the online pretrained models (e.g. https://nvlabs-fi-cdn.nvidia.com/stylegan2-ada-pytorch/pretrained/metfaces.pkl)
Looking forward to your reply.

Hi,

You can generate images by feeding a model's path to --network of generate.py.
For example, download LSUN Cat model to your local machine as /home/someone/cat.pkl, and then

python generate.py --outdir=out --trunc=1 --seeds=85,265,297,849 --network=/home/someone/cat.pkl

I have updated the information in section Evaluation. Please let me know if you have any other questions.

This helps for me! Thank you for your quick and helpful reply~