Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for PhotoMaker Version 2 #358

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

bssrdf
Copy link
Contributor

@bssrdf bssrdf commented Aug 23, 2024

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 bssrdf mentioned this pull request Aug 23, 2024
@leejet
Copy link
Owner

leejet commented Aug 27, 2024

Thank you for your contribution. I'll find some time to review your changes. Can you merge the latest master branch?

@bssrdf
Copy link
Contributor Author

bssrdf commented Aug 28, 2024

Thank you for your contribution. I'll find some time to review your changes. Can you merge the latest master branch?

Will do the merge later. Done. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants