vladmandic / automatic

SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models
https://github.com/vladmandic/automatic
GNU Affero General Public License v3.0
5.36k stars 382 forks source link

[Issue]: cannot import name 'Doc' from 'typing_extensions' ----> ModuleNotFoundError: No module named 'sqlalchemy' #2491

Closed Acrivec closed 8 months ago

Acrivec commented 8 months ago

Please see first comment as well, as of I had to break this because of characters limit.

Issue Description

After installing, autolaunch failed.

``` Code block collapsed, click to show ImportError: cannot import name 'Doc' from 'typing_extensions' ``` ```cmd PS G:\Downloads\Shark\automatic> .\webui.bat --use-directml Using python: "C:\Users\Acrivec\AppData\Local\Programs\Python\Python310\python3.10.exe" Creating VENV: G:\Downloads\Shark\automatic\venv Using VENV: G:\Downloads\Shark\automatic\venv 15:56:20-723739 INFO Starting SD.Next 15:56:20-728737 INFO Python 3.10.11 on Windows 15:56:21-037737 INFO Version: app=sd.next updated=2023-11-10 hash=eda2aa6d url=https://github.com/vladmandic/automatic.git/tree/master 15:56:21-080737 INFO Platform: arch=AMD64 cpu=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel system=Windows release=Windows-10-10.0.19045-SP0 python=3.10.11 15:56:21-083736 INFO Installing package: onnxruntime 15:56:47-169709 INFO Using DirectML Backend 15:56:47-171709 INFO Installing package: torch-directml 15:57:24-784795 INFO Installing package: onnxruntime-directml 15:57:28-446026 INFO Installing package: torch-directml 15:57:29-626062 WARNING Modified files: ['webui.bat'] 15:57:29-667061 INFO Extensions: disabled=[] 15:57:29-668059 INFO Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 15:57:29-675061 INFO Extensions: enabled=[] extensions 15:57:29-677061 INFO Startup: quick launch 15:57:29-678062 INFO Verifying requirements 15:57:29-684064 INFO Installing package: addict 15:57:30-529195 INFO Installing package: aenum 15:57:31-637324 INFO Installing package: aiohttp 15:57:34-727744 INFO Installing package: anyio 15:57:36-238827 INFO Installing package: appdirs 15:57:37-131497 INFO Installing package: astunparse 15:57:38-460078 INFO Installing package: blendmodes 15:57:39-492112 INFO Installing package: clean-fid 15:57:51-415651 INFO Installing package: easydev 15:57:54-671756 INFO Installing package: extcolors 15:57:55-747859 INFO Installing package: facexlib 15:58:16-672437 INFO Installing package: filetype 15:58:17-955476 INFO Installing package: future 15:58:24-011817 INFO Installing package: gdown 15:58:25-769634 INFO Installing package: gfpgan 15:58:49-445776 INFO Installing package: GitPython 15:58:51-650826 INFO Installing package: httpcore 15:58:53-706825 INFO Installing package: inflection 15:58:55-144351 INFO Installing package: jsonmerge 15:58:57-684214 INFO Installing package: kornia 15:59:01-923120 INFO Installing package: lark 15:59:03-585778 INFO Installing package: lmdb 15:59:04-967371 INFO Installing package: lpips 15:59:06-367000 INFO Installing package: omegaconf 15:59:10-312183 INFO Installing package: open-clip-torch 15:59:17-725545 INFO Installing package: opencv-contrib-python-headless 15:59:20-616323 INFO Installing package: piexif 15:59:22-279466 INFO Installing package: psutil 15:59:24-326800 INFO Installing package: pyyaml 15:59:25-909881 INFO Installing package: resize-right 15:59:27-578917 INFO Installing package: rich 15:59:29-254026 INFO Installing package: safetensors 15:59:30-870120 INFO Installing package: scipy 15:59:32-507207 INFO Installing package: tb_nightly 15:59:34-605387 INFO Installing package: toml 15:59:36-222521 INFO Installing package: torchdiffeq 15:59:37-977523 INFO Installing package: voluptuous 15:59:39-623522 INFO Installing package: yapf 15:59:41-199097 INFO Installing package: scikit-image 15:59:42-835636 INFO Installing package: basicsr 15:59:44-505669 INFO Installing package: fasteners 15:59:46-127686 INFO Installing package: dctorch 15:59:47-794514 INFO Installing package: httpx==0.24.1 15:59:49-982367 INFO Installing package: compel==2.0.2 16:00:12-303219 INFO Installing package: torchsde==0.2.6 16:00:14-714822 INFO Installing package: clip-interrogator==0.6.0 16:00:17-925742 INFO Installing package: antlr4-python3-runtime==4.9.3 16:00:20-224183 INFO Installing package: requests==2.31.0 16:00:22-550464 INFO Installing package: tqdm==4.66.1 16:00:24-766499 INFO Installing package: accelerate==0.20.3 16:00:27-767764 INFO Installing package: opencv-python-headless==4.7.0.72 16:00:30-973773 INFO Installing package: diffusers==0.23.0 16:00:33-300553 INFO Installing package: einops==0.4.1 16:00:35-622423 INFO Installing package: gradio==3.43.2 16:01:04-426435 INFO Installing package: huggingface_hub==0.18.0 16:01:07-894771 INFO Installing package: numexpr==2.8.4 16:01:10-636713 INFO Installing package: numpy==1.24.4 16:01:20-831198 INFO Installing package: numba==0.57.1 16:01:32-613399 INFO Installing package: pandas==1.5.3 16:01:49-858882 INFO Installing package: protobuf==3.20.3 16:01:53-204949 INFO Installing package: pytorch_lightning==1.9.4 16:02:01-030618 INFO Installing package: transformers==4.34.1 16:02:23-363152 INFO Installing package: tomesd==0.1.3 16:02:26-645151 INFO Installing package: urllib3==1.26.15 16:02:29-761679 INFO Installing package: Pillow==9.5.0 16:02:33-826513 INFO Installing package: timm==0.9.7 16:02:38-779521 INFO Installing package: pydantic==1.10.13 16:02:42-242618 INFO Installing package: typing-extensions==4.8.0 16:02:44-761706 INFO Verifying packages 16:02:44-762706 INFO Installing package: git+https://github.com/openai/CLIP.git 16:02:51-586738 INFO Installing package: git+https://github.com/patrickvonplaten/invisible-watermark.git@remove_onnxruntime_depedency 16:03:00-332989 INFO Installing package: pi-heif 16:03:03-456271 INFO Installing package: tensorflow==2.13.0 16:04:02-277088 INFO Extensions: disabled=[] 16:04:02-278089 INFO Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 16:04:02-282088 INFO Extensions: enabled=[] extensions 16:04:02-291088 INFO Extension preload: {'extensions-builtin': 0.0, 'extensions': 0.0} 16:04:02-293088 INFO Command line args: ['--use-directml'] use_directml=True ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ G:\Downloads\Shark\automatic\launch.py:225 in │ │ │ │ 222 │ # installer.log.debug(f"Args: {vars(args)}") │ │ 223 │ logging.disable(logging.NOTSET if args.debug else logging.DEBUG) │ │ 224 │ │ │ ❱ 225 │ uv, instance = start_server(immediate=True, server=None) │ │ 226 │ while True: │ │ 227 │ │ try: │ │ 228 │ │ │ alive = uv.thread.is_alive() │ │ │ │ G:\Downloads\Shark\automatic\launch.py:153 in start_server │ │ │ │ 150 │ server = importlib.util.module_from_spec(module_spec) │ │ 151 │ installer.log.debug(f'Starting module: {server}') │ │ 152 │ get_custom_args() │ │ ❱ 153 │ module_spec.loader.exec_module(server) │ │ 154 │ uvicorn = None │ │ 155 │ if args.test: │ │ 156 │ │ installer.log.info("Test only") │ │ in exec_module:883 │ │ in _call_with_frames_removed:241 │ │ │ │ G:\Downloads\Shark\automatic\webui.py:11 in │ │ │ │ 8 import importlib │ │ 9 import contextlib │ │ 10 from threading import Thread │ │ ❱ 11 import modules.loader │ │ 12 import torch # pylint: disable=wrong-import-order │ │ 13 from modules import timer, errors, paths # pylint: disable=unused-import │ │ 14 local_url = None │ │ │ │ G:\Downloads\Shark\automatic\modules\loader.py:37 in │ │ │ │ 34 │ torch.__version__ = re.search(r'[\d.]+[\d]', torch.__version__).group(0) │ │ 35 timer.startup.record("torch") │ │ 36 │ │ ❱ 37 from fastapi import FastAPI # pylint: disable=W0611,C0411 │ │ 38 import gradio # pylint: disable=W0611,C0411 │ │ 39 timer.startup.record("gradio") │ │ 40 errors.install([gradio]) │ │ │ │ G:\Downloads\Shark\automatic\venv\lib\site-packages\fastapi\__init__.py:7 in │ │ │ │ 4 │ │ 5 from starlette import status as status │ │ 6 │ │ ❱ 7 from .applications import FastAPI as FastAPI │ │ 8 from .background import BackgroundTasks as BackgroundTasks │ │ 9 from .datastructures import UploadFile as UploadFile │ │ 10 from .exceptions import HTTPException as HTTPException │ │ │ │ G:\Downloads\Shark\automatic\venv\lib\site-packages\fastapi\applications.py:16 in │ │ │ │ 13 │ Union, │ │ 14 ) │ │ 15 │ │ ❱ 16 from fastapi import routing │ │ 17 from fastapi.datastructures import Default, DefaultPlaceholder │ │ 18 from fastapi.exception_handlers import ( │ │ 19 │ http_exception_handler, │ │ │ │ G:\Downloads\Shark\automatic\venv\lib\site-packages\fastapi\routing.py:22 in │ │ │ │ 19 │ Union, │ │ 20 ) │ │ 21 │ │ ❱ 22 from fastapi import params │ │ 23 from fastapi._compat import ( │ │ 24 │ ModelField, │ │ 25 │ Undefined, │ │ │ │ G:\Downloads\Shark\automatic\venv\lib\site-packages\fastapi\params.py:5 in │ │ │ │ 2 from enum import Enum │ │ 3 from typing import Any, Callable, Dict, List, Optional, Sequence, Union │ │ 4 │ │ ❱ 5 from fastapi.openapi.models import Example │ │ 6 from pydantic.fields import FieldInfo │ │ 7 from typing_extensions import Annotated, deprecated │ │ 8 │ │ │ │ G:\Downloads\Shark\automatic\venv\lib\site-packages\fastapi\openapi\models.py:4 in │ │ │ │ 1 from enum import Enum │ │ 2 from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Type, Union │ │ 3 │ │ ❱ 4 from fastapi._compat import ( │ │ 5 │ PYDANTIC_V2, │ │ 6 │ CoreSchema, │ │ 7 │ GetJsonSchemaHandler, │ │ │ │ G:\Downloads\Shark\automatic\venv\lib\site-packages\fastapi\_compat.py:20 in │ │ │ │ 17 │ Union, │ │ 18 ) │ │ 19 │ │ ❱ 20 from fastapi.exceptions import RequestErrorModel │ │ 21 from fastapi.types import IncEx, ModelNameMap, UnionType │ │ 22 from pydantic import BaseModel, create_model │ │ 23 from pydantic.version import VERSION as PYDANTIC_VERSION │ │ │ │ G:\Downloads\Shark\automatic\venv\lib\site-packages\fastapi\exceptions.py:6 in │ │ │ │ 3 from pydantic import BaseModel, create_model │ │ 4 from starlette.exceptions import HTTPException as StarletteHTTPException │ │ 5 from starlette.exceptions import WebSocketException as StarletteWebSocketException │ │ ❱ 6 from typing_extensions import Annotated, Doc # type: ignore [attr-defined] │ │ 7 │ │ 8 │ │ 9 class HTTPException(StarletteHTTPException): │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ImportError: cannot import name 'Doc' from 'typing_extensions' (G:\Downloads\Shark\automatic\venv\lib\site-packages\typing_extensions.py) Press any key to continue . . . ```

