Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

didn't work #13

Open
mindplay-dk opened this issue Aug 4, 2023 · 4 comments
Open

didn't work #13

mindplay-dk opened this issue Aug 4, 2023 · 4 comments

Comments

@mindplay-dk
Copy link

hey,

you encouraged me to give this a try here, so I did. It didn't work - I entered the first command here and it failed.

Launching launch.py...
17:45:42-031882 INFO     Starting SD.Next
17:45:42-036493 INFO     Python 3.10.6 on Linux
17:45:42-038239 INFO     Skipping GIT operations
17:45:42-039791 INFO     Version:
17:45:42-042676 INFO     Intel OneAPI Toolkit detected
17:45:42-044822 INFO     Installing package: torch==2.0.1a0 torchvision==0.15.2a0
                         intel_extension_for_pytorch==2.0.110+xpu -f https://developer.intel.com/ipex-whl-stable-xpu
17:48:41-159027 INFO     No changes detected: Quick launch active
17:48:41-160457 INFO     Verifying requirements
17:48:41-163093 INFO     Installing package: addict
17:48:41-891537 INFO     Installing package: aenum
17:48:42-606051 INFO     Installing package: aiohttp
17:48:45-055956 INFO     Installing package: anyio
17:48:46-114340 INFO     Installing package: appdirs
17:48:46-737604 INFO     Installing package: astunparse
17:48:47-668054 INFO     Installing package: bitsandbytes
17:49:17-134169 INFO     Installing package: blendmodes
17:49:19-623322 INFO     Installing package: clean-fid
17:49:32-037774 INFO     Installing package: easydev
17:49:33-540713 INFO     Installing package: extcolors
17:49:34-653117 INFO     Installing package: facexlib
17:50:11-283699 INFO     Installing package: filetype
17:50:12-127719 INFO     Installing package: future
17:50:13-573161 INFO     Installing package: gdown
17:50:14-800365 INFO     Installing package: gfpgan
17:50:31-554151 INFO     Installing package: GitPython
17:50:32-781195 INFO     Installing package: httpcore
17:50:33-940099 INFO     Installing package: inflection
17:50:34-762986 INFO     Installing package: jsonmerge
17:50:36-643164 INFO     Installing package: kornia
17:50:38-012952 INFO     Installing package: lark
17:50:39-044988 INFO     Installing package: lmdb
17:50:39-813382 INFO     Installing package: lpips
17:50:40-800460 INFO     Installing package: omegaconf
17:50:42-316979 INFO     Installing package: open-clip-torch
17:50:47-757460 INFO     Installing package: opencv-contrib-python-headless
17:50:58-616624 INFO     Installing package: piexif
17:50:59-672878 INFO     Installing package: psutil
17:51:00-629555 INFO     Installing package: pyyaml
17:51:01-493347 INFO     Installing package: realesrgan
17:51:02-707861 INFO     Installing package: resize-right
17:51:03-745092 INFO     Installing package: rich
17:51:04-666600 INFO     Installing package: safetensors
17:51:05-580917 INFO     Installing package: scipy
17:51:06-576822 INFO     Installing package: tb_nightly
17:51:08-003138 INFO     Installing package: toml
17:51:09-020235 INFO     Installing package: torchdiffeq
17:51:10-197584 INFO     Installing package: torchsde
17:51:11-927625 INFO     Installing package: voluptuous
17:51:13-034827 INFO     Installing package: yapf
17:51:13-937020 INFO     Installing package: scikit-image
17:51:14-878892 INFO     Installing package: basicsr
17:51:15-978765 INFO     Installing package: compel
17:51:23-477372 INFO     Installing package: fasteners
17:51:24-760853 INFO     Installing package: typing-extensions==4.7.1
17:51:25-911756 INFO     Installing package: antlr4-python3-runtime==4.9.3
17:51:27-045211 INFO     Installing package: requests==2.31.0
17:51:28-211998 INFO     Installing package: tqdm==4.65.0
17:51:29-377517 INFO     Installing package: accelerate==0.20.3
17:51:30-808838 INFO     Installing package: opencv-python-headless==4.7.0.72
17:51:42-864761 INFO     Installing package: diffusers==0.19.3
17:51:44-023727 INFO     Installing package: einops==0.4.1
17:51:45-408915 INFO     Installing package: gradio==3.32.0
17:52:02-004945 INFO     Installing package: numexpr==2.8.4
17:52:03-766003 INFO     Installing package: numpy==1.23.5
17:52:09-469353 INFO     Installing package: numba==0.57.0
17:52:12-790380 INFO     Installing package: pandas==1.5.3
17:52:18-522535 INFO     Installing package: protobuf==3.20.3
17:52:19-935385 INFO     Installing package: pytorch_lightning==1.9.4
17:52:22-895511 INFO     Installing package: transformers==4.31.0
17:52:24-277019 INFO     Installing package: tomesd==0.1.3
17:52:25-881771 INFO     Installing package: urllib3==1.26.15
17:52:27-482967 INFO     Installing package: Pillow==9.5.0
17:52:29-033399 INFO     Installing package: timm==0.6.13
17:52:30-898966 INFO     Installing package: pydantic==1.10.11
17:52:33-233996 INFO     Disabled extensions: []
17:52:33-236958 INFO     Enabled extensions-builtin: ['a1111-sd-webui-lycoris', 'clip-interrogator-ext', 'LDSR', 'Lora',                         'multidiffusion-upscaler-for-automatic1111', 'ScuNET', 'sd-dynamic-thresholding',
                         'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet',
                         'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg', 'SwinIR']
