[X] I have searched the existing issues and checked the recent builds/commits
What happened?
Automatic1111 SD worked on 11/30/22. Ran update on 12/1/22 via git clone and it crashes every time with pydantic errors. Tried running pip install -r requirements.txt in case other dependencies were out of sync, but same errors occur.
@echo off
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
set COMMANDLINE_ARGS= --api --xformers --precision full --no-half --autolaunch --ckpt-dir "D:\stable-diffusion\checkpoints"
call webui.bat
Additional information, context and logs
fatal: destination path 'stable-diffusion-webui' already exists and is not an empty directory.
venv "D:\stable-diffusion\venv\Scripts\Python.exe"
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)]
Commit hash:
Installing requirements for Web UI
[auto-sd-paint-ext] Attempting auto-update...
[auto-sd-paint-ext] Fetch upstream.
[auto-sd-paint-ext] Pull upstream.
Launching Web UI with arguments: --api --xformers --precision full --no-half --autolaunch --ckpt-dir D:\stable-diffusion\checkpoints
Moving model.ckpt from D:\stable-diffusion\repositories/latent-diffusion/experiments/pretrained_models/ to D:\stable-diffusion\models\LDSR.
Moving project.yaml from D:\stable-diffusion\repositories/latent-diffusion/experiments/pretrained_models/ to D:\stable-diffusion\models\LDSR.
Installing pywin32
(Unprompted v0.10.0 by Therefore Games)
(SETUP) Initializing Unprompted object...
(SETUP) Loading configuration files...
(SETUP) Debug mode is False
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
Loading weights [1a10eda9] from D:\stable-diffusion\checkpoints\v1-5-pruned_0.5-novelAI_0.5-Weighted_sum-merged.ckpt
Global Step: 840000
Applying xformers cross attention optimization.
Model loaded.
Loaded a total of 2 textual inversion embeddings.
Embeddings: harley_quinn, spider_gwen
Running on local URL: http://127.0.0.1:7860
To create a public link, set share=True in launch().
Traceback (most recent call last):
File "D:\stable-diffusion\launch.py", line 252, in
start()
File "D:\stable-diffusion\launch.py", line 247, in start
webui.webui()
File "D:\stable-diffusion\webui.py", line 153, in webui
create_api(app)
File "D:\stable-diffusion\webui.py", line 97, in create_api
from modules.api.api import Api
File "D:\stable-diffusion\modules\api\api.py", line 9, in
from modules.api.models import *
File "D:\stable-diffusion\modules\api\models.py", line 199, in
class UpscalerItem(BaseModel):
File "D:\stable-diffusion\venv\lib\site-packages\pydantic\main.py", line 299, in new
fields[ann_name] = ModelField.infer(
File "D:\stable-diffusion\venv\lib\site-packages\pydantic\fields.py", line 411, in infer
return cls(
File "D:\stable-diffusion\venv\lib\site-packages\pydantic\fields.py", line 342, in init
self.prepare()
File "D:\stable-diffusion\venv\lib\site-packages\pydantic\fields.py", line 451, in prepare
self._type_analysis()
File "D:\stable-diffusion\venv\lib\site-packages\pydantic\fields.py", line 626, in _type_analysis
raise TypeError(f'Fields of type "{origin}" are not supported.')
TypeError: Fields of type "<class 'types.UnionType'>" are not supported.
Press any key to continue . . .
Is there an existing issue for this?
What happened?
Automatic1111 SD worked on 11/30/22. Ran update on 12/1/22 via git clone and it crashes every time with pydantic errors. Tried running pip install -r requirements.txt in case other dependencies were out of sync, but same errors occur.
Steps to reproduce the problem
What should have happened?
program should have started
Commit where the problem happens
Commit hash: none displayed (terminal window shows Commit Hash: < none >)
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
Additional information, context and logs
fatal: destination path 'stable-diffusion-webui' already exists and is not an empty directory. venv "D:\stable-diffusion\venv\Scripts\Python.exe" Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] Commit hash:
Installing requirements for Web UI
[auto-sd-paint-ext] Attempting auto-update...
[auto-sd-paint-ext] Fetch upstream.
[auto-sd-paint-ext] Pull upstream.
Launching Web UI with arguments: --api --xformers --precision full --no-half --autolaunch --ckpt-dir D:\stable-diffusion\checkpoints Moving model.ckpt from D:\stable-diffusion\repositories/latent-diffusion/experiments/pretrained_models/ to D:\stable-diffusion\models\LDSR. Moving project.yaml from D:\stable-diffusion\repositories/latent-diffusion/experiments/pretrained_models/ to D:\stable-diffusion\models\LDSR. Installing pywin32 (Unprompted v0.10.0 by Therefore Games) (SETUP) Initializing Unprompted object... (SETUP) Loading configuration files... (SETUP) Debug mode is False LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. making attention of type 'vanilla' with 512 in_channels Working with z of shape (1, 4, 32, 32) = 4096 dimensions. making attention of type 'vanilla' with 512 in_channels Loading weights [1a10eda9] from D:\stable-diffusion\checkpoints\v1-5-pruned_0.5-novelAI_0.5-Weighted_sum-merged.ckpt Global Step: 840000 Applying xformers cross attention optimization. Model loaded. Loaded a total of 2 textual inversion embeddings. Embeddings: harley_quinn, spider_gwen Running on local URL: http://127.0.0.1:7860
To create a public link, set
start()
File "D:\stable-diffusion\launch.py", line 247, in start
webui.webui()
File "D:\stable-diffusion\webui.py", line 153, in webui
create_api(app)
File "D:\stable-diffusion\webui.py", line 97, in create_api
from modules.api.api import Api
File "D:\stable-diffusion\modules\api\api.py", line 9, in
from modules.api.models import *
File "D:\stable-diffusion\modules\api\models.py", line 199, in
class UpscalerItem(BaseModel):
File "D:\stable-diffusion\venv\lib\site-packages\pydantic\main.py", line 299, in new
fields[ann_name] = ModelField.infer(
File "D:\stable-diffusion\venv\lib\site-packages\pydantic\fields.py", line 411, in infer
return cls(
File "D:\stable-diffusion\venv\lib\site-packages\pydantic\fields.py", line 342, in init
self.prepare()
File "D:\stable-diffusion\venv\lib\site-packages\pydantic\fields.py", line 451, in prepare
self._type_analysis()
File "D:\stable-diffusion\venv\lib\site-packages\pydantic\fields.py", line 626, in _type_analysis
raise TypeError(f'Fields of type "{origin}" are not supported.')
TypeError: Fields of type "<class 'types.UnionType'>" are not supported.
Press any key to continue . . .
share=True
inlaunch()
. Traceback (most recent call last): File "D:\stable-diffusion\launch.py", line 252, in