Interpause / auto-sd-paint-ext

Extension for AUTOMATIC1111 to add custom backend API for Krita Plugin & more
MIT License
476 stars 41 forks source link

img2img and Inpaint not working in Krita #97

Closed Lehiko closed 1 year ago

Lehiko commented 1 year ago

Describe the bug Anytime I try to use the img2img or inpainting function in Krita I get the following error:

Error completing request Arguments: (0, '1girl, aqua konosuba,\t\t', '', 'None', 'None', <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=1536x2048 at 0x20E9F95E5C0>, None, None, None, None, <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=1536x2048 at 0x20E9F95E5C0>, None, 40, 0, 0, None, 1, False, False, 1, 1, 12.0, 0.8, -1, -1, 0.0, 0, 0, False, 704, 512, 1, False, 0, False, '', '', 0) {} Traceback (most recent call last): File "E:\stable-diffusion-webui\modules\call_queue.py", line 56, in f res = list(func(*args, *kwargs)) File "E:\stable-diffusion-webui\modules\call_queue.py", line 37, in f res = func(args, **kwargs) File "E:\stable-diffusion-webui\modules\img2img.py", line 148, in img2img processed = process_images(p) File "E:\stable-diffusion-webui\modules\processing.py", line 480, in process_images res = process_images_inner(p) File "E:\stable-diffusion-webui\modules\processing.py", line 569, in process_images_inner p.init(p.all_prompts, p.all_seeds, p.all_subseeds) File "E:\stable-diffusion-webui\modules\processing.py", line 939, in init image = images.flatten(img, opts.img2img_background_color) File "E:\stable-diffusion-webui\modules\images.py", line 653, in flatten if img.mode == "RGBA": AttributeError: 'NoneType' object has no attribute 'mode

Doesn't matter if I have a lot of prompts or next to no prompts, resolution, settings ,etc, only text2img works and I get this same exact error every time I use img2img or inpainting. Thanks for your help.

Lehiko commented 1 year ago

I already tried clicking restore defaults in the SD plugin config and that did not fix the issue.

Interpause commented 1 year ago

Fixed, wait a bit longer while I test its fully functional.

Interpause commented 1 year ago

Fixed in https://github.com/Interpause/auto-sd-paint-ext/commit/3fff9ffb944d6450a59ca2abbee181a66cc06005