17:52:33-272936 INFO     Enabled extensions: []
17:52:33-307098 ERROR    Module load: /sd-webui/extensions-builtin/LDSR/preload.py: AssertionError
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮│ /sd-webui/modules/script_loading.py:13 in load_module                                                                ││                                                                                                                      ││   12 │   try:                                                                                                        ││ ❱ 13 │   │   module_spec.loader.exec_module(module)                                                                  ││   14 │   except Exception as e:                                                                                      ││ in exec_module:883                                                                                                   ││                                                                                                                      ││                                               ... 1 frames hidden ...                                                ││                                                                                                                      ││ /sd-webui/extensions-builtin/LDSR/preload.py:2 in <module>                                                           ││                                                                                                                      ││   1 import os                                                                                                        ││ ❱ 2 from modules import paths                                                                                        ││   3                                                                                                                  ││                                                                                                                      ││ /sd-webui/modules/paths.py:27 in <module>                                                                            ││                                                                                                                      ││    26                                                                                                                ││ ❱  27 assert sd_path is not None, f"Couldn't find Stable Diffusion in any of: {possible_sd_pat                       ││    28                                                                                                                │╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯AssertionError: Couldn't find Stable Diffusion in any of: ['/sd-webui/repositories/stable-diffusion-stability-ai', '.',
'/']
17:52:33-359849 ERROR    Module load: /sd-webui/extensions-builtin/Lora/preload.py: AssertionError
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮│ /sd-webui/modules/script_loading.py:13 in load_module                                                                ││                                                                                                                      ││   12 │   try:                                                                                                        ││ ❱ 13 │   │   module_spec.loader.exec_module(module)                                                                  ││   14 │   except Exception as e:                                                                                      ││ in exec_module:883                                                                                                   ││                                                                                                                      ││                                               ... 1 frames hidden ...                                                ││                                                                                                                      ││ /sd-webui/extensions-builtin/Lora/preload.py:2 in <module>                                                           ││                                                                                                                      ││   1 import os                                                                                                        ││ ❱ 2 from modules import paths                                                                                        ││   3                                                                                                                  ││                                                                                                                      ││ /sd-webui/modules/paths.py:27 in <module>                                                                            ││                                                                                                                      ││    26                                                                                                                ││ ❱  27 assert sd_path is not None, f"Couldn't find Stable Diffusion in any of: {possible_sd_pat                       ││    28                                                                                                                │╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯AssertionError: Couldn't find Stable Diffusion in any of: ['/sd-webui/repositories/stable-diffusion-stability-ai', '.',
'/']
17:52:33-387240 ERROR    Module load: /sd-webui/extensions-builtin/ScuNET/preload.py: AssertionError
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮│ /sd-webui/modules/script_loading.py:13 in load_module                                                                ││                                                                                                                      ││   12 │   try:                                                                                                        ││ ❱ 13 │   │   module_spec.loader.exec_module(module)                                                                  ││   14 │   except Exception as e:                                                                                      ││ in exec_module:883                                                                                                   ││                                                                                                                      ││                                               ... 1 frames hidden ...                                                ││                                                                                                                      ││ /sd-webui/extensions-builtin/ScuNET/preload.py:2 in <module>                                                         ││                                                                                                                      ││   1 import os                                                                                                        ││ ❱ 2 from modules import paths                                                                                        ││   3                                                                                                                  ││                                                                                                                      ││ /sd-webui/modules/paths.py:27 in <module>                                                                            ││                                                                                                                      ││    26                                                                                                                ││ ❱  27 assert sd_path is not None, f"Couldn't find Stable Diffusion in any of: {possible_sd_pat                       ││    28                                                                                                                │╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯AssertionError: Couldn't find Stable Diffusion in any of: ['/sd-webui/repositories/stable-diffusion-stability-ai', '.',
'/']
17:52:33-417116 ERROR    Module load: /sd-webui/extensions-builtin/SwinIR/preload.py: AssertionError
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮│ /sd-webui/modules/script_loading.py:13 in load_module                                                                ││                                                                                                                      ││   12 │   try:                                                                                                        ││ ❱ 13 │   │   module_spec.loader.exec_module(module)                                                                  ││   14 │   except Exception as e:                                                                                      ││ in exec_module:883                                                                                                   ││                                                                                                                      ││                                               ... 1 frames hidden ...                                                ││                                                                                                                      ││ /sd-webui/extensions-builtin/SwinIR/preload.py:2 in <module>                                                         ││                                                                                                                      ││   1 import os                                                                                                        ││ ❱ 2 from modules import paths                                                                                        ││   3                                                                                                                  ││                                                                                                                      ││ /sd-webui/modules/paths.py:27 in <module>                                                                            ││                                                                                                                      ││    26                                                                                                                ││ ❱  27 assert sd_path is not None, f"Couldn't find Stable Diffusion in any of: {possible_sd_pat                       ││    28                                                                                                                │╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯AssertionError: Couldn't find Stable Diffusion in any of: ['/sd-webui/repositories/stable-diffusion-stability-ai', '.',
'/']
17:52:33-431430 INFO     Extension preload: 0.1s /sd-webui/extensions-builtin
17:52:33-434085 INFO     Extension preload: 0.0s /sd-webui/extensions
17:52:33-443362 INFO     Server arguments: ['-f', '--use-ipex', '--listen', '--insecure', '--skip-git']
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮│ /sd-webui/launch.py:192 in <module>                                                                                  ││                                                                                                                      ││   191                                                                                                                ││ ❱ 192     instance = start_server(immediate=True, server=None)                                                       ││   193     while True:                                                                                                ││                                                                                                                      ││ /sd-webui/launch.py:136 in start_server                                                                              ││                                                                                                                      ││   135     installer.log.info(f"Server arguments: {sys.argv[1:]}")                                                    ││ ❱ 136     module_spec.loader.exec_module(server)                                                                     ││   137     if args.test:                                                                                              ││ in exec_module:883                                                                                                   ││ in _call_with_frames_removed:241                                                                                     ││                                                                                                                      ││ /sd-webui/webui.py:12 in <module>                                                                                    ││                                                                                                                      ││    11 from threading import Thread                                                                                   ││ ❱  12 from modules import timer, errors, paths # pylint: disable=unused-import                                       ││    13                                                                                                                ││                                                                                                                      ││ /sd-webui/modules/paths.py:27 in <module>                                                                            ││                                                                                                                      ││    26                                                                                                                ││ ❱  27 assert sd_path is not None, f"Couldn't find Stable Diffusion in any of: {possible_sd_pat                       ││    28                                                                                                                │╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯AssertionError: Couldn't find Stable Diffusion in any of: ['/sd-webui/repositories/stable-diffusion-stability-ai', '.',
'/']