[Now check first comment to continue]

Version Platform Description

W10, Python 3.10.11

Relevant log output

``` Code block collapsed, click to show sdnext.log for all mentioned launches ``` ```shell 2023-11-10 15:56:20,723 | sd | INFO | launch | Starting SD.Next 2023-11-10 15:56:20,728 | sd | INFO | installer | Python 3.10.11 on Windows 2023-11-10 15:56:21,037 | sd | INFO | installer | Version: app=sd.next updated=2023-11-10 hash=eda2aa6d url=https://github.com/vladmandic/automatic.git/tree/master 2023-11-10 15:56:21,080 | sd | INFO | launch | Platform: arch=AMD64 cpu=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel system=Windows release=Windows-10-10.0.19045-SP0 python=3.10.11 2023-11-10 15:56:21,082 | sd | DEBUG | installer | Setting environment tuning 2023-11-10 15:56:21,083 | sd | DEBUG | installer | Torch overrides: cuda=False rocm=False ipex=False diml=True openvino=False 2023-11-10 15:56:21,083 | sd | DEBUG | installer | Torch allowed: cuda=False rocm=False ipex=False diml=True openvino=False 2023-11-10 15:56:21,083 | sd | DEBUG | installer | Package not found: onnxruntime 2023-11-10 15:56:21,083 | sd | INFO | installer | Installing package: onnxruntime 2023-11-10 15:56:21,085 | sd | DEBUG | installer | Running pip: install --upgrade onnxruntime 2023-11-10 15:56:47,169 | sd | INFO | installer | Using DirectML Backend 2023-11-10 15:56:47,170 | sd | DEBUG | installer | Package not found: torch 2023-11-10 15:56:47,170 | sd | DEBUG | installer | Package not found: torchvision 2023-11-10 15:56:47,171 | sd | INFO | installer | Installing package: torch-directml 2023-11-10 15:56:47,172 | sd | DEBUG | installer | Running pip: install --upgrade torch-directml 2023-11-10 15:57:24,784 | sd | DEBUG | installer | Package not found: onnxruntime-directml 2023-11-10 15:57:24,784 | sd | INFO | installer | Installing package: onnxruntime-directml 2023-11-10 15:57:24,785 | sd | DEBUG | installer | Running pip: install --upgrade onnxruntime-directml 2023-11-10 15:57:28,445 | sd | DEBUG | installer | Package not found: torch 2023-11-10 15:57:28,446 | sd | DEBUG | installer | Package not found: torchvision 2023-11-10 15:57:28,446 | sd | INFO | installer | Installing package: torch-directml 2023-11-10 15:57:28,447 | sd | DEBUG | installer | Running pip: install --upgrade torch-directml 2023-11-10 15:57:29,626 | sd | WARNING | installer | Modified files: ['webui.bat'] 2023-11-10 15:57:29,667 | sd | DEBUG | installer | Repository update time: Fri Nov 10 15:19:50 2023 2023-11-10 15:57:29,667 | sd | DEBUG | installer | Previous setup time: Fri Nov 10 15:22:55 2023 2023-11-10 15:57:29,667 | sd | INFO | installer | Extensions: disabled=[] 2023-11-10 15:57:29,668 | sd | INFO | installer | Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 2023-11-10 15:57:29,675 | sd | INFO | installer | Extensions: enabled=[] extensions 2023-11-10 15:57:29,677 | sd | DEBUG | installer | Latest extensions time: Fri Nov 10 15:22:35 2023 2023-11-10 15:57:29,677 | sd | DEBUG | installer | Timestamps: version:1699625990 setup:1699626175 extension:1699626155 2023-11-10 15:57:29,677 | sd | INFO | launch | Startup: quick launch 2023-11-10 15:57:29,678 | sd | INFO | installer | Verifying requirements 2023-11-10 15:57:29,683 | sd | DEBUG | installer | Package not found: addict 2023-11-10 15:57:29,684 | sd | INFO | installer | Installing package: addict 2023-11-10 15:57:29,685 | sd | DEBUG | installer | Running pip: install --upgrade addict 2023-11-10 15:57:30,529 | sd | DEBUG | installer | Package not found: aenum 2023-11-10 15:57:30,529 | sd | INFO | installer | Installing package: aenum 2023-11-10 15:57:30,530 | sd | DEBUG | installer | Running pip: install --upgrade aenum 2023-11-10 15:57:31,636 | sd | DEBUG | installer | Package not found: aiohttp 2023-11-10 15:57:31,637 | sd | INFO | installer | Installing package: aiohttp 2023-11-10 15:57:31,638 | sd | DEBUG | installer | Running pip: install --upgrade aiohttp 2023-11-10 15:57:34,727 | sd | DEBUG | installer | Package not found: anyio 2023-11-10 15:57:34,727 | sd | INFO | installer | Installing package: anyio 2023-11-10 15:57:34,728 | sd | DEBUG | installer | Running pip: install --upgrade anyio 2023-11-10 15:57:36,237 | sd | DEBUG | installer | Package not found: appdirs 2023-11-10 15:57:36,238 | sd | INFO | installer | Installing package: appdirs 2023-11-10 15:57:36,239 | sd | DEBUG | installer | Running pip: install --upgrade appdirs 2023-11-10 15:57:37,131 | sd | DEBUG | installer | Package not found: astunparse 2023-11-10 15:57:37,131 | sd | INFO | installer | Installing package: astunparse 2023-11-10 15:57:37,133 | sd | DEBUG | installer | Running pip: install --upgrade astunparse 2023-11-10 15:57:38,460 | sd | DEBUG | installer | Package not found: blendmodes 2023-11-10 15:57:38,460 | sd | INFO | installer | Installing package: blendmodes 2023-11-10 15:57:38,462 | sd | DEBUG | installer | Running pip: install --upgrade blendmodes 2023-11-10 15:57:39,492 | sd | DEBUG | installer | Package not found: clean-fid 2023-11-10 15:57:39,492 | sd | INFO | installer | Installing package: clean-fid 2023-11-10 15:57:39,493 | sd | DEBUG | installer | Running pip: install --upgrade clean-fid 2023-11-10 15:57:51,415 | sd | DEBUG | installer | Package not found: easydev 2023-11-10 15:57:51,415 | sd | INFO | installer | Installing package: easydev 2023-11-10 15:57:51,416 | sd | DEBUG | installer | Running pip: install --upgrade easydev 2023-11-10 15:57:54,671 | sd | DEBUG | installer | Package not found: extcolors 2023-11-10 15:57:54,671 | sd | INFO | installer | Installing package: extcolors 2023-11-10 15:57:54,672 | sd | DEBUG | installer | Running pip: install --upgrade extcolors 2023-11-10 15:57:55,746 | sd | DEBUG | installer | Package not found: facexlib 2023-11-10 15:57:55,747 | sd | INFO | installer | Installing package: facexlib 2023-11-10 15:57:55,748 | sd | DEBUG | installer | Running pip: install --upgrade facexlib 2023-11-10 15:58:16,672 | sd | DEBUG | installer | Package not found: filetype 2023-11-10 15:58:16,672 | sd | INFO | installer | Installing package: filetype 2023-11-10 15:58:16,673 | sd | DEBUG | installer | Running pip: install --upgrade filetype 2023-11-10 15:58:17,955 | sd | DEBUG | installer | Package not found: future 2023-11-10 15:58:17,955 | sd | INFO | installer | Installing package: future 2023-11-10 15:58:17,957 | sd | DEBUG | installer | Running pip: install --upgrade future 2023-11-10 15:58:24,011 | sd | DEBUG | installer | Package not found: gdown 2023-11-10 15:58:24,011 | sd | INFO | installer | Installing package: gdown 2023-11-10 15:58:24,012 | sd | DEBUG | installer | Running pip: install --upgrade gdown 2023-11-10 15:58:25,769 | sd | DEBUG | installer | Package not found: gfpgan 2023-11-10 15:58:25,769 | sd | INFO | installer | Installing package: gfpgan 2023-11-10 15:58:25,770 | sd | DEBUG | installer | Running pip: install --upgrade gfpgan 2023-11-10 15:58:49,445 | sd | DEBUG | installer | Package not found: GitPython 2023-11-10 15:58:49,445 | sd | INFO | installer | Installing package: GitPython 2023-11-10 15:58:49,446 | sd | DEBUG | installer | Running pip: install --upgrade GitPython 2023-11-10 15:58:51,650 | sd | DEBUG | installer | Package not found: httpcore 2023-11-10 15:58:51,650 | sd | INFO | installer | Installing package: httpcore 2023-11-10 15:58:51,652 | sd | DEBUG | installer | Running pip: install --upgrade httpcore 2023-11-10 15:58:53,706 | sd | DEBUG | installer | Package not found: inflection 2023-11-10 15:58:53,706 | sd | INFO | installer | Installing package: inflection 2023-11-10 15:58:53,707 | sd | DEBUG | installer | Running pip: install --upgrade inflection 2023-11-10 15:58:55,144 | sd | DEBUG | installer | Package not found: jsonmerge 2023-11-10 15:58:55,144 | sd | INFO | installer | Installing package: jsonmerge 2023-11-10 15:58:55,145 | sd | DEBUG | installer | Running pip: install --upgrade jsonmerge 2023-11-10 15:58:57,684 | sd | DEBUG | installer | Package not found: kornia 2023-11-10 15:58:57,684 | sd | INFO | installer | Installing package: kornia 2023-11-10 15:58:57,685 | sd | DEBUG | installer | Running pip: install --upgrade kornia 2023-11-10 15:59:01,923 | sd | DEBUG | installer | Package not found: lark 2023-11-10 15:59:01,923 | sd | INFO | installer | Installing package: lark 2023-11-10 15:59:01,924 | sd | DEBUG | installer | Running pip: install --upgrade lark 2023-11-10 15:59:03,585 | sd | DEBUG | installer | Package not found: lmdb 2023-11-10 15:59:03,585 | sd | INFO | installer | Installing package: lmdb 2023-11-10 15:59:03,586 | sd | DEBUG | installer | Running pip: install --upgrade lmdb 2023-11-10 15:59:04,967 | sd | DEBUG | installer | Package not found: lpips 2023-11-10 15:59:04,967 | sd | INFO | installer | Installing package: lpips 2023-11-10 15:59:04,968 | sd | DEBUG | installer | Running pip: install --upgrade lpips 2023-11-10 15:59:06,366 | sd | DEBUG | installer | Package not found: omegaconf 2023-11-10 15:59:06,366 | sd | INFO | installer | Installing package: omegaconf 2023-11-10 15:59:06,368 | sd | DEBUG | installer | Running pip: install --upgrade omegaconf 2023-11-10 15:59:10,312 | sd | DEBUG | installer | Package not found: open-clip-torch 2023-11-10 15:59:10,312 | sd | INFO | installer | Installing package: open-clip-torch 2023-11-10 15:59:10,313 | sd | DEBUG | installer | Running pip: install --upgrade open-clip-torch 2023-11-10 15:59:17,725 | sd | DEBUG | installer | Package not found: opencv-contrib-python-headless 2023-11-10 15:59:17,725 | sd | INFO | installer | Installing package: opencv-contrib-python-headless 2023-11-10 15:59:17,726 | sd | DEBUG | installer | Running pip: install --upgrade opencv-contrib-python-headless 2023-11-10 15:59:20,616 | sd | DEBUG | installer | Package not found: piexif 2023-11-10 15:59:20,616 | sd | INFO | installer | Installing package: piexif 2023-11-10 15:59:20,617 | sd | DEBUG | installer | Running pip: install --upgrade piexif 2023-11-10 15:59:22,279 | sd | DEBUG | installer | Package not found: psutil 2023-11-10 15:59:22,279 | sd | INFO | installer | Installing package: psutil 2023-11-10 15:59:22,280 | sd | DEBUG | installer | Running pip: install --upgrade psutil 2023-11-10 15:59:24,326 | sd | DEBUG | installer | Package not found: pyyaml 2023-11-10 15:59:24,326 | sd | INFO | installer | Installing package: pyyaml 2023-11-10 15:59:24,327 | sd | DEBUG | installer | Running pip: install --upgrade pyyaml 2023-11-10 15:59:25,909 | sd | DEBUG | installer | Package not found: resize-right 2023-11-10 15:59:25,909 | sd | INFO | installer | Installing package: resize-right 2023-11-10 15:59:25,910 | sd | DEBUG | installer | Running pip: install --upgrade resize-right 2023-11-10 15:59:27,578 | sd | DEBUG | installer | Package not found: rich 2023-11-10 15:59:27,578 | sd | INFO | installer | Installing package: rich 2023-11-10 15:59:27,580 | sd | DEBUG | installer | Running pip: install --upgrade rich 2023-11-10 15:59:29,254 | sd | DEBUG | installer | Package not found: safetensors 2023-11-10 15:59:29,254 | sd | INFO | installer | Installing package: safetensors 2023-11-10 15:59:29,255 | sd | DEBUG | installer | Running pip: install --upgrade safetensors 2023-11-10 15:59:30,870 | sd | DEBUG | installer | Package not found: scipy 2023-11-10 15:59:30,870 | sd | INFO | installer | Installing package: scipy 2023-11-10 15:59:30,872 | sd | DEBUG | installer | Running pip: install --upgrade scipy 2023-11-10 15:59:32,507 | sd | DEBUG | installer | Package not found: tb_nightly 2023-11-10 15:59:32,507 | sd | INFO | installer | Installing package: tb_nightly 2023-11-10 15:59:32,508 | sd | DEBUG | installer | Running pip: install --upgrade tb_nightly 2023-11-10 15:59:34,605 | sd | DEBUG | installer | Package not found: toml 2023-11-10 15:59:34,605 | sd | INFO | installer | Installing package: toml 2023-11-10 15:59:34,607 | sd | DEBUG | installer | Running pip: install --upgrade toml 2023-11-10 15:59:36,222 | sd | DEBUG | installer | Package not found: torchdiffeq 2023-11-10 15:59:36,222 | sd | INFO | installer | Installing package: torchdiffeq 2023-11-10 15:59:36,223 | sd | DEBUG | installer | Running pip: install --upgrade torchdiffeq 2023-11-10 15:59:37,977 | sd | DEBUG | installer | Package not found: voluptuous 2023-11-10 15:59:37,977 | sd | INFO | installer | Installing package: voluptuous 2023-11-10 15:59:37,978 | sd | DEBUG | installer | Running pip: install --upgrade voluptuous 2023-11-10 15:59:39,623 | sd | DEBUG | installer | Package not found: yapf 2023-11-10 15:59:39,623 | sd | INFO | installer | Installing package: yapf 2023-11-10 15:59:39,624 | sd | DEBUG | installer | Running pip: install --upgrade yapf 2023-11-10 15:59:41,198 | sd | DEBUG | installer | Package not found: scikit-image 2023-11-10 15:59:41,199 | sd | INFO | installer | Installing package: scikit-image 2023-11-10 15:59:41,200 | sd | DEBUG | installer | Running pip: install --upgrade scikit-image 2023-11-10 15:59:42,834 | sd | DEBUG | installer | Package not found: basicsr 2023-11-10 15:59:42,835 | sd | INFO | installer | Installing package: basicsr 2023-11-10 15:59:42,836 | sd | DEBUG | installer | Running pip: install --upgrade basicsr 2023-11-10 15:59:44,505 | sd | DEBUG | installer | Package not found: fasteners 2023-11-10 15:59:44,505 | sd | INFO | installer | Installing package: fasteners 2023-11-10 15:59:44,506 | sd | DEBUG | installer | Running pip: install --upgrade fasteners 2023-11-10 15:59:46,127 | sd | DEBUG | installer | Package not found: dctorch 2023-11-10 15:59:46,127 | sd | INFO | installer | Installing package: dctorch 2023-11-10 15:59:46,128 | sd | DEBUG | installer | Running pip: install --upgrade dctorch 2023-11-10 15:59:47,794 | sd | DEBUG | installer | Package not found: httpx 2023-11-10 15:59:47,794 | sd | INFO | installer | Installing package: httpx==0.24.1 2023-11-10 15:59:47,796 | sd | DEBUG | installer | Running pip: install --upgrade httpx==0.24.1 2023-11-10 15:59:49,982 | sd | DEBUG | installer | Package not found: compel 2023-11-10 15:59:49,982 | sd | INFO | installer | Installing package: compel==2.0.2 2023-11-10 15:59:49,983 | sd | DEBUG | installer | Running pip: install --upgrade compel==2.0.2 2023-11-10 16:00:12,303 | sd | DEBUG | installer | Package not found: torchsde 2023-11-10 16:00:12,303 | sd | INFO | installer | Installing package: torchsde==0.2.6 2023-11-10 16:00:12,304 | sd | DEBUG | installer | Running pip: install --upgrade torchsde==0.2.6 2023-11-10 16:00:14,713 | sd | DEBUG | installer | Package not found: clip-interrogator 2023-11-10 16:00:14,714 | sd | INFO | installer | Installing package: clip-interrogator==0.6.0 2023-11-10 16:00:14,715 | sd | DEBUG | installer | Running pip: install --upgrade clip-interrogator==0.6.0 2023-11-10 16:00:17,925 | sd | DEBUG | installer | Package not found: antlr4-python3-runtime 2023-11-10 16:00:17,925 | sd | INFO | installer | Installing package: antlr4-python3-runtime==4.9.3 2023-11-10 16:00:17,926 | sd | DEBUG | installer | Running pip: install --upgrade antlr4-python3-runtime==4.9.3 2023-11-10 16:00:20,223 | sd | DEBUG | installer | Package not found: requests 2023-11-10 16:00:20,224 | sd | INFO | installer | Installing package: requests==2.31.0 2023-11-10 16:00:20,226 | sd | DEBUG | installer | Running pip: install --upgrade requests==2.31.0 2023-11-10 16:00:22,550 | sd | DEBUG | installer | Package not found: tqdm 2023-11-10 16:00:22,550 | sd | INFO | installer | Installing package: tqdm==4.66.1 2023-11-10 16:00:22,552 | sd | DEBUG | installer | Running pip: install --upgrade tqdm==4.66.1 2023-11-10 16:00:24,765 | sd | DEBUG | installer | Package not found: accelerate 2023-11-10 16:00:24,766 | sd | INFO | installer | Installing package: accelerate==0.20.3 2023-11-10 16:00:24,767 | sd | DEBUG | installer | Running pip: install --upgrade accelerate==0.20.3 2023-11-10 16:00:27,767 | sd | DEBUG | installer | Package not found: opencv-python-headless 2023-11-10 16:00:27,767 | sd | INFO | installer | Installing package: opencv-python-headless==4.7.0.72 2023-11-10 16:00:27,768 | sd | DEBUG | installer | Running pip: install --upgrade opencv-python-headless==4.7.0.72 2023-11-10 16:00:30,973 | sd | DEBUG | installer | Package not found: diffusers 2023-11-10 16:00:30,973 | sd | INFO | installer | Installing package: diffusers==0.23.0 2023-11-10 16:00:30,974 | sd | DEBUG | installer | Running pip: install --upgrade diffusers==0.23.0 2023-11-10 16:00:33,299 | sd | DEBUG | installer | Package not found: einops 2023-11-10 16:00:33,300 | sd | INFO | installer | Installing package: einops==0.4.1 2023-11-10 16:00:33,301 | sd | DEBUG | installer | Running pip: install --upgrade einops==0.4.1 2023-11-10 16:00:35,622 | sd | DEBUG | installer | Package not found: gradio 2023-11-10 16:00:35,622 | sd | INFO | installer | Installing package: gradio==3.43.2 2023-11-10 16:00:35,623 | sd | DEBUG | installer | Running pip: install --upgrade gradio==3.43.2 2023-11-10 16:01:04,426 | sd | DEBUG | installer | Package not found: huggingface_hub 2023-11-10 16:01:04,426 | sd | INFO | installer | Installing package: huggingface_hub==0.18.0 2023-11-10 16:01:04,427 | sd | DEBUG | installer | Running pip: install --upgrade huggingface_hub==0.18.0 2023-11-10 16:01:07,894 | sd | DEBUG | installer | Package not found: numexpr 2023-11-10 16:01:07,894 | sd | INFO | installer | Installing package: numexpr==2.8.4 2023-11-10 16:01:07,895 | sd | DEBUG | installer | Running pip: install --upgrade numexpr==2.8.4 2023-11-10 16:01:10,636 | sd | DEBUG | installer | Package not found: numpy 2023-11-10 16:01:10,636 | sd | INFO | installer | Installing package: numpy==1.24.4 2023-11-10 16:01:10,638 | sd | DEBUG | installer | Running pip: install --upgrade numpy==1.24.4 2023-11-10 16:01:20,830 | sd | DEBUG | installer | Package not found: numba 2023-11-10 16:01:20,831 | sd | INFO | installer | Installing package: numba==0.57.1 2023-11-10 16:01:20,832 | sd | DEBUG | installer | Running pip: install --upgrade numba==0.57.1 2023-11-10 16:01:32,613 | sd | DEBUG | installer | Package not found: pandas 2023-11-10 16:01:32,613 | sd | INFO | installer | Installing package: pandas==1.5.3 2023-11-10 16:01:32,614 | sd | DEBUG | installer | Running pip: install --upgrade pandas==1.5.3 2023-11-10 16:01:49,858 | sd | DEBUG | installer | Package not found: protobuf 2023-11-10 16:01:49,858 | sd | INFO | installer | Installing package: protobuf==3.20.3 2023-11-10 16:01:49,860 | sd | DEBUG | installer | Running pip: install --upgrade protobuf==3.20.3 2023-11-10 16:01:53,204 | sd | DEBUG | installer | Package not found: pytorch_lightning 2023-11-10 16:01:53,204 | sd | INFO | installer | Installing package: pytorch_lightning==1.9.4 2023-11-10 16:01:53,205 | sd | DEBUG | installer | Running pip: install --upgrade pytorch_lightning==1.9.4 2023-11-10 16:02:01,029 | sd | DEBUG | installer | Package not found: transformers 2023-11-10 16:02:01,030 | sd | INFO | installer | Installing package: transformers==4.34.1 2023-11-10 16:02:01,031 | sd | DEBUG | installer | Running pip: install --upgrade transformers==4.34.1 2023-11-10 16:02:23,362 | sd | DEBUG | installer | Package not found: tomesd 2023-11-10 16:02:23,363 | sd | INFO | installer | Installing package: tomesd==0.1.3 2023-11-10 16:02:23,364 | sd | DEBUG | installer | Running pip: install --upgrade tomesd==0.1.3 2023-11-10 16:02:26,644 | sd | DEBUG | installer | Package not found: urllib3 2023-11-10 16:02:26,645 | sd | INFO | installer | Installing package: urllib3==1.26.15 2023-11-10 16:02:26,646 | sd | DEBUG | installer | Running pip: install --upgrade urllib3==1.26.15 2023-11-10 16:02:29,761 | sd | DEBUG | installer | Package not found: Pillow 2023-11-10 16:02:29,761 | sd | INFO | installer | Installing package: Pillow==9.5.0 2023-11-10 16:02:29,763 | sd | DEBUG | installer | Running pip: install --upgrade Pillow==9.5.0 2023-11-10 16:02:33,826 | sd | DEBUG | installer | Package not found: timm 2023-11-10 16:02:33,826 | sd | INFO | installer | Installing package: timm==0.9.7 2023-11-10 16:02:33,827 | sd | DEBUG | installer | Running pip: install --upgrade timm==0.9.7 2023-11-10 16:02:38,779 | sd | DEBUG | installer | Package not found: pydantic 2023-11-10 16:02:38,779 | sd | INFO | installer | Installing package: pydantic==1.10.13 2023-11-10 16:02:38,781 | sd | DEBUG | installer | Running pip: install --upgrade pydantic==1.10.13 2023-11-10 16:02:42,242 | sd | DEBUG | installer | Package not found: typing-extensions 2023-11-10 16:02:42,242 | sd | INFO | installer | Installing package: typing-extensions==4.8.0 2023-11-10 16:02:42,244 | sd | DEBUG | installer | Running pip: install --upgrade typing-extensions==4.8.0 2023-11-10 16:02:44,761 | sd | INFO | installer | Verifying packages 2023-11-10 16:02:44,762 | sd | DEBUG | installer | Package not found: clip 2023-11-10 16:02:44,762 | sd | INFO | installer | Installing package: git+https://github.com/openai/CLIP.git 2023-11-10 16:02:44,763 | sd | DEBUG | installer | Running pip: install --upgrade git+https://github.com/openai/CLIP.git 2023-11-10 16:02:51,586 | sd | DEBUG | installer | Package not found: invisible-watermark 2023-11-10 16:02:51,586 | sd | INFO | installer | Installing package: git+https://github.com/patrickvonplaten/invisible-watermark.git@remove_onnxruntime_depedency 2023-11-10 16:02:51,587 | sd | DEBUG | installer | Running pip: install --upgrade git+https://github.com/patrickvonplaten/invisible-watermark.git@remove_onnxruntime_depedency 2023-11-10 16:03:00,332 | sd | DEBUG | installer | Package not found: pi_heif 2023-11-10 16:03:00,332 | sd | INFO | installer | Installing package: pi-heif 2023-11-10 16:03:00,334 | sd | DEBUG | installer | Running pip: install --upgrade pi-heif 2023-11-10 16:03:03,455 | sd | DEBUG | installer | Package not found: tensorflow 2023-11-10 16:03:03,456 | sd | INFO | installer | Installing package: tensorflow==2.13.0 2023-11-10 16:03:03,457 | sd | DEBUG | installer | Running pip: install --upgrade tensorflow==2.13.0 2023-11-10 16:04:02,275 | sd | DEBUG | paths | Register paths 2023-11-10 16:04:02,277 | sd | INFO | installer | Extensions: disabled=[] 2023-11-10 16:04:02,278 | sd | INFO | installer | Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 2023-11-10 16:04:02,282 | sd | INFO | installer | Extensions: enabled=[] extensions 2023-11-10 16:04:02,291 | sd | INFO | installer | Extension preload: {'extensions-builtin': 0.0, 'extensions': 0.0} 2023-11-10 16:04:02,293 | sd | INFO | launch | Command line args: ['--use-directml'] use_directml=True 2023-11-10 16:09:08,803 | sd | INFO | launch | Starting SD.Next 2023-11-10 16:09:08,807 | sd | INFO | installer | Python 3.10.11 on Windows 2023-11-10 16:09:08,952 | sd | INFO | installer | Version: app=sd.next updated=2023-11-10 hash=eda2aa6d url=https://github.com/vladmandic/automatic.git/tree/master 2023-11-10 16:09:09,340 | sd | INFO | installer | Latest published version: f5987018c6c9a31fadecfcee44ff9704cbe2cbde 2023-11-10T15:06:07Z 2023-11-10 16:09:09,347 | sd | INFO | launch | Platform: arch=AMD64 cpu=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel system=Windows release=Windows-10-10.0.19045-SP0 python=3.10.11 2023-11-10 16:09:09,349 | sd | DEBUG | installer | Setting environment tuning 2023-11-10 16:09:09,350 | sd | DEBUG | installer | Torch overrides: cuda=False rocm=False ipex=False diml=True openvino=False 2023-11-10 16:09:09,350 | sd | DEBUG | installer | Torch allowed: cuda=False rocm=False ipex=False diml=True openvino=False 2023-11-10 16:09:09,350 | sd | INFO | installer | Using DirectML Backend 2023-11-10 16:09:09,425 | sd | WARNING | installer | Modified files: ['webui.bat'] 2023-11-10 16:09:09,466 | sd | DEBUG | installer | Repository update time: Fri Nov 10 15:19:50 2023 2023-11-10 16:09:09,466 | sd | DEBUG | installer | Previous setup time: Fri Nov 10 15:22:55 2023 2023-11-10 16:09:09,466 | sd | INFO | installer | Extensions: disabled=[] 2023-11-10 16:09:09,467 | sd | INFO | installer | Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 2023-11-10 16:09:09,471 | sd | INFO | installer | Extensions: enabled=[] extensions 2023-11-10 16:09:09,473 | sd | DEBUG | installer | Latest extensions time: Fri Nov 10 15:22:35 2023 2023-11-10 16:09:09,473 | sd | DEBUG | installer | Timestamps: version:1699625990 setup:1699626175 extension:1699626155 2023-11-10 16:09:09,473 | sd | INFO | launch | Startup: quick launch 2023-11-10 16:09:09,474 | sd | INFO | installer | Verifying requirements 2023-11-10 16:09:09,489 | sd | WARNING | installer | Package wrong version: huggingface_hub 0.17.3 required 0.18.0 2023-11-10 16:09:09,490 | sd | INFO | installer | Installing package: huggingface_hub==0.18.0 2023-11-10 16:09:09,491 | sd | DEBUG | installer | Running pip: install --upgrade huggingface_hub==0.18.0 2023-11-10 16:09:12,978 | sd | WARNING | installer | Package wrong version: numpy 1.24.3 required 1.24.4 2023-11-10 16:09:12,980 | sd | INFO | installer | Installing package: numpy==1.24.4 2023-11-10 16:09:12,981 | sd | DEBUG | installer | Running pip: install --upgrade numpy==1.24.4 2023-11-10 16:09:21,018 | sd | WARNING | installer | Package wrong version: typing-extensions 4.5.0 required 4.8.0 2023-11-10 16:09:21,020 | sd | INFO | installer | Installing package: typing-extensions==4.8.0 2023-11-10 16:09:21,021 | sd | DEBUG | installer | Running pip: install --upgrade typing-extensions==4.8.0 2023-11-10 16:09:24,528 | sd | INFO | installer | Verifying packages 2023-11-10 16:09:24,530 | sd | DEBUG | paths | Register paths 2023-11-10 16:09:24,531 | sd | INFO | installer | Extensions: disabled=[] 2023-11-10 16:09:24,532 | sd | INFO | installer | Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 2023-11-10 16:09:24,536 | sd | INFO | installer | Extensions: enabled=[] extensions 2023-11-10 16:09:24,543 | sd | INFO | installer | Extension preload: {'extensions-builtin': 0.0, 'extensions': 0.0} 2023-11-10 16:09:24,545 | sd | INFO | launch | Command line args: ['--use-directml'] use_directml=True 2023-11-10 16:09:30,944 | sd | INFO | loader | Load packages: torch=2.0.0+cpu diffusers=0.23.0 gradio=3.43.2 2023-11-10 16:09:32,534 | sd | INFO | shared | Engine: backend=Backend.DIFFUSERS compute=directml mode=no_grad device=privateuseone:0 cross-optimization="Sub-quadratic" 2023-11-10 16:09:32,744 | sd | INFO | shared | Device: device=AMD Radeon RX 7900 XTX n=2 directml=0.2.0.dev230426 2023-11-10 16:09:34,512 | sd | INFO | sd_vae | Available VAEs: path="models\VAE" items=1 2023-11-10 16:09:34,514 | sd | INFO | shared | Disabling uncompatible extensions: backend=Backend.DIFFUSERS ['sd-webui-controlnet', 'multidiffusion-upscaler-for-automatic1111', 'a1111-sd-webui-lycoris'] 2023-11-10 16:09:34,526 | sd | INFO | sd_models | Available models: path="models\Stable-diffusion" items=2 time=0.01 2023-11-10 16:09:37,112 | sd | ERROR | errors | Module load: extensions-builtin\sd-webui-agent-scheduler\scripts\task_scheduler.py: ModuleNotFoundError 2023-11-10 16:09:37,321 | sd | INFO | script_loading | Extension: script='extensions-builtin\stable-diffusion-webui-images-browser\scripts\image_browser.py' Image Browser: send2trash is not installed. recycle bin cannot be used. 2023-11-10 16:09:37,340 | sd | INFO | script_loading | Extension: script='extensions-builtin\stable-diffusion-webui-rembg\scripts\postprocessing_rembg.py' Rembg load failed: No module named 'rembg' 2023-11-10 16:09:37,341 | sd | INFO | webui | Extensions time: 2.07 { automatic=0.08 clip-interrogator-ext=1.08 Lora=0.37 sd-extension-chainner=0.13 sd-extension-system-info=0.07 sd-webui-agent-scheduler=0.18 stable-diffusion-webui-images-browser=0.14 } 2023-11-10 16:09:38,266 | sd | INFO | theme | Load UI theme: name="black-teal" style=Auto base=style.css 2023-11-10 16:09:40,469 | sd | INFO | webui | Local URL: http://127.0.0.1:7860/ 2023-11-10 16:09:40,470 | sd | INFO | middleware | Initializing middleware 2023-11-10 16:09:40,668 | sd | INFO | webui | Startup time: 16.12 { torch=5.52 gradio=0.83 libraries=3.49 vae=0.08 extensions=2.07 face-restore=0.75 upscalers=0.19 extra-networks=0.58 ui-extra-networks=0.23 ui-img2img=0.06 ui-settings=0.14 ui-extensions=1.28 ui-defaults=0.29 launch=0.26 api=0.13 app-started=0.07 } 2023-11-10 16:11:33,414 | sd | INFO | webui | Exiting 2023-11-10 16:11:38,410 | sd | INFO | launch | Starting SD.Next 2023-11-10 16:11:38,415 | sd | INFO | installer | Python 3.10.11 on Windows 2023-11-10 16:11:38,566 | sd | INFO | installer | Version: app=sd.next updated=2023-11-10 hash=eda2aa6d url=https://github.com/vladmandic/automatic.git/tree/master 2023-11-10 16:11:38,962 | sd | INFO | installer | Latest published version: 056b04dcd0be9624b91a22033efe3cfe1bd0aa62 2023-11-10T15:10:41Z 2023-11-10 16:11:38,969 | sd | INFO | launch | Platform: arch=AMD64 cpu=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel system=Windows release=Windows-10-10.0.19045-SP0 python=3.10.11 2023-11-10 16:11:38,971 | sd | DEBUG | installer | Setting environment tuning 2023-11-10 16:11:38,972 | sd | DEBUG | installer | Torch overrides: cuda=False rocm=False ipex=False diml=True openvino=False 2023-11-10 16:11:38,972 | sd | DEBUG | installer | Torch allowed: cuda=False rocm=False ipex=False diml=True openvino=False 2023-11-10 16:11:38,972 | sd | INFO | installer | Using DirectML Backend 2023-11-10 16:11:39,045 | sd | WARNING | installer | Modified files: ['webui.bat'] 2023-11-10 16:11:39,087 | sd | DEBUG | installer | Repository update time: Fri Nov 10 15:19:50 2023 2023-11-10 16:11:39,088 | sd | DEBUG | installer | Previous setup time: Fri Nov 10 15:22:55 2023 2023-11-10 16:11:39,088 | sd | INFO | installer | Extensions: disabled=[] 2023-11-10 16:11:39,089 | sd | INFO | installer | Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 2023-11-10 16:11:39,094 | sd | INFO | installer | Extensions: enabled=[] extensions 2023-11-10 16:11:39,095 | sd | DEBUG | installer | Latest extensions time: Fri Nov 10 15:22:35 2023 2023-11-10 16:11:39,095 | sd | DEBUG | installer | Timestamps: version:1699625990 setup:1699626175 extension:1699626155 2023-11-10 16:11:39,096 | sd | INFO | launch | Startup: quick launch 2023-11-10 16:11:39,097 | sd | INFO | installer | Verifying requirements 2023-11-10 16:11:39,115 | sd | INFO | installer | Verifying packages 2023-11-10 16:11:39,118 | sd | DEBUG | paths | Register paths 2023-11-10 16:11:39,118 | sd | INFO | installer | Extensions: disabled=[] 2023-11-10 16:11:39,120 | sd | INFO | installer | Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 2023-11-10 16:11:39,124 | sd | INFO | installer | Extensions: enabled=[] extensions 2023-11-10 16:11:39,130 | sd | INFO | installer | Extension preload: {'extensions-builtin': 0.0, 'extensions': 0.0} 2023-11-10 16:11:39,132 | sd | INFO | launch | Command line args: ['--use-directml'] use_directml=True 2023-11-10 16:11:45,239 | sd | INFO | loader | Load packages: torch=2.0.0+cpu diffusers=0.23.0 gradio=3.43.2 2023-11-10 16:11:46,134 | sd | INFO | shared | Engine: backend=Backend.DIFFUSERS compute=directml mode=no_grad device=privateuseone:0 cross-optimization="Sub-quadratic" 2023-11-10 16:11:46,211 | sd | INFO | shared | Device: device=AMD Radeon RX 7900 XTX n=2 directml=0.2.0.dev230426 2023-11-10 16:11:46,777 | sd | INFO | sd_vae | Available VAEs: path="models\VAE" items=1 2023-11-10 16:11:46,779 | sd | INFO | shared | Disabling uncompatible extensions: backend=Backend.DIFFUSERS ['sd-webui-controlnet', 'multidiffusion-upscaler-for-automatic1111', 'a1111-sd-webui-lycoris'] 2023-11-10 16:11:46,782 | sd | INFO | sd_models | Available models: path="models\Stable-diffusion" items=2 time=0.00 2023-11-10 16:11:48,609 | sd | ERROR | errors | Module load: extensions-builtin\sd-webui-agent-scheduler\scripts\task_scheduler.py: ModuleNotFoundError 2023-11-10 16:11:48,801 | sd | INFO | script_loading | Extension: script='extensions-builtin\stable-diffusion-webui-images-browser\scripts\image_browser.py' Image Browser: send2trash is not installed. recycle bin cannot be used. 2023-11-10 16:11:48,807 | sd | INFO | script_loading | Extension: script='extensions-builtin\stable-diffusion-webui-rembg\scripts\postprocessing_rembg.py' Rembg load failed: No module named 'rembg' 2023-11-10 16:11:48,808 | sd | INFO | webui | Extensions time: 1.80 { clip-interrogator-ext=1.05 Lora=0.31 sd-extension-chainner=0.10 sd-extension-system-info=0.06 sd-webui-agent-scheduler=0.14 stable-diffusion-webui-images-browser=0.13 } 2023-11-10 16:11:49,086 | sd | INFO | theme | Load UI theme: name="black-teal" style=Auto base=style.css 2023-11-10 16:11:51,039 | sd | INFO | webui | Local URL: http://127.0.0.1:7860/ 2023-11-10 16:11:51,041 | sd | INFO | middleware | Initializing middleware 2023-11-10 16:11:51,234 | sd | INFO | webui | Startup time: 12.10 { torch=5.41 gradio=0.65 libraries=1.53 extensions=1.80 face-restore=0.22 upscalers=0.15 ui-extra-networks=0.17 ui-img2img=0.05 ui-settings=0.12 ui-extensions=1.16 ui-defaults=0.20 launch=0.24 api=0.12 app-started=0.07 } 2023-11-10 16:12:29,250 | sd | INFO | webui | Exiting 2023-11-10 16:14:12,743 | sd | INFO | launch | Starting SD.Next 2023-11-10 16:14:12,748 | sd | INFO | installer | Python 3.10.11 on Windows 2023-11-10 16:14:12,898 | sd | INFO | installer | Version: app=sd.next updated=2023-11-10 hash=eda2aa6d url=https://github.com/vladmandic/automatic.git/tree/master 2023-11-10 16:14:13,153 | sd | INFO | installer | Latest published version: 056b04dcd0be9624b91a22033efe3cfe1bd0aa62 2023-11-10T15:10:41Z 2023-11-10 16:14:13,160 | sd | INFO | launch | Platform: arch=AMD64 cpu=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel system=Windows release=Windows-10-10.0.19045-SP0 python=3.10.11 2023-11-10 16:14:13,162 | sd | DEBUG | installer | Setting environment tuning 2023-11-10 16:14:13,163 | sd | DEBUG | installer | Torch overrides: cuda=False rocm=False ipex=False diml=True openvino=False 2023-11-10 16:14:13,163 | sd | DEBUG | installer | Torch allowed: cuda=False rocm=False ipex=False diml=True openvino=False 2023-11-10 16:14:13,164 | sd | INFO | installer | Using DirectML Backend 2023-11-10 16:14:13,238 | sd | WARNING | installer | Modified files: ['webui.bat'] 2023-11-10 16:14:13,279 | sd | DEBUG | installer | Repository update time: Fri Nov 10 15:19:50 2023 2023-11-10 16:14:13,279 | sd | DEBUG | installer | Previous setup time: Fri Nov 10 15:22:55 2023 2023-11-10 16:14:13,279 | sd | INFO | installer | Extensions: disabled=[] 2023-11-10 16:14:13,281 | sd | INFO | installer | Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 2023-11-10 16:14:13,285 | sd | INFO | installer | Extensions: enabled=[] extensions 2023-11-10 16:14:13,287 | sd | DEBUG | installer | Latest extensions time: Fri Nov 10 15:22:35 2023 2023-11-10 16:14:13,287 | sd | DEBUG | installer | Timestamps: version:1699625990 setup:1699626175 extension:1699626155 2023-11-10 16:14:13,287 | sd | INFO | launch | Startup: quick launch 2023-11-10 16:14:13,288 | sd | INFO | installer | Verifying requirements 2023-11-10 16:14:13,305 | sd | INFO | installer | Verifying packages 2023-11-10 16:14:13,308 | sd | DEBUG | paths | Register paths 2023-11-10 16:14:13,308 | sd | INFO | installer | Extensions: disabled=[] 2023-11-10 16:14:13,310 | sd | INFO | installer | Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 2023-11-10 16:14:13,314 | sd | INFO | installer | Extensions: enabled=[] extensions 2023-11-10 16:14:13,320 | sd | INFO | installer | Extension preload: {'extensions-builtin': 0.0, 'extensions': 0.0} 2023-11-10 16:14:13,322 | sd | INFO | launch | Command line args: ['--use-directml'] use_directml=True 2023-11-10 16:14:19,420 | sd | INFO | loader | Load packages: torch=2.0.0+cpu diffusers=0.23.0 gradio=3.43.2 2023-11-10 16:14:20,306 | sd | INFO | shared | Engine: backend=Backend.DIFFUSERS compute=directml mode=no_grad device=privateuseone:0 cross-optimization="Sub-quadratic" 2023-11-10 16:14:20,374 | sd | INFO | shared | Device: device=AMD Radeon RX 7900 XTX n=2 directml=0.2.0.dev230426 2023-11-10 16:14:20,944 | sd | INFO | sd_vae | Available VAEs: path="models\VAE" items=1 2023-11-10 16:14:20,946 | sd | INFO | shared | Disabling uncompatible extensions: backend=Backend.DIFFUSERS ['sd-webui-controlnet', 'multidiffusion-upscaler-for-automatic1111', 'a1111-sd-webui-lycoris'] 2023-11-10 16:14:20,949 | sd | INFO | sd_models | Available models: path="models\Stable-diffusion" items=2 time=0.00 2023-11-10 16:14:23,245 | sd | INFO | script_loading | Extension: script='extensions-builtin\sd-webui-agent-scheduler\scripts\task_scheduler.py' Using sqlite file: extensions-builtin\sd-webui-agent-scheduler\task_scheduler.sqlite3 2023-11-10 16:14:23,379 | sd | INFO | script_loading | Extension: script='extensions-builtin\stable-diffusion-webui-images-browser\scripts\image_browser.py' Image Browser: send2trash is not installed. recycle bin cannot be used. 2023-11-10 16:14:23,384 | sd | INFO | script_loading | Extension: script='extensions-builtin\stable-diffusion-webui-rembg\scripts\postprocessing_rembg.py' Rembg load failed: No module named 'rembg' 2023-11-10 16:14:23,386 | sd | INFO | webui | Extensions time: 2.21 { clip-interrogator-ext=1.07 Lora=0.33 sd-extension-chainner=0.10 sd-extension-system-info=0.07 sd-webui-agent-scheduler=0.49 stable-diffusion-webui-images-browser=0.14 } 2023-11-10 16:14:23,644 | sd | INFO | theme | Load UI theme: name="black-teal" style=Auto base=style.css 2023-11-10 16:14:25,697 | sd | INFO | webui | Local URL: http://127.0.0.1:7860/ 2023-11-10 16:14:25,699 | sd | INFO | middleware | Initializing middleware 2023-11-10 16:14:26,133 | sd | INFO | task_runner | [AgentScheduler] Task queue is empty 2023-11-10 16:14:26,134 | sd | INFO | api | [AgentScheduler] Registering APIs 2023-11-10 16:14:26,276 | sd | INFO | webui | Startup time: 12.95 { torch=5.41 gradio=0.64 libraries=1.52 extensions=2.21 face-restore=0.22 upscalers=0.15 ui-extra-networks=0.17 ui-img2img=0.07 ui-settings=0.27 ui-extensions=1.06 ui-defaults=0.21 launch=0.25 api=0.13 app-started=0.45 } ```

