mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix blend if the target image has been upscaled
This commit is contained in:
parent
4f1664ec4f
commit
f1ffb5b51b
@ -529,6 +529,9 @@ The vast majority of these arguments default to reasonable values.
|
|||||||
res = Image.fromarray(restored_img)
|
res = Image.fromarray(restored_img)
|
||||||
|
|
||||||
if strength < 1.0:
|
if strength < 1.0:
|
||||||
|
# Resize the image to the new image if the sizes have changed
|
||||||
|
if restored_img.size != image.size:
|
||||||
|
res = res.resize(image.size)
|
||||||
res = Image.blend(image, res, strength)
|
res = Image.blend(image, res, strength)
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
Loading…
x
Reference in New Issue
Block a user