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

Passing cross_attention_kwargs to StableDiffusionInstructPix2PixPipeline #7961

Merged
merged 5 commits into from
May 20, 2024

Conversation

AlexeyZhuravlev
Copy link
Contributor

@AlexeyZhuravlev AlexeyZhuravlev commented May 16, 2024

Add cross_attention_kwargs to __call__ method of StableDiffusionInstructPix2PixPipeline, which are passed to UNet.

What does this PR do?

Implements #7962

Adding ability to pass custom cross-attention arguments for UNet. This allows all the same functionality with cross-attention manipulations as inside StableDiffusionPipeline: LoRAs, custom adapters, etc.

Before submitting

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.

@sayakpaul @patil-suraj

Add `cross_attention_kwargs` to `__call__` method of `StableDiffusionInstructPix2PixPipeline`, which are passed to UNet.
Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sayakpaul sayakpaul requested a review from yiyixuxu May 17, 2024 03:23
@HuggingFaceDocBuilderDev

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.

@yiyixuxu yiyixuxu merged commit a7bf77f into huggingface:main May 20, 2024
15 checks passed
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.

None yet

4 participants