Cartoon-StyleGAN icon indicating copy to clipboard operation
Cartoon-StyleGAN copied to clipboard

Code to inference new image

Open gradient1706 opened this issue 2 years ago • 1 comments

Thank you for sharing this good work. I'm testing new image on the Colab inference notebook you have shared but unfortunately the Example 3 gives me bad results on all of images I uploaded. Don't know why although I run the exact same code on Colab notebook. Can you please take a look and share code for inference new images. Thanks in advance. I think it's because of encoder model. This is the image after run the projector.py line of code on Colab notebook. image Maybe that leads to the generated images being distorted too.

gradient1706 avatar Oct 05 '21 10:10 gradient1706

Hello,

You have to upload an image aligned with FFHQ method. Re-arrange the image through the code of this repo (FFHQ-Alignment) and encode the image. This issue (#6) is example.

Thank you.

happy-jihye avatar Oct 20 '21 06:10 happy-jihye