Describe the bug
When running img2img from within Krita 5.1.3 on Windows Pro no image is being generated and errors are displayed in the SD Web UI console.
To Reproduce
Steps to reproduce the behavior:
- generate an image with the txt2img option (fine, it works)
- select the tab img2img, input a prompt and click on Start img2img
- no image is generated and a series of error messages are displayed in the SD Web UI console
Screenshots
If applicable, add screenshots to help explain your problem.
- Screenshot of backend console output (See below)
- Status bar of the plug-in inside Krita doesn't show any errors
- There are no error messages in the Krita console o register
Desktop (please complete the following information):
- OS: Windows Pro 64bit
- Commit hash: cefb5d6d7dbb35e68467bb7965f7139abfaf290d
Additional context
Here follow the messages on the SD Web UI console starting from the step 1 above described:
Total progress: 24it [00:16, 1.49it/s]
auto-sd-paint-ext:INFO: img size: 512x512, target: 512x512
auto-sd-paint-ext:INFO: img size: 512x512, target: 512x512
auto-sd-paint-ext:INFO: saved: ['C:\stable-diffusion-webui\outputs\krita-out\1670102255_0.png']
auto-sd-paint-ext:INFO: saved: ['C:\stable-diffusion-webui\outputs\krita-out\1670102255_0.png']
auto-sd-paint-ext:INFO: output sizes: [702136]
auto-sd-paint-ext:INFO: output sizes: [702136]
auto-sd-paint-ext:INFO: finished txt2img!
auto-sd-paint-ext:INFO: finished txt2img!
auto-sd-paint-ext:INFO: img2img:
{'restore_faces': False, 'face_restorer': 'None', 'codeformer_weight': 0.5, 'inpainting_fill': 1, 'inpaint_full_res': False, 'inpaint_full_res_padding': 0, 'mask_blur': 0, 'invert_mask': False, 'inpaint_mask_weight': 1.0, 'sd_model': 'model.ckpt [7460a6fa]', 'script': 'None', 'script_args': [], 'prompt': 'an illustration of a menacing T-rex dynosaur with a tropical forest in the backgroud', 'negative_prompt': None, 'seed': -1, 'seed_enable_extras': False, 'subseed': -1, 'subseed_strength': 0.0, 'seed_resize_from_h': 0, 'seed_resize_from_w': 0, 'sampler_name': 'DDIM', 'steps': 40, 'cfg_scale': 7.0, 'denoising_strength': 0.8, 'batch_count': 1, 'batch_size': 1, 'base_size': 704, 'max_size': 512, 'tiling': False, 'highres_fix': False, 'firstphase_height': 512, 'firstphase_width': 512, 'upscaler_name': 'None', 'filter_nsfw': False, 'include_grid': False, 'sample_path': 'outputs/krita-out', 'save_samples': True, 'mode': 0, 'resize_mode': 1, 'color_correct': False, 'do_exact_steps': True}
auto-sd-paint-ext:INFO: img2img:
{'restore_faces': False, 'face_restorer': 'None', 'codeformer_weight': 0.5, 'inpainting_fill': 1, 'inpaint_full_res': False, 'inpaint_full_res_padding': 0, 'mask_blur': 0, 'invert_mask': False, 'inpaint_mask_weight': 1.0, 'sd_model': 'model.ckpt [7460a6fa]', 'script': 'None', 'script_args': [], 'prompt': 'an illustration of a menacing T-rex dynosaur with a tropical forest in the backgroud', 'negative_prompt': None, 'seed': -1, 'seed_enable_extras': False, 'subseed': -1, 'subseed_strength': 0.0, 'seed_resize_from_h': 0, 'seed_resize_from_w': 0, 'sampler_name': 'DDIM', 'steps': 40, 'cfg_scale': 7.0, 'denoising_strength': 0.8, 'batch_count': 1, 'batch_size': 1, 'base_size': 704, 'max_size': 512, 'tiling': False, 'highres_fix': False, 'firstphase_height': 512, 'firstphase_width': 512, 'upscaler_name': 'None', 'filter_nsfw': False, 'include_grid': False, 'sample_path': 'outputs/krita-out', 'save_samples': True, 'mode': 0, 'resize_mode': 1, 'color_correct': False, 'do_exact_steps': True}
auto-sd-paint-ext:INFO: img size: 512x512 -> 512x512, aspect ratio: 1.00 -> 1.00, 0.00% change
auto-sd-paint-ext:INFO: img size: 512x512 -> 512x512, aspect ratio: 1.00 -> 1.00, 0.00% change
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "C:\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 94, in receive
return self.receive_nowait()
File "C:\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 89, in receive_nowait
raise WouldBlock
anyio.WouldBlock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 77, in call_next
message = await recv_stream.receive()
File "C:\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 114, in receive
raise EndOfStream
anyio.EndOfStream
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 407, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "C:\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 270, in call
await super().call(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 124, in call
await self.middleware_stack(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 106, in call
response = await self.dispatch_func(request, call_next)
File "C:\stable-diffusion-webui\extensions\auto-sd-paint-ext\backend\app.py", line 344, in app_encryption_middleware
res: StreamingResponse = await call_next(req)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 80, in call_next
raise app_exc
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 69, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 106, in call
response = await self.dispatch_func(request, call_next)
File "C:\stable-diffusion-webui\extensions\auto-sd-paint-ext\backend\app.py", line 344, in app_encryption_middleware
res: StreamingResponse = await call_next(req)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 80, in call_next
raise app_exc
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 69, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 26, in call
await self.app(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 706, in call
await route.handle(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 235, in app
raw_response = await run_endpoint_function(
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 161, in run_endpoint_function
return await dependant.call(**values)
File "C:\stable-diffusion-webui\extensions\auto-sd-paint-ext\backend\app.py", line 204, in f_img2img
images, info, html = modules.img2img.img2img(
TypeError: img2img() missing 1 required positional argument: 'img2img_batch_output_dir'