Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: webui fails to start with Torch is not able to use GPU error #8222

Closed
1 task done
Code4SAFrankie opened this issue Mar 1, 2023 · 29 comments
Closed
1 task done
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@Code4SAFrankie
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Failed to start webui. Was working this morning, this afternoon this happened. Nothing changed except for git pull from automatic1111 repository and clicked check for updates on extensions.

Steps to reproduce the problem

  1. Go to webui directory
  2. run webui-user.bat

What should have happened?

Webui should have started as always

Commit where the problem happens

Commit hash: cca6e52

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

No

List of extensions

controlnet
dreambooth
instruct2pix

Console logs

D:\sdw>webui-user.bat
warning: redirecting to https://gitgud.io/AUTOMATIC1111/stable-diffusion-webui.git/
Already up to date.
venv "D:\sdw\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: cca6e5212ddd77be7efdce2c27e475d3af436d85
Traceback (most recent call last):
  File "D:\sdw\launch.py", line 306, in <module>
    prepare_environment()
  File "D:\sdw\launch.py", line 221, in prepare_environment
    run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
  File "D:\sdw\launch.py", line 88, in run_python
    return run(f'"{python}" -c "{code}"', desc, errdesc)
  File "D:\sdw\launch.py", line 64, in run
    raise RuntimeError(message)
RuntimeError: Error running command.
Command: "D:\sdw\venv\Scripts\python.exe" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
  File "<string>", line 1, in <module>
AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Additional information

Was working this morning

@Code4SAFrankie Code4SAFrankie added the bug-report Report of a bug, yet to be confirmed label Mar 1, 2023
@Code4SAFrankie Code4SAFrankie changed the title [Bug]: [Bug]: webui fails to start with Torch is not able to use GPU error Mar 1, 2023
@econundrum
Copy link

I've just started getting this as well was working yesterday

@econundrum
Copy link

I had these extensions too
controlnet
dreambooth
and had just updated them

@AbyszOne
Copy link

AbyszOne commented Mar 1, 2023

Same here. 😌

@econundrum
Copy link

You can get it to start with --skip-torch-cuda-test but it won't produce anything because it can't access cuda

@Code4SAFrankie
Copy link
Author

Started it with --skip-torch-cuda-test and clicked update extensions and got this error:

D:\sdw>webui-user.bat
warning: redirecting to https://gitgud.io/AUTOMATIC1111/stable-diffusion-webui.git/
Already up to date.
venv "D:\sdw\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: cca6e5212ddd77be7efdce2c27e475d3af436d85
Installing requirements for Web UI


Ignoring tensorflow-macos: markers 'sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment
Collecting accelerate==0.16.0
  Using cached accelerate-0.16.0-py3-none-any.whl (199 kB)
Requirement already satisfied: albumentations~=1.3.0 in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (1.3.0)
Requirement already satisfied: bitsandbytes==0.35.4 in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 3)) (0.35.4)
Requirement already satisfied: diffusers==0.13.1 in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (0.13.1)
Collecting gitpython~=3.1.31
  Using cached GitPython-3.1.31-py3-none-any.whl (184 kB)
Requirement already satisfied: fastapi in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 6)) (0.87.0)
Requirement already satisfied: ftfy~=6.1.1 in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 7)) (6.1.1)
Requirement already satisfied: modelcards~=0.1.6 in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 8)) (0.1.6)
Requirement already satisfied: tensorboard in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (2.11.0)
Requirement already satisfied: tensorflow==2.11.0 in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (2.11.0)
Requirement already satisfied: tqdm~=4.64.1 in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 12)) (4.64.1)
Collecting transformers~=4.26.1
  Using cached transformers-4.26.1-py3-none-any.whl (6.3 MB)
