-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 TiledMultiDiffusionDenoiseLatents
invocation (for upscaling workflows)
#6522
Merged
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
github-actions
bot
added
python
PRs that change python files
invocations
PRs that change invocations
backend
PRs that change backend files
labels
Jun 19, 2024
I focused on the code changes that don't interact with ML stuff - LGTM. |
RyanJDick
requested review from
lstein,
blessedcoolant,
brandonrising and
hipsterusername
as code owners
June 25, 2024 17:55
hipsterusername
approved these changes
Jun 25, 2024
…nvocation so that it can be called from other invocations.
…so that they can be called externally.
…hat it can be called externally.
…ork with more tile shapes and overlaps.
…edMultiDiffusionDenoiseLatents.py
…o that it can be called externally.
…ultiDiffusionPipeline.
…s not yet supported.
…t that has been superseded by TiledMultiDiffusionDenoiseLatents.
…ocation." This reverts commit 753239b.
…ound. It is simply the first element of the timesteps array.
…with MultiDiffusion.
…amount of overlap rather than being a lower bound.
…nts invocation. This is more natural for many users.
hipsterusername
force-pushed
the
ryan/multi-diffusion
branch
from
June 25, 2024 18:23
b05299e
to
6b1f620
Compare
3 tasks
RyanJDick
added a commit
that referenced
this pull request
Jun 26, 2024
## Summary #6522 introduced a change in behavior in cases where start/end were set such that there are 0 timesteps. This PR reverts that change. cc @StAlKeR7779 ## QA Instructions Run with euler, 5 steps, start: 0.0, end: 0.05. I ran this test before #6522, after #6522, and on this branch. This branch restores the behavior to pre-#6522 i.e. noise is injected even if no denoising steps are applied. ## Checklist - [x] _The PR has a short but descriptive title, suitable for a changelog_ - [x] _Tests added / updated (if applicable)_ - [x] _Documentation added / updated (if applicable)_
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backend
PRs that change backend files
invocations
PRs that change invocations
python
PRs that change python files
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.
Summary
This PR adds a
TiledMultiDiffusionDenoiseLatents
invocation. This invocation has an interface similar to that of theDenoiseLatentsInvocation
, but uses MultiDiffusion internally to perform tiled denoising. The primary intended use case for this node is in tiled upscaling workflows.This PR refactors (and tidies) the
StableDiffusionGeneratorPipeline
class to facilitate sharing most of the core logic between standard and MultiDiffusion denoising.Workflows
Here are some test workflows that use the new invocation:
sd15_multi_diffusion_esrgan_x2_upscale.json
Screenshot of multi_diffusion_esrgan_x2_upscaling.json:
Sample Outputs from Upscaling
Before (352x352):
After 4x (1408x1408):
Before (842x842):
After 4x (3360x3360):
QA Instructions
Test plan:
Merge Plan
Checklist