diffae icon indicating copy to clipboard operation
diffae copied to clipboard

how to interpolate faces

Open loboere opened this issue 2 years ago • 2 comments

can you tell me where to find the code to interpolate faces, or show me how to do it, according to the page I use weighted sum but I'm not very good at math and I don't know what to add here.

loboere avatar Jul 08 '22 21:07 loboere

You are right. I may add it later. By the way, the interpolation is simply a convex combination: interpolate = alpha * latent_code1 + (1-alpha) * latent_code2 for the semantic codes. In the paper, we also do the noise interpolation albeit slightly differently with spherical interpolation (described in the paper).

phizaz avatar Jul 13 '22 11:07 phizaz

Added in https://github.com/phizaz/diffae/commit/0c3f99c609ed8b63c4383eb1201727093ef9070c. See interpolate.ipynb.

phizaz avatar Jul 15 '22 01:07 phizaz