-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Add Composable diffusion to community pipeline examples #951
Merged
patrickvonplaten
merged 9 commits into
huggingface:main
from
MarkRich:composable-diffusion
Oct 25, 2022
Merged
Add Composable diffusion to community pipeline examples #951
patrickvonplaten
merged 9 commits into
huggingface:main
from
MarkRich:composable-diffusion
Oct 25, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The documentation is not available anymore as the PR was closed or merged. |
This was referenced Oct 23, 2022
Very cool! Thanks a lot for the PR :-) |
cc @osanseviero @apolinario FYI |
PhaneeshB
pushed a commit
to nod-ai/diffusers
that referenced
this pull request
Mar 1, 2023
This reverts commit 8115b26. Additionally fixes img2col by adding detach elementwise from named op passes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of #876 and bigger story #841
Followed the rough format of #900 and the code here: https://github.com/energy-based-model/Compositional-Visual-Generation-with-Composable-Diffusion-Models-PyTorch/tree/16e630f7fee5483bb986cb828762d6e06c2869c3, here's a script that allows for users to create "composable" prompts delimited by |.
For instance:
yields:




Note for reviewers:
The script above is actually not 100% accurate, if I run it exactly as is I get the following error:
The trick is I have to change one line in the script to:
and in
diffusers/src/pipeline_utils.py
I need to change the following line:to
Given the nature of the error above (i.e. it is searching on github for composable_stable_diffusion.py" I am guessing that I am just missing something about how we're expected to test these changes? 😅 . Open to more testing!
Anyway, based on the initial tests seems like it works