Backend

Diffusers

Model

SD-XL

Acknowledgements

Acrivec commented 8 months ago

Then, starting it again updates packages what it just installed to newer versions, and then fails with ModuleNotFoundError: No module named 'sqlalchemy' on every next launch.

``` Code block collapsed, click to show `ModuleNotFoundError: No module named 'sqlalchemy'` ``` ``` ImportError: cannot import name 'Doc' from 'typing_extensions' (G:\Downloads\Shark\automatic\venv\lib\site-packages\typing_extensions.py) Press any key to continue . . . PS G:\Downloads\Shark\automatic> .\webui.bat --use-directml Using VENV: G:\Downloads\Shark\automatic\venv 16:09:08-803576 INFO Starting SD.Next 16:09:08-807575 INFO Python 3.10.11 on Windows 16:09:08-952576 INFO Version: app=sd.next updated=2023-11-10 hash=eda2aa6d url=https://github.com/vladmandic/automatic.git/tree/master 16:09:09-340090 INFO Latest published version: f5987018c6c9a31fadecfcee44ff9704cbe2cbde 2023-11-10T15:06:07Z 16:09:09-347088 INFO Platform: arch=AMD64 cpu=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel system=Windows release=Windows-10-10.0.19045-SP0 python=3.10.11 16:09:09-350087 INFO Using DirectML Backend 16:09:09-425090 WARNING Modified files: ['webui.bat'] 16:09:09-466088 INFO Extensions: disabled=[] 16:09:09-467088 INFO Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 16:09:09-471087 INFO Extensions: enabled=[] extensions 16:09:09-473088 INFO Startup: quick launch 16:09:09-474088 INFO Verifying requirements 16:09:09-489087 WARNING Package wrong version: huggingface_hub 0.17.3 required 0.18.0 16:09:09-490088 INFO Installing package: huggingface_hub==0.18.0 16:09:12-978141 WARNING Package wrong version: numpy 1.24.3 required 1.24.4 16:09:12-980141 INFO Installing package: numpy==1.24.4 16:09:21-018230 WARNING Package wrong version: typing-extensions 4.5.0 required 4.8.0 16:09:21-020230 INFO Installing package: typing-extensions==4.8.0 16:09:24-528689 INFO Verifying packages 16:09:24-531689 INFO Extensions: disabled=[] 16:09:24-532689 INFO Extensions: enabled=['clip-interrogator-ext', 'Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg'] extensions-builtin 16:09:24-536689 INFO Extensions: enabled=[] extensions 16:09:24-543689 INFO Extension preload: {'extensions-builtin': 0.0, 'extensions': 0.0} 16:09:24-545690 INFO Command line args: ['--use-directml'] use_directml=True 16:09:30-944982 INFO Load packages: torch=2.0.0+cpu diffusers=0.23.0 gradio=3.43.2 16:09:32-534984 INFO Engine: backend=Backend.DIFFUSERS compute=directml mode=no_grad device=privateuseone:0 cross-optimization="Sub-quadratic" 16:09:32-744979 INFO Device: device=AMD Radeon RX 7900 XTX n=2 directml=0.2.0.dev230426 16:09:34-512909 INFO Available VAEs: path="models\VAE" items=1 16:09:34-514909 INFO Disabling uncompatible extensions: backend=Backend.DIFFUSERS ['sd-webui-controlnet', 'multidiffusion-upscaler-for-automatic1111', 'a1111-sd-webui-lycoris'] 16:09:34-526910 INFO Available models: path="models\Stable-diffusion" items=2 time=0.01 16:09:37-112962 ERROR Module load: extensions-builtin\sd-webui-agent-scheduler\scripts\task_scheduler.py: ModuleNotFoundError ╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮ │ G:\Downloads\Shark\automatic\modules\script_loading.py:21 in load_module │ │ │ │ 20 │ │ │ with contextlib.redirect_stdout(io.StringIO()) as stdout: │ │ ❱ 21 │ │ │ │ module_spec.loader.exec_module(module) │ │ 22 │ │ │ setup_logging() # reset since scripts can hijaack logging │ │ in exec_module:883 │ │ in _call_with_frames_removed:241 │ │ │ │ G:\Downloads\Shark\automatic\extensions-builtin\sd-webui-agent-scheduler\scripts\task_scheduler.py:25 in │ │ │ │ 24 │ │ ❱ 25 from agent_scheduler.task_runner import TaskRunner, get_instance │ │ 26 from agent_scheduler.helpers import log, compare_components_with_ids, get_components_by_ │ │ │ │ G:\Downloads\Shark\automatic\extensions-builtin\sd-webui-agent-scheduler\agent_scheduler\task_runner.py:24 in │ │ │ │ │ │ 23 │ │ ❱ 24 from .db import TaskStatus, Task, task_manager │ │ 25 from .helpers import ( │ │ │ │ G:\Downloads\Shark\automatic\extensions-builtin\sd-webui-agent-scheduler\agent_scheduler\db\__init__.py:2 in │ │ │ │ │ │ 1 from pathlib import Path │ │ ❱ 2 from sqlalchemy import create_engine, inspect, text, String, Text │ │ 3 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ModuleNotFoundError: No module named 'sqlalchemy' 16:09:37-321961 INFO Extension: script='extensions-builtin\stable-diffusion-webui-images-browser\scripts\image_browser.py' Image Browser: send2trash is not installed. recycle bin cannot be used. 16:09:37-340961 INFO Extension: script='extensions-builtin\stable-diffusion-webui-rembg\scripts\postprocessing_rembg.py' Rembg load failed: No module named 'rembg' 16:09:37-341961 INFO Extensions time: 2.07 { automatic=0.08 clip-interrogator-ext=1.08 Lora=0.37 sd-extension-chainner=0.13 sd-extension-system-info=0.07 sd-webui-agent-scheduler=0.18 stable-diffusion-webui-images-browser=0.14 } 16:09:38-266960 INFO Load UI theme: name="black-teal" style=Auto base=style.css 16:09:40-469624 INFO Local URL: http://127.0.0.1:7860/ 16:09:40-470625 INFO Initializing middleware 16:09:40-668136 INFO Startup time: 16.12 { torch=5.52 gradio=0.83 libraries=3.49 vae=0.08 extensions=2.07 face-restore=0.75 upscalers=0.19 extra-networks=0.58 ui-extra-networks=0.23 ui-img2img=0.06 ui-settings=0.14 ui-extensions=1.28 ui-defaults=0.29 launch=0.26 api=0.13 app-started=0.07 } ```

