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

About Interpolation. #8

Open
pww777 opened this issue Nov 25, 2023 · 2 comments
Open

About Interpolation. #8

pww777 opened this issue Nov 25, 2023 · 2 comments

Comments

@pww777
Copy link

pww777 commented Nov 25, 2023

image
I use "python -m synthesis interpolation --checkpoint ./checkpoints/afhq-stylegan2-5M.pt --folder ./testphotos/afhq/content ./testphotos/afhq/style“ to synthesize images. But got synthesized images between content image and style image, no style1 images and style2 image. If I want to synthesize images using the style code interpolated between the two style codes obtained from the two reference images,what script should I use? Thank you.

@kunheek
Copy link
Owner

kunheek commented Nov 25, 2023

Hi. Thank you for your interest.

If I understand correctly, you can try adding --lerp-from-src false to your command. For example, you can use the following command:

python -m synthesis interpolation \
--checkpoint ./checkpoints/afhq-stylegan2-5M.pt \
--folder ./testphotos/afhq/content ./testphotos/afhq/style \
--lerp-mode reference \
-- lerp-from-src false

I haven't tested this myself now, but if I remember correctly (I haven't run this code for a long time), this should work. If you have any trouble, please let me know!

@pww777
Copy link
Author

pww777 commented Nov 28, 2023

Thank you very much for your assistance! I found that using the prototype yields better results compared to using the reference. Your guidance is invaluable.

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