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

style image mask #768

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

style image mask #768

wants to merge 2 commits into from

Conversation

t00350320
Copy link

@t00350320 t00350320 commented Dec 19, 2024

ipadapter style image mask support.
a new option button named “style_image_mask” added into "IPAdapater Advanced","IPAdapter Style & Compostition SDXL" modules

PTAL @cubiq @wailovet @IDGallagher
thank you very much!

@cubiq
Copy link
Owner

cubiq commented Dec 19, 2024

please provide examples of what it does

@t00350320
Copy link
Author

t00350320 commented Dec 19, 2024

please provide examples of what it does

For image style transfer feature,
we tested that, if a style image includes a face element, then the face embeding encoded by adapater will affect the final image even the controlnet has been feeded with another user's face image.
Apart from this, we also want a specail part of a style image to implement the style transfer.
So, we add the "style_image_mask" option to accomplish it. Fortunately we find current function "encode_image_masked" already supports this similar parameter "mask", so we just expose this parameter and support editing.
In a word:

  1. this is an optional parameter
  2. usage case: image style transfer , if you don't want some part of a style image to be referenced , a black mask can be filled to that part.
    ipa_style_mask.json

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