For some reason, I don't seem to be able to properly copy/paste the error messages - here's a screenshot:

image

This Windows 11 install is two days old - I only just installed Docker Desktop and made sure it's using WSL 2. It's all still fairly vanilla - although I did make the mistake of opting into the Windows 11 dev channel, which now I can't seem to get out of... might need to reinstall my system again. 🙄

@mindplay-dk
Copy link
Author

Looks like native support is almost here though 😄

@Nuullll
Copy link
Owner

Nuullll commented Aug 6, 2023

Thanks for reporting. IPEX-XPU 2.0 wasn't released when I first wrote the message here. Now SD.Next uplifted the ipex dependency to xpu 2.0, so the latest SD.Next codebase isn't compatible with the docker image v0.5 (with oneAPI 2023.1, while ipex xpu 2.0 requires oneAPI 2023.2).

I'm working on the oneAPI 2023.2 image right now.

BTW, a few folks have tried native windows setup but got no luck. I haven't had the chance to try it yet.

@Nuullll
Copy link
Owner

Nuullll commented Aug 6, 2023

v0.6 image released, compatible with ipex-xpu-2.0, but it appears to be 10% slower than ipex-xpu-1.13 in WSL.

I just realized that the default --skip-git parameter might be guilty of your error, now it's removed in v0.6.

@Disty0
Copy link
Contributor

Disty0 commented Aug 6, 2023

Original backend is slower with FP16 but it's faster with BF16.
Diffusers backend is the reverse (faster with FP16, slower with BF16).

And ipexrun doesn't work on WSL anymore so we had to disable it on WSL.
Edit: Switched to taskset mode so it should work now.
Also ipexrun will activate with --use-ipex so ipexrun is optional now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants