genforce / interfacegan

[CVPR 2020] Interpreting the Latent Space of GANs for Semantic Face Editing
https://genforce.github.io/interfacegan/
MIT License
1.51k stars 281 forks source link

Issue regarding method linear_interpolate in file utils/manipulator.py #96

Open sigal-raab opened 2 years ago

sigal-raab commented 2 years ago

Thank you for this great work. My question relates to the method linearinterpolate in file utils/manipulator.py. In the following line of code: > linspace = linspace - latentcode.dot(boundary.T) I suppose you intend to compute the distance from the SVM boundary line using the term _latentcode.dot(boundary.T). However, this term computes the distance only if the boundary line passes through the axes origin. That is, if the constant in the decision function (i.e., boundary line function) is zero. Can you please let me know whether I am missing something?