Requirement already satisfied: discord-webhook~=1.1.0 in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 14)) (1.1.0)
Requirement already satisfied: lion-pytorch~=0.0.7 in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 15)) (0.0.7)
Requirement already satisfied: xformers==0.0.17.dev464 in d:\sdw\venv\lib\site-packages (from -r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 16)) (0.0.17.dev464)
Requirement already satisfied: packaging>=20.0 in d:\sdw\venv\lib\site-packages (from accelerate==0.16.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 1)) (22.0)
Requirement already satisfied: psutil in d:\sdw\venv\lib\site-packages (from accelerate==0.16.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 1)) (5.9.4)
Requirement already satisfied: pyyaml in d:\sdw\venv\lib\site-packages (from accelerate==0.16.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 1)) (6.0)
Requirement already satisfied: numpy>=1.17 in d:\sdw\venv\lib\site-packages (from accelerate==0.16.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 1)) (1.23.3)
Requirement already satisfied: torch>=1.4.0 in d:\sdw\venv\lib\site-packages (from accelerate==0.16.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 1)) (1.12.1)
Requirement already satisfied: huggingface-hub>=0.10.0 in d:\sdw\venv\lib\site-packages (from diffusers==0.13.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (0.11.1)
Requirement already satisfied: filelock in d:\sdw\venv\lib\site-packages (from diffusers==0.13.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (3.9.0)
Requirement already satisfied: requests in d:\sdw\venv\lib\site-packages (from diffusers==0.13.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (2.25.1)
Requirement already satisfied: regex!=2019.12.17 in d:\sdw\venv\lib\site-packages (from diffusers==0.13.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (2022.10.31)
Requirement already satisfied: Pillow in d:\sdw\venv\lib\site-packages (from diffusers==0.13.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (9.4.0)
Requirement already satisfied: importlib-metadata in d:\sdw\venv\lib\site-packages (from diffusers==0.13.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (5.2.0)
Requirement already satisfied: tensorflow-intel==2.11.0 in d:\sdw\venv\lib\site-packages (from tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (2.11.0)
Collecting torch>=1.4.0
  Using cached torch-1.13.1-cp310-cp310-win_amd64.whl (162.6 MB)
Requirement already satisfied: pyre-extensions==0.0.23 in d:\sdw\venv\lib\site-packages (from xformers==0.0.17.dev464->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 16)) (0.0.23)
Requirement already satisfied: typing-inspect in d:\sdw\venv\lib\site-packages (from pyre-extensions==0.0.23->xformers==0.0.17.dev464->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 16)) (0.8.0)
Requirement already satisfied: typing-extensions in d:\sdw\venv\lib\site-packages (from pyre-extensions==0.0.23->xformers==0.0.17.dev464->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 16)) (4.4.0)
Requirement already satisfied: libclang>=13.0.0 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (15.0.6.1)
Requirement already satisfied: wrapt>=1.11.0 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (1.14.1)
Requirement already satisfied: opt-einsum>=2.3.2 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (3.3.0)
Requirement already satisfied: astunparse>=1.6.0 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (1.6.3)
Requirement already satisfied: google-pasta>=0.1.1 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (0.2.0)
Requirement already satisfied: absl-py>=1.0.0 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (1.3.0)
Requirement already satisfied: protobuf<3.20,>=3.9.2 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (3.19.6)
Requirement already satisfied: tensorflow-estimator<2.12,>=2.11.0 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (2.11.0)
Requirement already satisfied: h5py>=2.9.0 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (3.8.0)
Requirement already satisfied: six>=1.12.0 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (1.16.0)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (0.30.0)
Requirement already satisfied: flatbuffers>=2.0 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (23.1.21)
Requirement already satisfied: keras<2.12,>=2.11.0 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (2.11.0)
Requirement already satisfied: gast<=0.4.0,>=0.2.1 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (0.4.0)
Requirement already satisfied: termcolor>=1.1.0 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (2.2.0)
Requirement already satisfied: setuptools in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (63.2.0)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in d:\sdw\venv\lib\site-packages (from tensorflow-intel==2.11.0->tensorflow==2.11.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 10)) (1.51.1)
Requirement already satisfied: qudida>=0.0.4 in d:\sdw\venv\lib\site-packages (from albumentations~=1.3.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (0.0.4)
Requirement already satisfied: scipy in d:\sdw\venv\lib\site-packages (from albumentations~=1.3.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (1.9.3)
Requirement already satisfied: scikit-image>=0.16.1 in d:\sdw\venv\lib\site-packages (from albumentations~=1.3.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (0.19.2)
Requirement already satisfied: opencv-python-headless>=4.1.1 in d:\sdw\venv\lib\site-packages (from albumentations~=1.3.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (4.7.0.68)
Requirement already satisfied: gitdb<5,>=4.0.1 in d:\sdw\venv\lib\site-packages (from gitpython~=3.1.31->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 5)) (4.0.10)
Requirement already satisfied: pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2 in d:\sdw\venv\lib\site-packages (from fastapi->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 6)) (1.10.4)
Requirement already satisfied: starlette==0.21.0 in d:\sdw\venv\lib\site-packages (from fastapi->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 6)) (0.21.0)
Requirement already satisfied: anyio<5,>=3.4.0 in d:\sdw\venv\lib\site-packages (from starlette==0.21.0->fastapi->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 6)) (3.6.2)
Requirement already satisfied: wcwidth>=0.2.5 in d:\sdw\venv\lib\site-packages (from ftfy~=6.1.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 7)) (0.2.5)
Requirement already satisfied: Jinja2 in d:\sdw\venv\lib\site-packages (from modelcards~=0.1.6->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 8)) (3.1.2)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in d:\sdw\venv\lib\site-packages (from tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (1.8.1)
Requirement already satisfied: markdown>=2.6.8 in d:\sdw\venv\lib\site-packages (from tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (3.4.1)
Requirement already satisfied: google-auth<3,>=1.6.3 in d:\sdw\venv\lib\site-packages (from tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (2.15.0)
Requirement already satisfied: werkzeug>=1.0.1 in d:\sdw\venv\lib\site-packages (from tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (2.2.2)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in d:\sdw\venv\lib\site-packages (from tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (0.6.1)
Requirement already satisfied: wheel>=0.26 in d:\sdw\venv\lib\site-packages (from tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (0.38.4)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in d:\sdw\venv\lib\site-packages (from tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (0.4.6)
Requirement already satisfied: colorama in d:\sdw\venv\lib\site-packages (from tqdm~=4.64.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 12)) (0.4.6)
Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in d:\sdw\venv\lib\site-packages (from transformers~=4.26.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 13)) (0.12.1)
Collecting requests
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Requirement already satisfied: smmap<6,>=3.0.1 in d:\sdw\venv\lib\site-packages (from gitdb<5,>=4.0.1->gitpython~=3.1.31->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 5)) (5.0.0)
Requirement already satisfied: rsa<5,>=3.1.4 in d:\sdw\venv\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (4.9)
Requirement already satisfied: pyasn1-modules>=0.2.1 in d:\sdw\venv\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (0.2.8)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in d:\sdw\venv\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (5.2.0)
Requirement already satisfied: requests-oauthlib>=0.7.0 in d:\sdw\venv\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (1.3.1)
Requirement already satisfied: scikit-learn>=0.19.1 in d:\sdw\venv\lib\site-packages (from qudida>=0.0.4->albumentations~=1.3.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (1.2.0)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\sdw\venv\lib\site-packages (from requests->diffusers==0.13.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (2.1.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\sdw\venv\lib\site-packages (from requests->diffusers==0.13.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (1.26.13)
Requirement already satisfied: idna<4,>=2.5 in d:\sdw\venv\lib\site-packages (from requests->diffusers==0.13.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in d:\sdw\venv\lib\site-packages (from requests->diffusers==0.13.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (2022.12.7)
Requirement already satisfied: imageio>=2.4.1 in d:\sdw\venv\lib\site-packages (from scikit-image>=0.16.1->albumentations~=1.3.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (2.23.0)
Requirement already satisfied: networkx>=2.2 in d:\sdw\venv\lib\site-packages (from scikit-image>=0.16.1->albumentations~=1.3.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (2.8.8)
Requirement already satisfied: PyWavelets>=1.1.1 in d:\sdw\venv\lib\site-packages (from scikit-image>=0.16.1->albumentations~=1.3.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (1.4.1)
Requirement already satisfied: tifffile>=2019.7.26 in d:\sdw\venv\lib\site-packages (from scikit-image>=0.16.1->albumentations~=1.3.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (2022.10.10)
Requirement already satisfied: MarkupSafe>=2.1.1 in d:\sdw\venv\lib\site-packages (from werkzeug>=1.0.1->tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (2.1.1)
Requirement already satisfied: zipp>=0.5 in d:\sdw\venv\lib\site-packages (from importlib-metadata->diffusers==0.13.1->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 4)) (3.11.0)
Requirement already satisfied: sniffio>=1.1 in d:\sdw\venv\lib\site-packages (from anyio<5,>=3.4.0->starlette==0.21.0->fastapi->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 6)) (1.3.0)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in d:\sdw\venv\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in d:\sdw\venv\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 9)) (3.2.2)
Requirement already satisfied: joblib>=1.1.1 in d:\sdw\venv\lib\site-packages (from scikit-learn>=0.19.1->qudida>=0.0.4->albumentations~=1.3.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in d:\sdw\venv\lib\site-packages (from scikit-learn>=0.19.1->qudida>=0.0.4->albumentations~=1.3.0->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 2)) (3.1.0)
Requirement already satisfied: mypy-extensions>=0.3.0 in d:\sdw\venv\lib\site-packages (from typing-inspect->pyre-extensions==0.0.23->xformers==0.0.17.dev464->-r D:\sdw\extensions\sd_dreambooth_extension\requirements.txt (line 16)) (0.4.3)
Installing collected packages: torch, requests, gitpython, accelerate, transformers
  Attempting uninstall: torch
    Found existing installation: torch 1.12.1
    Uninstalling torch-1.12.1:
      Successfully uninstalled torch-1.12.1
  Attempting uninstall: requests
    Found existing installation: requests 2.25.1
    Uninstalling requests-2.25.1:
      Successfully uninstalled requests-2.25.1
  Attempting uninstall: gitpython
    Found existing installation: GitPython 3.1.27
    Uninstalling GitPython-3.1.27:
      Successfully uninstalled GitPython-3.1.27
  Attempting uninstall: accelerate
    Found existing installation: accelerate 0.12.0
    Uninstalling accelerate-0.12.0:
      Successfully uninstalled accelerate-0.12.0
  Attempting uninstall: transformers
    Found existing installation: transformers 4.19.2
    Uninstalling transformers-4.19.2:
      Successfully uninstalled transformers-4.19.2
Successfully installed accelerate-0.16.0 gitpython-3.1.31 requests-2.28.2 torch-1.13.1 transformers-4.26.1

#######################################################################################################
Initializing Dreambooth
If submitting an issue on github, please provide the below text for debugging purposes:

Python revision: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Dreambooth revision: d4e2f7d5dc5c67cc6292c8b8137b688a43247c35
SD-WebUI revision: cca6e5212ddd77be7efdce2c27e475d3af436d85

Checking Dreambooth requirements...
[!] torch version 1.13.1 installed.
[!] torchvision version 0.13.1+cu113 installed.
[+] bitsandbytes version 0.35.4 installed.
[+] diffusers version 0.13.1 installed.
[+] transformers version 4.26.1 installed.
[+] xformers version 0.0.17.dev464 installed.
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
Launch errors detected: ['Incorrect version of torch installed.', 'Incorrect version of torchvision installed.']

#######################################################################################################

Launching Web UI with arguments:
D:\sdw\venv\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: Could not find module 'D:\sdw\venv\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
  warn(f"Failed to load image Python extension: {e}")
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
No module 'xformers'. Proceeding without it.
Loading booru2prompt settings
No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5'
Error loading script: ddetailer.py
Traceback (most recent call last):
  File "D:\sdw\modules\scripts.py", line 205, in load_scripts
    module = script_loading.load_module(scriptfile.path)
  File "D:\sdw\modules\script_loading.py", line 13, in load_module
    exec(compiled, module.__dict__)
  File "D:\sdw\extensions\ddetailer\scripts\ddetailer.py", line 458, in <module>
    from mmdet.core import get_classes
  File "D:\sdw\venv\lib\site-packages\mmdet\core\__init__.py", line 3, in <module>
    from .bbox import *  # noqa: F401, F403
  File "D:\sdw\venv\lib\site-packages\mmdet\core\bbox\__init__.py", line 8, in <module>
    from .samplers import (BaseSampler, CombinedSampler,
  File "D:\sdw\venv\lib\site-packages\mmdet\core\bbox\samplers\__init__.py", line 12, in <module>
    from .score_hlr_sampler import ScoreHLRSampler
  File "D:\sdw\venv\lib\site-packages\mmdet\core\bbox\samplers\score_hlr_sampler.py", line 3, in <module>
    from mmcv.ops import nms_match
  File "D:\sdw\venv\lib\site-packages\mmcv\ops\__init__.py", line 3, in <module>
    from .active_rotated_filter import active_rotated_filter
  File "D:\sdw\venv\lib\site-packages\mmcv\ops\active_rotated_filter.py", line 10, in <module>
    ext_module = ext_loader.load_ext(
  File "D:\sdw\venv\lib\site-packages\mmcv\utils\ext_loader.py", line 13, in load_ext
    ext = importlib.import_module('mmcv.' + name)
  File "C:\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed while importing _ext: The specified module could not be found.

Script path is D:\sdw
Error loading script: instruct-pix2pix.py
Traceback (most recent call last):
  File "D:\sdw\modules\scripts.py", line 205, in load_scripts
    module = script_loading.load_module(scriptfile.path)
  File "D:\sdw\modules\script_loading.py", line 13, in load_module
    exec(compiled, module.__dict__)
  File "D:\sdw\extensions\stable-diffusion-webui-instruct-pix2pix\scripts\instruct-pix2pix.py", line 25, in <module>
    from modules.ui import create_toprow, process_interrogate, interrogate, interrogate_deepbooru, apply_styles, update_token_counter
ImportError: cannot import name 'process_interrogate' from 'modules.ui' (D:\sdw\modules\ui.py)

LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading weights [de2f2560] from D:\sdw\models\Stable-diffusion\realisticVisionV13_v13VAEIncluded.safetensors
Applying cross attention optimization (InvokeAI).
Textual inversion embeddings loaded(14): arcane-face, arcane-style-jv, ganyu, gta5-artwork, herge, kuvshinov, midjourney-style, ruan-jia, sakimi, spider-gwen, Trigger Studio, valorant, wlop-style, xyz
Model loaded.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Error checking updates for ControlNet:
Traceback (most recent call last):
  File "D:\sdw\modules\ui_extensions.py", line 61, in check_updates
    ext.check_updates()
  File "D:\sdw\modules\extensions.py", line 61, in check_updates
    for fetch in repo.remote().fetch("--dry-run"):
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 1015, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "D:\sdw\venv\lib\site-packages\git\cmd.py", line 604, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git fetch -v -- origin --dry-run
  stderr: 'fatal: couldn't find remote ref --dry-run'

Error checking updates for booru2prompt:
Traceback (most recent call last):
  File "D:\sdw\modules\ui_extensions.py", line 61, in check_updates
    ext.check_updates()
  File "D:\sdw\modules\extensions.py", line 61, in check_updates
    for fetch in repo.remote().fetch("--dry-run"):
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 1015, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "D:\sdw\venv\lib\site-packages\git\cmd.py", line 604, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git fetch -v -- origin --dry-run
  stderr: 'fatal: couldn't find remote ref --dry-run'

Error checking updates for ddetailer:
Traceback (most recent call last):
  File "D:\sdw\modules\ui_extensions.py", line 61, in check_updates
    ext.check_updates()
  File "D:\sdw\modules\extensions.py", line 61, in check_updates
    for fetch in repo.remote().fetch("--dry-run"):
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 1015, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "D:\sdw\venv\lib\site-packages\git\cmd.py", line 604, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git fetch -v -- origin --dry-run
  stderr: 'fatal: couldn't find remote ref --dry-run'

Error checking updates for depthmap2mask:
Traceback (most recent call last):
  File "D:\sdw\modules\ui_extensions.py", line 61, in check_updates
    ext.check_updates()
  File "D:\sdw\modules\extensions.py", line 61, in check_updates
    for fetch in repo.remote().fetch("--dry-run"):
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 1015, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "D:\sdw\venv\lib\site-packages\git\cmd.py", line 604, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git fetch -v -- origin --dry-run
  stderr: 'fatal: couldn't find remote ref --dry-run'

Error checking updates for sd-webui-controlnet:
Traceback (most recent call last):
  File "D:\sdw\modules\ui_extensions.py", line 61, in check_updates
    ext.check_updates()
  File "D:\sdw\modules\extensions.py", line 61, in check_updates
    for fetch in repo.remote().fetch("--dry-run"):
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 1015, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "D:\sdw\venv\lib\site-packages\git\cmd.py", line 604, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git fetch -v -- origin --dry-run
  stderr: 'fatal: couldn't find remote ref --dry-run'

Error checking updates for sd_dreambooth_extension:
Traceback (most recent call last):
  File "D:\sdw\modules\ui_extensions.py", line 61, in check_updates
    ext.check_updates()
  File "D:\sdw\modules\extensions.py", line 61, in check_updates
    for fetch in repo.remote().fetch("--dry-run"):
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 1015, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "D:\sdw\venv\lib\site-packages\git\cmd.py", line 604, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git fetch -v -- origin --dry-run
  stderr: 'fatal: couldn't find remote ref --dry-run'

Error checking updates for stable-diffusion-webui-aesthetic-gradients:
Traceback (most recent call last):
  File "D:\sdw\modules\ui_extensions.py", line 61, in check_updates
    ext.check_updates()
  File "D:\sdw\modules\extensions.py", line 61, in check_updates
    for fetch in repo.remote().fetch("--dry-run"):
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 1015, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "D:\sdw\venv\lib\site-packages\git\cmd.py", line 604, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git fetch -v -- origin --dry-run
  stderr: 'fatal: couldn't find remote ref --dry-run'

Error checking updates for stable-diffusion-webui-artists-to-study:
Traceback (most recent call last):
  File "D:\sdw\modules\ui_extensions.py", line 61, in check_updates
    ext.check_updates()
  File "D:\sdw\modules\extensions.py", line 61, in check_updates
    for fetch in repo.remote().fetch("--dry-run"):
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 1015, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "D:\sdw\venv\lib\site-packages\git\cmd.py", line 604, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git fetch -v -- origin --dry-run
  stderr: 'fatal: couldn't find remote ref --dry-run'

Error checking updates for stable-diffusion-webui-embedding-editor:
Traceback (most recent call last):
  File "D:\sdw\modules\ui_extensions.py", line 61, in check_updates
    ext.check_updates()
  File "D:\sdw\modules\extensions.py", line 61, in check_updates
    for fetch in repo.remote().fetch("--dry-run"):
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 1015, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "D:\sdw\venv\lib\site-packages\git\cmd.py", line 604, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git fetch -v -- origin --dry-run
  stderr: 'fatal: couldn't find remote ref --dry-run'

Error checking updates for stable-diffusion-webui-instruct-pix2pix:
Traceback (most recent call last):
  File "D:\sdw\modules\ui_extensions.py", line 61, in check_updates
    ext.check_updates()
  File "D:\sdw\modules\extensions.py", line 61, in check_updates
    for fetch in repo.remote().fetch("--dry-run"):
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 1015, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
  File "D:\sdw\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "D:\sdw\venv\lib\site-packages\git\cmd.py", line 604, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git fetch -v -- origin --dry-run
  stderr: 'fatal: couldn't find remote ref --dry-run'

@econundrum
Copy link

tried using
.\venv\Scripts\activate
pip install -r .\requirements.txt
to reinstall requirements in the virtual directory but it didn't help.

@econundrum
Copy link

trying to update my nvidia drivers as well. Though I suspect one of the extension updates broke it because it worked before I updated dreambooth and controlnet.

@AbyszOne
Copy link

AbyszOne commented Mar 1, 2023

After Dreambooth too.

@econundrum
Copy link

I did update and restart on both at once them it failed, I had both extensions working before but both had updates available.

@Code4SAFrankie
Copy link
Author

Disabled all my extensions and tried to start without --skip-torch-cuda-test, but got original error.

@AbyszOne
Copy link

AbyszOne commented Mar 1, 2023

Ive removed recently updated extensions but doesn`t help at all.

@econundrum
Copy link

Torch is not able to use GPU basically is the issue we just need to figure out why, I think they must have broken the environment in someway was hoping it might help to reinstall requirements but no luck.

@econundrum
Copy link

I've renamed my venv folder and I'm running it again to get it to reinstall the environment itself

@econundrum
Copy link

let you know how it goes

@econundrum
Copy link

I doubt it's controlnet, I'm suspecting dream booth

@AbyszOne
Copy link

AbyszOne commented Mar 1, 2023

Updated drivers. Pointless.

@econundrum
Copy link

Indeed it was but I believe in being through.

I notice dreambooth requirements.txt look like it was updated 13 hours ago

@Code4SAFrankie
Copy link
Author

I could start and generate an image with set COMMANDLINE_ARGS=--skip-torch-cuda-test --precision full --no-half, but it's like 20 times slower than before. I'm deleting my venv

@econundrum
Copy link

renaming or removing venv works as it forces it to rebuild the environment I have it working again now

@econundrum
Copy link

But it will redownload all the requirements which takes a little while.

@Code4SAFrankie
Copy link
Author

Noticed it's saying Applying cross attention optimization (InvokeAI). where it used to say something like dogetxx instead of InvokeAI

@econundrum
Copy link

It's always dreambooth that seems to break it, I'm removing it for now my Graphics card can't really cope with it anyway and I train on Colab now.

@Code4SAFrankie
Copy link
Author

Installed latest nvidia drivers. Deleted venv directory. Restarted. Now getting this error:

D:\sdw>.\webui-user.bat
warning: redirecting to https://gitgud.io/AUTOMATIC1111/stable-diffusion-webui.git/
Already up to date.
Creating venv in directory venv using python "C:\Python310\python.exe"
venv "D:\sdw\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: cca6e5212ddd77be7efdce2c27e475d3af436d85
Installing torch and torchvision
Installing gfpgan
Installing clip
Installing open_clip
Installing requirements for CodeFormer
Installing requirements for Web UI
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading weights [a9263745] from D:\sdw\models\Stable-diffusion\model.ckpt
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(14): arcane-face, arcane-style-jv, ganyu, gta5-artwork, herge, kuvshinov, midjourney-style, ruan-jia, sakimi, spider-gwen, Trigger Studio, valorant, wlop-style, xyz
Model loaded.
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:\sdw\launch.py", line 307, in <module>
    start()
  File "D:\sdw\launch.py", line 302, in start
    webui.webui()
  File "D:\sdw\webui.py", line 172, in webui
    app.add_middleware(GZipMiddleware, minimum_size=1000)
  File "D:\sdw\venv\lib\site-packages\starlette\applications.py", line 135, in add_middleware
    raise RuntimeError("Cannot add middleware after an application has started")
RuntimeError: Cannot add middleware after an application has started
Press any key to continue . . .

@econundrum
Copy link

Are you getting that error after you do something in the UI? Mines worked fine since I deleted venv and it replaced it it.

@econundrum
Copy link

found this

#7749

@econundrum
Copy link

Not sure why you have this issue and I didn't though

@Code4SAFrankie
Copy link
Author

#7759 fixed the last issue.

It's working again as before and now saying Applying cross attention optimization (Doggettx). Extensions also work again

@Code4SAFrankie
Copy link
Author

Controlnet seems about 4 times slower though

@AbyszOne
Copy link

AbyszOne commented Mar 1, 2023

Controlnet seems about 4 times slower though

Not for me though.

marcoseduardopm added a commit to marcoseduardopm/stable-diffusion-webui that referenced this issue Apr 10, 2023
…- Windows OS.

Might Fix bugs similar to AUTOMATIC1111#8222, where the python subprocess.run does not work properly due to the shell=True parameter. This, in turn, might make webui.bat unfunctional on the Windows platform.

Related to any errors of commands that use the return of subprocess.run on launch.py (including webui.bat), such as 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check', and any other errors installing requirements.

This fix needs more tests on other versions of Windows before approval.

From https://docs.python.org/3/library/subprocess.html:
"The only time you need to specify shell=True on Windows is when the command you wish to execute is built into the shell (e.g. dir or copy). You do not need shell=True to run a batch file or console-based executable."

Tested on Windows 10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

3 participants