ShadeGAN icon indicating copy to clipboard operation
ShadeGAN copied to clipboard

gan inversion code release

Open HollyDQWang opened this issue 3 years ago • 3 comments

Will the code for GAN inversion be released?

HollyDQWang avatar Mar 01 '22 21:03 HollyDQWang

Also interested in the GAN inversion to generate shapes from custom images. @XingangPan is there any ETA? Thanks

JC1DA avatar Sep 13 '22 22:09 JC1DA

I have just uploaded the scripts for the GAN inversion part. You may refer to this example: https://github.com/XingangPan/ShadeGAN/blob/main/scripts/inversion.sh. You need to pull the new commit and download the model weights again. To invert your own image, you need to first align it to match the celeba dataset. You can do it either manually or use the celeba align tool at https://github.com/XingangPan/ShadeGAN/blob/main/inversion/align_face_celeba.m. (This requires five landmarks as input, which can be obtained using other landmark detection tools like dlib) For the second way, you also need to add --crop to inversion.py

XingangPan avatar Oct 17 '22 19:10 XingangPan

I have just uploaded the scripts for the GAN inversion part. You may refer to this example: https://github.com/XingangPan/ShadeGAN/blob/main/scripts/inversion.sh. You need to pull the new commit and download the model weights again. To invert your own image, you need to first align it to match the celeba dataset. You can do it either manually or use the celeba align tool at https://github.com/XingangPan/ShadeGAN/blob/main/inversion/align_face_celeba.m. (This requires five landmarks as input, which can be obtained using other landmark detection tools like dlib) For the second way, you also need to add --crop to inversion.py

I input a portrait, a background image, then how to get the background image illumination information as the basis of portrait re-light

zhanghongyong123456 avatar Oct 31 '22 01:10 zhanghongyong123456