Uh oh!
There was an error while loading. Please reload this page.
Multi-image masking for single IP Adapter - #7499
Conversation
Uh oh!
There was an error while loading. Please reload this page.
sayakpaul
left a comment
There was a problem hiding this comment.
Changes looking nice ❤️ Great work as always. Let's add a fast test and see how it goes?
HuggingFaceDocBuilderDev
commented
Mar 28, 2024
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. |
fabiorigano
commented
Mar 31, 2024
thank you @sayakpaul ready |
Uh oh!
There was an error while loading. Please reload this page.
| max_diff = numpy_cosine_similarity_distance(image_slice, expected_slice) | ||
| assert max_diff < 5e-4 | ||
| def test_ip_adapter_multiple_masks_one_adapter(self): |
There was a problem hiding this comment.
This is slow test. I was wondering if it's possible to add a fast test like
?
There was a problem hiding this comment.
I see, I missed that
I'll add it now
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
yiyixuxu
left a comment
There was a problem hiding this comment.
thank you for working on this!
looks good. I left some feedbacks. let's make very clear what's the expected shape for ip_adapter_mask and scale
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.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: YiYi Xu <yixu310@gmail.com>
fabiorigano
commented
Apr 6, 2024
@yiyixuxu@sayakpaul now it's ready |
yiyixuxu
left a comment
There was a problem hiding this comment.
looks good to me!
I will run slow tests to make sure it does not break anything before merge
fabiorigano
commented
Apr 8, 2024
thank you YiYi! I fixed the fast test for the panorama pipeline that was failing and the slow test I ran all the slow tests related to image masking locally and they didn't break :) |
* Support multiimage masking --------- Co-authored-by: Sayak Paul <spsayakpaul@gmail.com> Co-authored-by: YiYi Xu <yixu310@gmail.com>
What does this PR do?
Image masking is currently supported by passing a mask and an image for each IP Adapter in the pipeline.
This PR extends this usage by allowing multiple masks and images to be passed to a single IP Adapter. Scales must be passed accordingly.
Discussed in #7419
@sayakpaul@yiyixuxu