mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 10:31:17 -08:00
"Uncrop" the original denoised image for the composite step, fixing a "ValueError: Images do not match" *shudder*
This commit is contained in:
parent
28a2b5b4aa
commit
552f8bc832
1 changed files with 4 additions and 0 deletions
|
|
@ -994,6 +994,10 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
|||
# we need to keep the original image around
|
||||
# and use it in the composite step.
|
||||
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)
|
||||
|
||||
if save_samples:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue