AbdullahAlfaraj / Auto-Photoshop-StableDiffusion-Plugin

A user-friendly plug-in that makes it easy to generate stable diffusion images inside Photoshop using either Automatic or ComfyUI as a backend.
MIT License
6.68k stars 508 forks source link

Offset overlay image during inpainting #351

Open dougbtv opened 1 year ago

dougbtv commented 1 year ago

Using version v1.3.0 Using vladautomatic/sd-next @ latest

Whenever I inpaint with a selection, I get a weird offsetting of the resulting image from the inpaint.

I've attached a screenshot as it's difficult to explain otherwise.

inpaint-offset-problem-sd-photoshop

huchenlei commented 1 year ago

I can confirm that issue is caused by a1111 side, not the extension. I have the same issue in my photopea plugin.

I worked around it by cropping the result image to mask selection range. https://github.com/huchenlei/stable-diffusion-ps-pea/issues/1

dougbtv commented 1 year ago

Thanks @huchenlei !! I also just confirmed that it's not present in a1111 v1.5.1 as far as I tested.

I'll file an issue on vladmandic 👍

huchenlei commented 1 year ago

I am not sure a1111 fixed this recently but I still had issue in 1.5.1 a1111. The issue is more obvious if your inpaint area is close to the border of an image.

dougbtv commented 1 year ago

Yeah, somehow I can't reproduce with 1.5.1, oddly enough. I do think it's not the photoshop extension side though after running this through test.

I can get a mismatched edge if I mask at the border of a selection, but it's not offset elsewhere, so I don't think it's the same thing (I think it's going to always mismatch when done this way) example attached.

Also big thanks for the response and confirming it's on the webui side.

no-reproduction

cdmusic2019 commented 1 year ago

You can try using the "inpainting" model.