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 PTI Inversion #19

Open
qplwme opened this issue May 8, 2023 · 1 comment
Open

About PTI Inversion #19

qplwme opened this issue May 8, 2023 · 1 comment

Comments

@qplwme
Copy link

qplwme commented May 8, 2023

Hi! Thanks for your great work.
I'm trying to inverse target images as you descibe in 4.5 Inversion section. Could you give me some clue about it?

In detail, I've got an embed with shape(1, 18, 512) at (PTI repo)/embeddings/barcelona/PTI by following https://github.com/danielroich/PTI. However, I just dont know how to change the embed to fit your 'mean_latent' in line 269 generation_demo.py

@hongfz16
Copy link
Owner

Hi. Thank you for the question.

Actually, the 'mean_latent' is used for truncation. And you do not need to do truncation in inversion. So you can just pass None to 'mean_latent'.

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