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

multi-image support in img2img diffusers #45

Open
DoosooChang opened this issue May 28, 2024 · 2 comments
Open

multi-image support in img2img diffusers #45

DoosooChang opened this issue May 28, 2024 · 2 comments

Comments

@DoosooChang
Copy link

Does InstantStyle support referencing multiple images with single ip-adapter for img2img pipeline in diffusers or InstantStyle library?

Multiple image-based txt2img works great in diffusers, but not img2img.

i am using diffusers==0.28.0.dev0

can anyone help me with some working examples?

@haofanwang
Copy link
Member

haofanwang commented May 28, 2024

I believe current IPA is not suitable for img2img pipeline, it's hard to control the strength of init image and ref image (especially when we only inject into a single layer). We are working on improving content preserving ability for img2img style transfer in our next work.

@DoosooChang
Copy link
Author

The img2img pipeline in diffusers doesn't work?
(from e-mail)

The img2img pipeline does not produce an error, but when multiple images are inserted into ip_adapter_image (or ip_adapter_imge_embeds by embedding), the resulting image becomes faded and blurry no matter what data it is tested with.
Below imgs are exemplary results for single-img and multi-imgs instantstyle, respectively, for oil painting and sunset style transfer.

single:

  • oil painting
    the man is sitting in the rear of his suv_0_c05_s08

  • sunset
    a bridge over the water with cars driving_0_c05_s08

multi:

  • oil painting
    the man is sitting in the rear of his suv_multi_0

  • sunset
    a bridge over the water with cars driving_multi_0

thank you

@DoosooChang DoosooChang reopened this Jun 9, 2024
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

No branches or pull requests

2 participants