Add gradient blending to tile seams in MultiDiffusion #6635
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 gradient blending between tiles during MultiDiffusion denoising. Previously, no gradient was applied and the sharp cut-off caused visible seams in some case (particularly evident on smooth single-color regions).
Before
Upsampled to 2240x1872
Upsampled to 4480x3744
After
Upsampled to 2240x1872
Upsampled to 4480x3744
Other Notes:
Aside: Tile color shift
As seen in the sample images, there is a remaining issue with tile color shift. We currently rely on a ControlNet to maintain this consistency, but clearly it is not very effective. Future improvements that might help with this:
QA Instructions
Speed tests on RTX4090:
I.e. no change in speed on an RTX4090.
Checklist