invoke-ai / InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.39k stars 2.4k forks source link

[bug]: ValueError: images do not match #6610

Closed itsyurig closed 2 weeks ago

itsyurig commented 3 months ago

Is there an existing issue for this problem?

Operating system

Windows

GPU vendor

Nvidia (CUDA)

GPU model

GTX 1070

GPU VRAM

8gb

Version number

4.x.x.x

Browser

Edge

Python dependencies

No response

What happened

in the inpainting area, after the 4.x.x.x update when I use different value for Scale before processing from actual bounding box size it gives me error : ValueError Images do not match? is there any solution?
[InvokeAI]::ERROR --> Error while invoking session 054e338c-c6f2-4fde-8211-09994ea96cba, invocation e02f3e68-72d2-414a-9115-2e8c12c2c918 (canvas_paste_back): images do not match [2024-07-12 22:06:38,719]::[InvokeAI]::ERROR --> Traceback (most recent call last): File "F:\invokeai.venv\Lib\site-packages\invokeai\app\services\session_processor\session_processor_default.py", line 129, in run_node output = invocation.invoke_internal(context=context, services=self._services) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\invokeai.venv\Lib\site-packages\invokeai\app\invocations\baseinvocation.py", line 297, in invoke_internal return self.invoke(context) ^^^^^^^^^^^^^^^^^^^^ File "F:\invokeai.venv\Lib\site-packages\invokeai\app\invocations\image.py", line 954, in invoke source_image.paste(target_image, (0, 0), mask) File "F:\invokeai.venv\Lib\site-packages\PIL\Image.py", line 1847, in paste self.im.paste(im, box, mask.im) ValueError: images do not match

I tried uninstalling the app and even reinstalled windows and everything can anyone help?

What you expected to happen

I expected the feature to work as it is inteded

How to reproduce the problem

No response

Additional context

No response

Discord username

No response

psychedelicious commented 2 weeks ago

Invoke v5 features a full rewrite of the canvas. Please create a new GH issue if the problem still exists in the new canvas UI.