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

Issue about portrait inversion. #16

Open
stickice opened this issue Apr 15, 2023 · 1 comment
Open

Issue about portrait inversion. #16

stickice opened this issue Apr 15, 2023 · 1 comment

Comments

@stickice
Copy link

Hi, Thanks for your great work!
I notice that the code of One-shot portrait reenactment and stylization is not released, so I try to invert image using PTI. However, I found that the latent code produced by PTI is [1,18,512]. The latent code(ws) in gen_samples_next3d.py is [1,28,512].

ws = G.mapping(z, conditioning_params, truncation_psi=truncation_psi, truncation_cutoff=truncation_cutoff)

And I notice that the same latent code in EG3D is [1,14,512]. Could you explain the changes or improvements in Next3D? Thanks a lot!

@wamiq-reyaz
Copy link

wamiq-reyaz commented Jun 9, 2023

The code is decomposed into two parts - one for the generation of the texture for the FLAME mesh and the other for the original EG3D components - the triplane generator, the superresolution network and the mouth/teeth generator.

eg3d_ws, texture_ws = ws[:, :self.texture_backbone.num_ws], ws[:, self.texture_backbone.num_ws:]

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