adobe-research / diffusion-rig

Code Release for DiffusionRig (CVPR 2023)
https://diffusionrig.github.io
Other
265 stars 16 forks source link

How to generate myself expression face? #8

Open sunzhe09 opened 1 year ago

sunzhe09 commented 1 year ago

when I run the scrpit you provide the scripts,I find it just swap the face,but I want to edit the expression .

sunzhe09 commented 1 year ago

how can i generator this gif,I mean I don't know how to get the condition image

zh-ding commented 1 year ago

Hi, in order to edit the expression directly without the condition image, you can try to modify the parameters here https://github.com/adobe-research/diffusion-rig/blob/d9b266102e1900032efc62e66a7f6c66dde5ff79/scripts/inference.py#L80C1-L81C1 where you directly change original expression parameters instead of extracting them from the original image. You can also find another image with the expression you'd like to use, and then do an interpolation of those two sets of parameters.