InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Unified Canvas Invoke ignores the mask when you erase something under the mask on Base layer

Open odragora opened this issue 3 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Windows

GPU

cuda

VRAM

16

What happened?

When I mask an area in the bounding box of the Unified Canvas and then erase a part of the image on the Base layer on the area covered by the mask and then Invoke, the mask is ignored.

The new image has changes far outside the masked area. Also, the changes are very significant, and they ignore Image To Image Strength value.

Screenshots

No response

Additional context

No response

odragora avatar Dec 28 '22 12:12 odragora

I also noticed that sometimes it happens even without using eraser or painting on the base layer at all. Although not as often. I'm not seeing the pattern yet.

odragora avatar Dec 28 '22 13:12 odragora

I tried to download the image as a file, clear canvas, upload the image I downloaded and set it as the canvas image. Then I tried to Invoke it multiple times with Image to Image Strength values from 0.01 to 0.99, CFG Scale values from 2 to 20, and different samplers. Without drawing a mask.

The result was always pretty much the same. It was different from the original image in the very same details. It seems like all those values are ignored.

Then I added a mask and invoked again. The area under the mask has been changed as expected, but the picture outside the mask changed again in the very same way.

I noticed that when I press Invoke, the progress bar with the "Generating (Outpainting)" is being filled twice. I suspect that there are two different processes of generating are happening because of the bug, and the one that affects the picture outside of the mask should not be happening.

Restarting InvokeAI process in the console doesn't help. Changing the prompt doesn't change anything. As well as opening a new browser window tab. Opening in Chrome instead of Firefox changes nothing.

It seems to me like the problem is rooted in the Unified Canvas itself.

I choose another image from the gallery, it works as expected. I delete all copies of the problematic image from the gallery and upload it again, the same thing happens.

I uploaded the image to Image To Image tab, Invoked with 0.01 Strength (it lost its colors for some reason, could be another bug?), and then uploaded the resulting image to the Unified Canvas.

It worked. I can still work with the image again. With the new one. The old version is still bugged.

Though I can't make the new image bright and saturated again anymore after it faded in Image To Image tab.

odragora avatar Dec 28 '22 14:12 odragora

There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.

github-actions[bot] avatar Mar 13 '23 06:03 github-actions[bot]

I have found this same issue. Very large image. The workaround didn't work for me.

jdell64 avatar May 26 '23 16:05 jdell64