Uminosachi / sd-webui-inpaint-anything

Inpaint Anything extension performs stable diffusion inpainting on a browser UI using masks from Segment Anything.
Apache License 2.0
1.03k stars 93 forks source link

ZeroDivisionError when using anything other than "Inpainting". (ie: Inpainting WebUI, ControlNet, etc, all fail) #99

Closed phleshdef closed 4 weeks ago

phleshdef commented 9 months ago

I'm using Automatic1111 1.6 (the newest release).

Reproducing this is simple.

Load an image, Run Segment Anything. Choose your area you want to Mask. Click Create Mask. Enter your prompts. Click Run Inpainting.

Using the regular Inpainting approach (The first tab), it works fine. If I switch to Inpainting webui or ControlNet Inpaint, I get this error.

I know with any inpainting tool, this can happen if there is no mask.... but obviously I have one and the regular inpainting tab recognizes it.

I have the most up to date versions of Automatic1111 and Inpaint Anything extension. I have tried a few different inpainting base models and that doesn't seem to be the problem.

Any guidance here is greatly appreciated.

image

Uminosachi commented 9 months ago

I realized there was a section running that was not necessary, so I have corrected it. To apply the fix, please update the extension by navigating to the Extensions tab, then click on Check for updates, followed by Apply and restart UI.

phleshdef commented 9 months ago

@Uminosachi Thank you for the timely response, I just did a quick test and it seems to be working great now.

Uminosachi commented 4 weeks ago

This issue has been fixed, so I am closing it.