Description
Is there an existing issue for this?
- I have searched the existing issues and checked the recent builds/commits
What happened?
When adding Auto_Photoshop_stableDiffusion plugin (https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin), and run
webui.bat --api --onnx --backend=directml
We see the below error but we do not see this error when running webui.bat --api without onnx and directml
*** API error: GET: http://127.0.0.1:7860/sdapi/v1/samplers {'error': 'ValidationError', 'detail': '', 'body': '', 'errors': '8 validation errors for SamplerItem\nresponse -> 0 -> options\n none is not an allowed value (type=type_error.none.not_allowed)\nresponse -> 1 -> options\n none is not an allowed value (type=type_error.none.not_allowed)\nresponse -> 2 -> options\n none is not an allowed value (type=type_error.none.not_allowed)\nresponse -> 3 -> options\n none is not an allowed value (type=type_error.none.not_allowed)\nresponse -> 4 ->
options\n none is not an allowed value (type=type_error.none.not_allowed)\nresponse -> 5 -> options\n none is not an allowed value (type=type_error.none.not_allowed)\nresponse -> 6 -> options\n none is not an allowed value (type=type_error.none.not_allowed)\nresponse -> 7
-> options\n none is not an allowed value (type=type_error.none.not_allowed)'}
Traceback (most recent call last):
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\anyio\streams\memory.py", line 98, in receive
return self.receive_nowait()
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\anyio\streams\memory.py", line 93, in receive_nowait
raise WouldBlock
anyio.WouldBlock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\middleware\base.py", line 78, in call_next
message = await recv_stream.receive()
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\anyio\streams\memory.py", line 118, 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-directml\modules\api\api.py", line 187, in exception_handling
return await call_next(request)
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\middleware\base.py", line 108, in __call__
response = await self.dispatch_func(request, call_next)
File "C:\stable-diffusion-webui-directml\modules\api\api.py", line 151, in log_and_time
res: Response = await call_next(req)
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\middleware\cors.py", line 84, in __call__
await self.app(scope, receive, send)
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\middleware\gzip.py", line 26, in __call__
await self.app(scope, receive, send)
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\middleware\exceptions.py", line 79, in __call__
raise exc
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\middleware\exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
raise e
await self.app(scope, receive, send)
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\routing.py", line 718, in __call__
await route.handle(scope, receive, send)
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\fastapi\routing.py", line 255, in app
content = await serialize_response(
File "C:\Users\swpal-ml0\anaconda3\envs\adobe\lib\site-packages\fastapi\routing.py", line 141, in serialize_response
raise ValidationError(errors, field.type_)
pydantic.error_wrappers.ValidationError: 8 validation errors for SamplerItem
response -> 0 -> options
none is not an allowed value (type=type_error.none.not_allowed)
response -> 1 -> options
none is not an allowed value (type=type_error.none.not_allowed)
response -> 2 -> options
none is not an allowed value (type=type_error.none.not_allowed)
response -> 3 -> options
none is not an allowed value (type=type_error.none.not_allowed)
response -> 4 -> options
none is not an allowed value (type=type_error.none.not_allowed)
response -> 5 -> options
none is not an allowed value (type=type_error.none.not_allowed)
response -> 6 -> options
none is not an allowed value (type=type_error.none.not_allowed)
response -> 7 -> options
none is not an allowed value (type=type_error.none.not_allowed)
Steps to reproduce the problem
- Go to https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin and follow the steps to install plugin
- Install photoshop
- run webui.bat --api --onnx --backedn=directml
- load plugin for photoshop
- you will see the error
What should have happened?
Plugin loaded successfully on Photoshop and being able to use it
Sysinfo
What browsers do you use to access the UI ?
Microsoft Edge
Console logs
https://pastebin.com/p4N3ib3V
Additional information
No response