Which I've fixed by installing sqlalchemy manually

``` Code block collapsed, click to show (venv) PS G:\Downloads\Shark\automatic\venv\Scripts> pip install sqlalchemy ``` ``` PS G:\Downloads\Shark\automatic\venv\Scripts> .\Activate.ps1 (venv) PS G:\Downloads\Shark\automatic\venv\Scripts> pip install sqlalchemy WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/sqlalchemy/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/sqlalchemy/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/sqlalchemy/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/sqlalchemy/ Collecting sqlalchemy Downloading SQLAlchemy-2.0.23-cp310-cp310-win_amd64.whl (2.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 9.4 MB/s eta 0:00:00 Collecting greenlet!=0.4.17 Downloading greenlet-3.0.1-cp310-cp310-win_amd64.whl (287 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 287.9/287.9 kB ? eta 0:00:00 Requirement already satisfied: typing-extensions>=4.2.0 in g:\downloads\shark\automatic\venv\lib\site-packages (from sqlalchemy) (4.8.0) Installing collected packages: greenlet, sqlalchemy Successfully installed greenlet-3.0.1 sqlalchemy-2.0.23 [notice] A new release of pip is available: 23.0.1 -> 23.3.1 [notice] To update, run: python3.10.exe -m pip install --upgrade pip ```
Acrivec commented 8 months ago

A side note: I had to break it to post + comment because the issue form kept yelling at me that body limit is 65536 characters. I've checked and the body characters were 32k characters.

Seems the log field is attached to body and counted together.

vladmandic commented 8 months ago

a bit chicken and the egg problem.

regarding typing_extension, its unfortunate, but two different packages have conficting version requirement, so it takes two startups for sdnext installer to resolve them. i've tried many things, but really not much i can do - python is simply horrible when it comes to version conflicts as there is no per-package requirements.

regarding sqlalchemy, it is a requirement from extension agent-scheduler. installing extension requirements is triggered by main installer if it detects any changes, but since previous setup completed, it though it doesn't have to re-run it (running extension installer every time is just too costly time-wise). but previous setup never got to that step correctly, so it ended up in a limbo.

if you force --upgrade, it will update everything and re-check requirements.