genforce / idinvert_pytorch

[ECCV 2020] In-Domain GAN Inversion for Real Image Editing (PyTorch code)
https://genforce.github.io/idinvert/
MIT License
407 stars 54 forks source link

Semantic Diffusion : Irregular foreground with aribitray coordinates #31

Open venuv opened 1 year ago

venuv commented 1 year ago

Is there a way to modify the source code to blend skin defects (say a birthmark on to a face) that are non-rectangular and on arbitrary coordinates on the face. Could you provide any high level thoughts parts of the code that would change?

venuv commented 1 year ago

would I have to write a version of diffuse in utils/inverter.py that accepts a mask instead of x/y coordinates of the rectangular foreground bounding box?

zhujiapeng commented 1 year ago

Yes

would I have to write a version of diffuse in utils/inverter.py that accepts a mask instead of x/y coordinates of the rectangular foreground bounding box?