mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 19:22:32 +00:00
"Uncrop" the original denoised image for the composite step, fixing a "ValueError: Images do not match" *shudder*
This commit is contained in:
@@ -994,6 +994,10 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
|||||||
# we need to keep the original image around
|
# we need to keep the original image around
|
||||||
# and use it in the composite step.
|
# and use it in the composite step.
|
||||||
original_denoised_image = image.copy()
|
original_denoised_image = image.copy()
|
||||||
|
|
||||||
|
if p.paste_to is not None:
|
||||||
|
original_denoised_image = uncrop(original_denoised_image, (p.overlay_images[i].width, p.overlay_images[i].height), p.paste_to)
|
||||||
|
|
||||||
image = apply_overlay(image, p.paste_to, i, p.overlay_images)
|
image = apply_overlay(image, p.paste_to, i, p.overlay_images)
|
||||||
|
|
||||||
if save_samples:
|
if save_samples:
|
||||||
|
Reference in New Issue
Block a user