stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Unsupported operand type in 371c4b9
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
Executing Webui-user.bat after 371c4b9 causes Webui to terminate with below message:
Traceback (most recent call last):
File "C:\stable-diffusion-webui\launch.py", line 252, in <module>
start()
File "C:\stable-diffusion-webui\launch.py", line 247, in start
webui.webui()
File "C:\stable-diffusion-webui\webui.py", line 153, in webui
create_api(app)
File "C:\stable-diffusion-webui\webui.py", line 97, in create_api
from modules.api.api import Api
File "C:\stable-diffusion-webui\modules\api\api.py", line 9, in <module>
from modules.api.models import *
File "EC:\stable-diffusion-webui\modules\api\models.py", line 199, in <module>
class UpscalerItem(BaseModel):
File "C:\stable-diffusion-webui\modules\api\models.py", line 201, in UpscalerItem
model_name: str | None = Field(title="Model Name")
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
Steps to reproduce the problem
- Git pull to latest branch
- Execute Webui-user.bat
- Webui-user.bat completes up until "Running on local URL..." and then terminates with error message
What should have happened?
Webui should launch without error
Commit where the problem happens
371c4b990eca3f2418e62ce8c852e9a52d39e445
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
--gradio-img2img-tool color-sketch --precision full --no-half --no-half-vae --deepdanbooru --api
Additional information, context and logs
Rolling back to previous immediate commit (f674c488d9701e577e2aaf25e331fb44ada4f1ef) launches without issue
Can you specify python version you're using? This is option from python 3.10
https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/4311 Made a PR to fix