Skip to content

Support for PhotoMaker Version 2 - #358

Merged
leejet merged 21 commits into
leejet:masterfrom
bssrdf:support-photomaker-v2
Nov 23, 2024
Merged

Support for PhotoMaker Version 2#358
leejet merged 21 commits into
leejet:masterfrom
bssrdf:support-photomaker-v2

Conversation

@bssrdf

@bssrdfbssrdf commented Aug 23, 2024

Copy link
Copy Markdown
Contributor

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.

imageimage
imageimage
imageimage
imageimage
imageimage
imageimage
imageimage
SD PhotoMaker V2Official Pytorch PhotoMaker V2
imageimage
imageimage

@bssrdfbssrdf mentioned this pull request Aug 23, 2024
@leejet

Copy link
Copy Markdown
Owner

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

@bssrdf

bssrdf commented Aug 28, 2024

Copy link
Copy Markdown
ContributorAuthor

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.

@bssrdfbssrdf mentioned this pull request Sep 17, 2024
@NNDamNNDam mentioned this pull request Oct 22, 2024
…ction; this is more efficient than using model load and also makes it easier to work with sd server
@leejet

Copy link
Copy Markdown
Owner

Thank you for your contribution

@leejet
leejet merged commit 2b1bc06 into leejet:masterNov 23, 2024
Sign up for freeto 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

@bssrdf@leejet