fix(ui): image quality degradation on canvas after repeated generations #7539
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
In 7cdda00, I made a small optimization to the graphs for inpainting and outpainting. The change makes the graphs a bit smaller, saving us one PNG encode and image writing step.
As reported by @skunkworxdark on discord, there is an issue where the unmasked regions of an image slowly degrade when the image is inpainted repeatedly.
Because of timing of the issue report coincided with 7cdda00, I think that optimization may be the cause, but I'm having trouble wrapping my head around why exactly.
@skunkworxdark , Could you please test this PR to confirm it resolves the degradation issue you noticed? If it does, we'll get this revert merged. If not, I'll take another crack at the degradation issue with fresh eyes another day.
Related Issues / Discussions
https://discord.com/channels/1020123559063990373/1149513647022948483/1307060842910449716
QA Instructions
I'm not 100% sure how to reproduce the issue - can you help to explain the repro steps @skunkworxdark ?
Merge Plan
n/a
Checklist