Uh oh!
There was an error while loading. Please reload this page.
Multi IP-Adapter for Flux pipelines - #10867
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: hlky <hlky@hlky.ac>
Co-authored-by: hlky <hlky@hlky.ac>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: hlky <hlky@hlky.ac>
Co-authored-by: hlky <hlky@hlky.ac>
guiyrt
commented
Feb 24, 2025
Thanks for the review @hlky! For this PR, are there any meaningful tests you would like for me to add? I took a look at |
hlky
commented
Feb 24, 2025
diffusers/tests/pipelines/test_pipelines_common.py Lines 286 to 377 in 170833c |
guiyrt
commented
Feb 24, 2025
Perfect, will do! Another thing, in #10775 (comment), when you mentioned multi image support for |
hlky
commented
Feb 24, 2025
PipelineImageInput=Union[
PIL.Image.Image,
np.ndarray,
torch.Tensor,
List[PIL.Image.Image],
List[np.ndarray],
List[torch.Tensor],
]The
|
guiyrt
commented
Feb 24, 2025
Ready for review :) I added the ability to mix and match per-layer scale and single scale. For example, you can pass scale for two IP-Adapters as |
guiyrt
commented
Feb 24, 2025
@hlky failed |
hlky
commented
Feb 24, 2025
guiyrt
commented
Feb 24, 2025
HuggingFaceDocBuilderDev
commented
Feb 24, 2025
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |



What does this PR do?
Fixes#10775. Adds support for multiple IP-Adapters on Flux pipelines. For testing, I tried using a single IP-Adapter with 0.5 scale, and then two equal IP-Adapters with 0.25 scale each, which should (and does) produce the same result.
Basic functionality is there, but I still want to clean-up some parts and add multi ip-adapter scale tests. While #10758 is not merged, I have the typing helping functions here as well.All set!Single IP-Adapter inference code
Multi IP-Adapter inference code
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@hlky@yiyixuxu