stable-diffusion.cpp icon indicating copy to clipboard operation
stable-diffusion.cpp copied to clipboard

Support for PhotoMaker Version 2

Open bssrdf opened this issue 6 months ago • 2 comments

This PR added support for PhotoMaker V2 (PMV2).

PMV2 requires/adds a face detection step via insightface. I couldn't find a C++ lib to do equivalent in SD. (There is a c++ SDK called InspireFace but it is pretty heavy and I don't think SD wants to add it as dependency). So a workaround is to add an additional manual step: a python script was created to do face detection and generate resultant id_embedding. This id_embedding is then fed into SD along with input images.

See more in updated README.

image image
image image
image image
image image
image image
image image
image image
SD PhotoMaker V2 Official Pytorch PhotoMaker V2
image image
image image

bssrdf avatar Aug 23 '24 15:08 bssrdf