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

Default parameters for project.py do not recreate projected latents in assets/demo/projected_latents #16

Open
CooperNederhood opened this issue Aug 25, 2021 · 1 comment

Comments

@CooperNederhood
Copy link

Hello, great work! I am wondering what options you use to calculate the projected latents in assets/demo/projected_latents?
I am trying to recreate them using the default parameters via: python3 tools/project.py 00_ryan.jpg
But the resulting vectors are numerically different and, when viewed in demo.py: (1) the projected image is good but clearly different than the projected image preloaded in the repo and (2) the editing directions don't seem to work very well for this set of latent codes.

Below I've included a screenshot of the behavior I am seeing. Note the differences in his neckline from the demo projection and the lack of any meaningful change in the output image.
image

@tonylins
Copy link
Contributor

tonylins commented Mar 9, 2022

Hi, sorry for the late reply. Could you please provide the script you used to perform the projection?

To get a good projection, you should enable --encoder for a good initialization. --optimize_sub_g and add --enc_reg_weight will also potentially help to make the editing more obvious. We notice that sometimes when you improve the reconstruction, the editing ability could actually become worse. We think this is an open question pending research.

Alternatively, you can increase the max_value here (

max_value = 0.6
) to increase the editing, if the effect is not obvious.

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