AbdullahAlfaraj / AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin

Can't outpaint/inpaint, error messages in webui batch interface

Abierto
#241 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
7.3k
Forks
526
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hello,

I've successfully installed the plugin, and can generate images, but I'm unable to outpaint, inpaint or use img2img.

I see 2 issues, but I don't know how they're related or what the fix is.

First, when I attempt to outpaint or inpaint the image that I've generated does not load in the image or mask previews. The screenshot below is what I see. I'm guessing the correct path to the created image isn't set, but I can't find where to change it.

![Screenshot 2023-04-27 200024](https://user-images.githubusercontent.com/25084130/235044255-ed1cef3e-865b-46af-849c-6106429e6d10.png)

Second, I get the errors below in the SD webui batch interface when I hit the generate outpaint button. I'm not sure if this is related to the fact that I can't see the images in the preview above, or separate issue.

Has anyone run into this, or know what the solution is?

Traceback (most recent call last):
File "C:\Stable Diffusion WebUI\venv\lib\site-packages\starlette\middleware\base.py", line 78, 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\modules\api\api.py", line 145, in exception_handling
return await call_next(request)
File "C:\Stable Diffusion WebUI\venv\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "C:\Stable Diffusion WebUI\venv\lib\site-packages\starlette\middleware\base.py", line 70, 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 108, in __call__
response = await self.dispatch_func(request, call_next)
File "C:\Stable Diffusion WebUI\modules\api\api.py", line 110, in log_and_time
res: Response = await call_next(req)
File "C:\Stable Diffusion WebUI\venv\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "C:\Stable Diffusion WebUI\venv\lib\site-packages\starlette\middleware\base.py", line 70, 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 718, 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 237, in app
raw_response = await run_endpoint_function(
File "C:\Stable Diffusion WebUI\venv\lib\site-packages\fastapi\routing.py", line 165, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "C:\Stable Diffusion WebUI\venv\lib\site-packages\starlette\concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "C:\Stable Diffusion WebUI\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\Stable Diffusion WebUI\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\Stable Diffusion WebUI\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
result = context.run(func, *args)
File "C:\Stable Diffusion WebUI\modules\api\api.py", line 363, in img2imgapi
p.init_images = [decode_base64_to_image(x) for x in init_images]
File "C:\Stable Diffusion WebUI\modules\api\api.py", line 363, in
p.init_images = [decode_base64_to_image(x) for x in init_images]
File "C:\Stable Diffusion WebUI\modules\api\api.py", line 59, in decode_base64_to_image
if encoding.startswith("data:image/"):
AttributeError: 'NoneType' object has no attribute 'startswith'

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.