Make StableDiffusionProcessingImg2Img.mask_blur
a property, make more inline with PIL GaussianBlur
#12470
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.
I don't exactly know why GitHub allows me to do this, but I'm opening this PR on @Splendide-Imaginarius's behalf now since it's a pretty intrusive issue.
This fixes an issue where the
mask_blur
property isn't set in img2img, which has caused problems for Ultimate Upscale and ControlNet, both for a few months now. It was a regression introduced by #10295.Coyote-A/ultimate-upscale-for-automatic1111#111
Mikubill/sd-webui-controlnet#1888
Mikubill/sd-webui-controlnet#1907
Also makes the sigma values match closer to the old behavior of using PIL's
GaussianBlur
to reduce seams.Checklist: