d8ahazard / sd_dreambooth_extension

Other
1.85k stars 281 forks source link

[Bug]: CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. #1360

Closed MichaMaGit closed 8 months ago

MichaMaGit commented 9 months ago

Is there an existing issue for this?

What happened?

Hi, I updated to the newest version today and I got this Cuda problems.

Thx

Steps to reproduce the problem

Installed the newest version. Date: 2.11.2023

Commit and libraries

Initializing Dreambooth Dreambooth revision: 1a1d1621086a4725fda1200256f319c845dc7a8a Successfully installed accelerate-0.23.0 fastapi-0.94.1 transformers-4.32.1

[+] xformers version 0.0.21 installed. [+] torch version 2.0.1+cu118 installed. [+] torchvision version 0.15.2+cu118 installed. [+] accelerate version 0.23.0 installed. [+] diffusers version 0.21.4 installed. [+] transformers version 4.32.1 installed. [+] bitsandbytes version 0.41.1 installed. Launching Web UI with arguments: --xformers Checkpoint Jupiter-RV51-512-v1\Jupiter-RV51-512-v1_10800.safetensors [91a640b773] not found; loading fallback v1-5-pruned-emaonly.safetensors [6ce0161689] Loading weights [6ce0161689] from D:\AI\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors D:\AI\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\main.py:301: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead. with gr.Row().style(equal_height=False): False

Command Line Arguments

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--xformers
git pull
call webui.bat

Console logs

Already up to date.
venv "D:\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep  5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Installing xformers
Installing requirements
False

===================================BUG REPORT===================================
================================================================================
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/vray6plugins;C'), WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('c++/cpu;nvidia cuda nvidia geforce rtx 3060 ti gpu index0;')}
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
DEBUG: Possible options found for libcudart.so: set()
CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Loading binary D:\AI\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected.
CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable
CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null
CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a
CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA.
CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh
CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.
CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================
================================================================================
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/vray6plugins;C'), WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('c++/cpu;nvidia cuda nvidia geforce rtx 3060 ti gpu index0;')}
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
DEBUG: Possible options found for libcudart.so: set()
CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Loading binary D:\AI\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected.
CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable
CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null
CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a
CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA.
CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh
CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.
CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================
================================================================================
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/vray6plugins;C'), WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('c++/cpu;nvidia cuda nvidia geforce rtx 3060 ti gpu index0;')}
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
DEBUG: Possible options found for libcudart.so: set()
CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Loading binary D:\AI\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected.
CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable
CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null
CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a
CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA.
CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh
CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.
CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================
================================================================================
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/vray6plugins;C'), WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('c++/cpu;nvidia cuda nvidia geforce rtx 3060 ti gpu index0;')}
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
DEBUG: Possible options found for libcudart.so: set()
CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Loading binary D:\AI\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected.
CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable
CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null
CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a
CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA.
CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh
CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.
CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local
If submitting an issue on github, please provide the full startup log for debugging purposes.

Initializing Dreambooth
Dreambooth revision: 1a1d1621086a4725fda1200256f319c845dc7a8a
Successfully installed accelerate-0.23.0 fastapi-0.94.1 transformers-4.32.1

[+] xformers version 0.0.21 installed.
[+] torch version 2.0.1+cu118 installed.
[+] torchvision version 0.15.2+cu118 installed.
[+] accelerate version 0.23.0 installed.
[+] diffusers version 0.21.4 installed.
[+] transformers version 4.32.1 installed.
[+] bitsandbytes version 0.41.1 installed.
Launching Web UI with arguments: --xformers
Checkpoint Jupiter-RV51-512-v1\Jupiter-RV51-512-v1_10800.safetensors [91a640b773] not found; loading fallback v1-5-pruned-emaonly.safetensors [6ce0161689]
Loading weights [6ce0161689] from D:\AI\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
D:\AI\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\main.py:301: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=False):
False

===================================BUG REPORT===================================
================================================================================
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin/plugins'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/vray6plugins;C'), WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('c++/cpu;nvidia cuda nvidia geforce rtx 3060 ti gpu index0;')}
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
DEBUG: Possible options found for libcudart.so: set()
CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Loading binary D:\AI\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected.
CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable
CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null
CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a
CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA.
CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh
CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.
CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================
================================================================================
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin/plugins'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/vray6plugins;C'), WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('c++/cpu;nvidia cuda nvidia geforce rtx 3060 ti gpu index0;')}
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
DEBUG: Possible options found for libcudart.so: set()
CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Loading binary D:\AI\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected.
CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable
CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null
CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a
CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA.
CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh
CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.
CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local
Creating model from config: D:\AI\stable-diffusion-webui\configs\v1-inference.yaml

===================================BUG REPORT===================================
================================================================================
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin/plugins'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/vray6plugins;C'), WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('c++/cpu;nvidia cuda nvidia geforce rtx 3060 ti gpu index0;')}
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
DEBUG: Possible options found for libcudart.so: set()
CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Loading binary D:\AI\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected.
CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable
CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null
CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a
CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA.
CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh
CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.
CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================
================================================================================
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2020 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/V-Ray/3ds Max 2020/bin/plugins'), WindowsPath('C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Program Files/Chaos Group/Phoenix FD/3ds Max 2023 for x64/vray6plugins;C'), WindowsPath('C'), WindowsPath('/ProgramData/Autodesk/ApplicationPlugins/VRay3dsMax2023/bin/plugins')}
The following directories listed in your path were found to be non-existent: {WindowsPath('c++/cpu;nvidia cuda nvidia geforce rtx 3060 ti gpu index0;')}
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
DEBUG: Possible options found for libcudart.so: set()
CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Loading binary D:\AI\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected.
CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable
CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null
CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a
CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA.
CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh
CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.
CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 44.3s (prepare environment: 36.9s, import torch: 2.7s, import gradio: 0.7s, setup paths: 0.7s, initialize shared: 0.2s, other imports: 0.5s, load scripts: 1.3s, create ui: 0.9s, gradio launch: 0.3s).
Applying attention optimization: xformers... done.
Model loaded in 4.5s (load weights from disk: 0.4s, create model: 0.4s, apply weights to model: 2.0s, apply half(): 0.9s, calculate empty prompt: 0.7s).

Additional information

No response

BladeBrunner commented 9 months ago

Same problem.

lunar-studio commented 9 months ago

Same. I posted a similar question and comment to reddit.

onebiozz commented 9 months ago

I had the same problem, for me the solution was to manually download and install the windows version of bits and bytes from https://jllllll.github.io/bitsandbytes-windows-webui its possibly a problem with requirements.txt however i dont know enough about requirements files to say for sure EDIT: this should be obvious but for clarity remove the installed version and install that whl in the dreambooth venv via pip

MichaMaGit commented 9 months ago

thx!

lunar-studio commented 9 months ago

Thanks. Sorry to ask but what directory/files are you uninstalling and are you just dropping this .whl file into the same directory then pip install bitsandbytes-0.41.1-py3-none-win_amd64.whl?

onebiozz commented 9 months ago

Thanks. Sorry to ask but what directory/files are you uninstalling and are you just dropping this .whl file into the same directory then pip install bitsandbytes-0.41.1-py3-none-win_amd64.whl?

for me it is \sd.webui\system\python\python.exe -m pip uninstall bitsandbytes and \sd.webui\system\python\python.exe -m pip install https://jllllll.github.io/bitsandbytes-windows-webui/bitsandbytes/bitsandbytes-0.41.1-py3-none-win_amd64.whl

lunar-studio commented 9 months ago

Are you using It through WSL2?

DrozhzhinDen commented 9 months ago

Same

DrozhzhinDen commented 9 months ago

The problem appears after installation Dreambooth_extension. Before installation, it starts and works in standard mode.

MichaMaGit commented 9 months ago

Yes, it's a problem with Dreambooth. If I try to reinstall Bitsandbytes I get this:

D:\AI\stable-diffusion-webui\venv\Scripts>python.exe -m pip install bitsandbytes-0.41.1-py3-none-win_amd64 ERROR: Could not find a version that satisfies the requirement bitsandbytes-0.41.1-py3-none-win_amd64 (from versions: none) ERROR: No matching distribution found for bitsandbytes-0.41.1-py3-none-win_amd64

Now: D:\AI\stable-diffusion-webui\venv\Scripts>python.exe -m pip install bitsandbytes Collecting bitsandbytes Obtaining dependency information for bitsandbytes from https://files.pythonhosted.org/packages/1e/2c/af22cd797fc368a9f098ed03015730e6568b884fe67f9940793d944a4b7b/bitsandbytes-0.41.1-py3-none-any.whl.metadata Using cached bitsandbytes-0.41.1-py3-none-any.whl.metadata (9.8 kB) Using cached bitsandbytes-0.41.1-py3-none-any.whl (92.6 MB) DEPRECATION: torchsde 0.2.5 has a non-standard dependency specifier numpy>=1.19.*; python_version >= "3.7". pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of torchsde or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063 Installing collected packages: bitsandbytes Successfully installed bitsandbytes-0.41.1

github-actions[bot] commented 9 months ago

This issue is stale because it has been open 5 days with no activity. Remove stale label or comment or this will be closed in 5 days

DoughyInTheMiddle commented 9 months ago

Not stale. Still an issue for me. Still crawling through the thread above.

wasa4587 commented 8 months ago

I'm using it locally I reinstalled automatic 1111 then install the dreambooth extension, quit automatic 1111 cli

change pytorch_lightning.utilities.distributed to pytorch_lightning.utilities.rank_zero in these files

/stable-diffusion-webui/repositories/stable-diffusion-stability-ai/ldm/models/diffusion/ddpm.py (Line: 20) /stable-diffusion-webui/extensions-builtin/LDSR/sd_hijack_ddpm_v1.py (Line: 17)

webui-user.bat

it worked for me

swumagic commented 8 months ago

Bitsandbytes was not supported windows before, but my method can support windows.(yuhuang) 1 open folder J:\StableDiffusion\sdwebui,Click the address bar of the folder and enter CMD or WIN+R, CMD 。enter,cd /d J:\StableDiffusion\sdwebui 2 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes

3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows

4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl

Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)

swumagic commented 8 months ago

OR you are Linux distribution (Ubuntu, MacOS, etc.)system ,AND CUDA Version: 11.X.

Bitsandbytes can support ubuntu.(yuhuang) 1 open folder J:\StableDiffusion\sdwebui,Click the address bar of the folder and enter CMD or WIN+R, CMD 。enter,cd /d J:\StableDiffusion\sdwebui 2 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes

3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows

4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/TimDettmers/bitsandbytes/releases/download/0.41.0/bitsandbytes-0.41.0-py3-none-any.whl

Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)

d8ahazard commented 8 months ago

This should be fixed in the latest release.

mtnmecca commented 8 months ago

Just updated today and this issue still exists with bitsandbytes-0.41.2.post2.dist-info. I updated the extension on Monday and worked fine. Thanks for your review.

ahoskam commented 8 months ago

Is there a resolution? Do I need to reinstall SD after dreambooth extension crashed my install?

fulleclip commented 8 months ago

Since the last update it is impossible to load stable diffusion

Already up to date. venv "D:\sd1\stable-diffusion-webui\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)] Version: v1.6.0-2-g4afaaf8a Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7 Installing requirements False

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6. CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO. CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6. CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO. CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6. CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO. CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6. CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO. CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local If submitting an issue on github, please provide the full startup log for debugging purposes.

Initializing Dreambooth Dreambooth revision: 42b91486cef02c03fde7fcf040b67ae33fad2046 Checking xformers... Checking Dreambooth requirements... [Dreambooth] accelerate v0.21.0 is already installed. [Dreambooth] bitsandbytes v0.41.2 is already installed. [Dreambooth] dadaptation v3.1 is already installed. [Dreambooth] diffusers v0.23.1 is already installed. [Dreambooth] discord-webhook v1.3.0 is already installed. [Dreambooth] fastapi vNone is already installed. [Dreambooth] gitpython v3.1.40 is not installed. Successfully installed gitpython-3.1.40

[Dreambooth] pytorch_optimizer v2.12.0 is already installed. [Dreambooth] Pillow vNone is already installed. [Dreambooth] tqdm vNone is already installed. [Dreambooth] tomesd v0.1.2 is already installed. [Dreambooth] transformers v4.30.2 is already installed. [Dreambooth] tensorboard v2.13.0 is already installed. [!] xformers version 0.0.20 installed. [+] torch version 2.0.1+cu118 installed. [+] torchvision version 0.15.2+cu118 installed. [+] accelerate version 0.21.0 installed. [+] diffusers version 0.23.1 installed. [+] transformers version 4.30.2 installed. [+] bitsandbytes version 0.41.2.post2 installed. Launching Web UI with arguments: --xformers --medvram-sdxl --no-half-vae False

===================================BUG REPORT=================================== D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\cuda_setup\main.py:166: UserWarning: Welcome to bitsandbytes. For bug reports, please run

python -m bitsandbytes

warn(msg)

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6. CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO. CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local Traceback (most recent call last): File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py", line 1086, in _get_module return importlib.import_module("." + module_name, self.name) File "C:\Users\Home\AppData\Local\Programs\Python\Python310\lib\importlib__init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py", line 85, in from accelerate import version as accelerate_version File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate__init.py", line 3, in from .accelerator import Accelerator File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\accelerator.py", line 35, in from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\checkpointing.py", line 24, in from .utils import ( File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\utils\init.py", line 131, in from .bnb import has_4bit_bnb_layers, load_and_quantize_model File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\utils\bnb.py", line 42, in import bitsandbytes as bnb File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\init__.py", line 6, in from . import cuda_setup, utils, research File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research\init.py", line 1, in from . import nn File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research\nn\init.py", line 1, in from .modules import LinearFP8Mixed, LinearFP8Global File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research\nn\modules.py", line 8, in from bitsandbytes.optim import GlobalOptimManager File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\optim\init__.py", line 6, in from bitsandbytes.cextension import COMPILED_WITH_CUDA File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\cextension.py", line 20, in raise RuntimeError(''' RuntimeError: CUDA Setup failed despite GPU being available. Please run the following command to get more information:

    python -m bitsandbytes

    Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
    to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
    and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "D:\sd1\stable-diffusion-webui\launch.py", line 48, in main() File "D:\sd1\stable-diffusion-webui\launch.py", line 44, in main start() File "D:\sd1\stable-diffusion-webui\modules\launch_utils.py", line 432, in start import webui File "D:\sd1\stable-diffusion-webui\webui.py", line 13, in initialize.imports() File "D:\sd1\stable-diffusion-webui\modules\initialize.py", line 16, in imports import pytorch_lightning # noqa: F401 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning__init.py", line 35, in from pytorch_lightning.callbacks import Callback # noqa: E402 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks__init__.py", line 14, in from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py", line 24, in from pytorch_lightning.callbacks.callback import Callback File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\callback.py", line 25, in from pytorch_lightning.utilities.types import STEP_OUTPUT File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\types.py", line 27, in from torchmetrics import Metric File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics__init.py", line 14, in from torchmetrics import functional # noqa: E402 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\init.py", line 120, in from torchmetrics.functional.text._deprecated import _bleu_score as bleu_score File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\init__.py", line 50, in from torchmetrics.functional.text.bert import bert_score # noqa: F401 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\bert.py", line 23, in from torchmetrics.functional.text.helper_embedding_metric import ( File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\helper_embedding_metric.py", line 27, in from transformers import AutoModelForMaskedLM, AutoTokenizer, PreTrainedModel, PreTrainedTokenizerBase File "", line 1075, in _handle_fromlist File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py", line 1076, in getattr__ module = self._get_module(self._class_to_module[name]) File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py", line 1088, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.modeling_utils because of the following error (look up to see its traceback):

    CUDA Setup failed despite GPU being available. Please run the following command to get more information:

    python -m bitsandbytes

    Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
    to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
    and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues

Presione una tecla para continuar . . .

ahoskam commented 8 months ago

@fulleclip, This is the exact error I had. I had to create a new install of Stable Diffusion and copy my model directory from the old install to the new install. If you do create a new install though, make sure you copy the "models" directory to the new install before you run the program to save some time while it downloads sd1.5.chkp.

It isn't an ideal solution.

mtnmecca commented 8 months ago

copied solution below from [AurelionSoldMe] user posted to [Bug]: Cuda Environmental Issues #1389. My addition is to also edit requirements.txt in dreambooth extension folder with bitsandbytes==0.41.1

pip uninstall bitsandbytes pip install bitsandbytes~=0.41.1 --prefer-binary --extra-index-url=https://jllllll.github.io/bitsandbytes-windows-webui

even if it said the correct version is already installed it fixed it for me

Some homie on discord solved it with this

swumagic commented 8 months ago

CUDA SETUP: PyTorch settings found: CUDA_VERSION=118 YOUR CUDA_VERSION=118+2.01,Roll back to this version, and the plug-in library replaces this 10.31 version

[sd_dreambooth_extension]=https://github.com/d8ahazard/sd_dreambooth_extension/commit/d8e01e1fd13dd4b6afadbb0382875f905ee5f429.

Bitsandbytes was not supported windows before, but my method can support windows.(yuhuang) 1 open folder J:\StableDiffusion\sdwebui,Click the address bar of the folder and enter CMD or WIN+R, CMD 。enter,cd /d J:\StableDiffusion\sdwebui 2 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes

3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows

4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl

Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)

OR you are Linux distribution (Ubuntu, MacOS, etc.)system ,AND CUDA Version: 11.X.

Bitsandbytes can support ubuntu.(yuhuang) 1 open folder J:\StableDiffusion\sdwebui,Click the address bar of the folder and enter CMD or WIN+R, CMD 。enter,cd /d J:\StableDiffusion\sdwebui 2 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes

3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows

4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/TimDettmers/bitsandbytes/releases/download/0.41.0/bitsandbytes-0.41.0-py3-none-any.whl

Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)

hypothesis your SD IN pc(WINDOWS):C:\Users\muneer\stable-diffusion-webui

1 打开文件夹C:\Users\muneer\stable-diffusion-webui,点击文件夹地址栏输入CMD

或 WIN+R,输入, CMD ,输入,cd /d C:\Users\muneer\stable-diffusion-webui

2 输入,C:\Users\muneer\stable-diffusion-webui\venv\Scripts\python.exe -m pip uninstall bitsandbytes

3 输入, C:\Users\muneer\stable-diffusion-webui\venv\Scripts\python.exe -m pip uninstall bitsandbytes-windows

4 输入,C:\Users\muneer\stable-diffusion-webui\venv\Scripts\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels /bitsandbytes-0.41.1-py3-none-win_amd64.whl

swumagic commented 8 months ago

Since the last update it is impossible to load stable diffusion

Already up to date. venv "D:\sd1\stable-diffusion-webui\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)] Version: v1.6.0-2-g4afaaf8a Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7 Installing requirements False

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6. CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO. CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}发现您的路径中列出的以下目录不存在:{WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... CUDA_SETUP:警告!在任何环境路径中都找不到 libcudart.so。正在备份路径中搜索... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} 发现您的路径中列出的以下目录不存在:{WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() 调试:为 libcudart.so 找到可能的选项:set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.CUDA 设置:发现 PyTorch 设置:CUDA_VERSION=118,最高计算能力:8.6。 CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.mdCUDA 设置:要手动覆盖 PyTorch CUDA 版本,请参阅:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...CUDA 设置:加载二进制文件 D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...CUDA 电影:这是他的作品D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable“WindowsPath”类型的参数不可迭代 CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA 设置:问题:主要问题似乎是未检测到主 CUDA 运行时库。 CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA 设置:解决方案 1:要解决该问题,需要将 libcudart.so 位置添加到 LD_LIBRARY_PATH 变量中 CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA 设置:解决方案 1a):通过以下方式查找 cuda 运行时库:find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA 设置:解决方案 1b):找到库后,将其添加到 LD_LIBRARY_PATH:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1aCUDA解决方案1b):找到库后,将其添加到LD_LIBRARY_PATH:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA 设置:解决方案 1c):对于永久解决方案,请将 1b 的导出添加到位于 ~/.bashrc 的 .bashrc 文件中 CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA 设置:解决方案 2:如果在步骤 1a) 中未找到库,则需要安装 CUDA。 CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.shCUDA 设置:解决方案 2a):下载 CUDA 安装脚本:wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.CUDA 设置:解决方案 2b):将所需的 CUDA 版本安装到所需位置。语法为 bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO。 CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/localCUDA 设置:解决方案 2b):例如,“bash cuda_install.sh 113 ~/local/”将下载 CUDA 11.3 并安装到文件夹 ~/local 中

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6. CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO. CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}发现您的路径中列出的以下目录不存在:{WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... CUDA_SETUP:警告!在任何环境路径中都找不到 libcudart.so。正在备份路径中搜索... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} 发现您的路径中列出的以下目录不存在:{WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() 调试:为 libcudart.so 找到可能的选项:set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.CUDA 设置:发现 PyTorch 设置:CUDA_VERSION=118,最高计算能力:8.6。 CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.mdCUDA 设置:要手动覆盖 PyTorch CUDA 版本,请参阅:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...CUDA 设置:加载二进制文件 D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable“WindowsPath”类型的参数不可迭代 CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA 设置:问题:主要问题似乎是未检测到主 CUDA 运行时库。 CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA 设置:解决方案 1:要解决该问题,需要将 libcudart.so 位置添加到 LD_LIBRARY_PATH 变量中 CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA 设置:解决方案 1a):通过以下方式查找 cuda 运行时库:find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA 设置:解决方案 1b):找到库后,将其添加到 LD_LIBRARY_PATH:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA 设置:解决方案 1c):对于永久解决方案,请将 1b 的导出添加到位于 ~/.bashrc 的 .bashrc 文件中 CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA 设置:解决方案 2:如果在步骤 1a) 中未找到库,则需要安装 CUDA。 CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.shCUDA 设置:解决方案 2a):下载 CUDA 安装脚本:wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.CUDA 设置:解决方案 2b):将所需的 CUDA 版本安装到所需位置。语法为 bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO。 CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/localCUDA 设置:解决方案 2b):例如,“bash cuda_install.sh 113 ~/local/”将下载 CUDA 11.3 并安装到文件夹 ~/local 中 If submitting an issue on github, please provide the full startup log for debugging purposes. 如果在 github 上提交问题,请提供完整的启动日志以供调试之用。

Initializing Dreambooth Dreambooth revision: 42b9148 Checking xformers... Checking Dreambooth requirements... [Dreambooth] accelerate v0.21.0 is already installed. [Dreambooth] bitsandbytes v0.41.2 is already installed. [Dreambooth] dadaptation v3.1 is already installed. [Dreambooth] diffusers v0.23.1 is already installed. [Dreambooth] discord-webhook v1.3.0 is already installed. [Dreambooth] fastapi vNone is already installed. [Dreambooth] gitpython v3.1.40 is not installed. Successfully installed gitpython-3.1.40

[Dreambooth] pytorch_optimizer v2.12.0 is already installed. [Dreambooth] Pillow vNone is already installed. [Dreambooth] tqdm vNone is already installed. [Dreambooth] tomesd v0.1.2 is already installed. [Dreambooth] transformers v4.30.2 is already installed. [Dreambooth] tensorboard v2.13.0 is already installed. [!] xformers version 0.0.20 installed. [+] torch version 2.0.1+cu118 installed. [+] torchvision version 0.15.2+cu118 installed. [+] accelerate version 0.21.0 installed. [+] diffusers version 0.23.1 installed. [+] transformers version 4.30.2 installed. [+] bitsandbytes version 0.41.2.post2 installed. Launching Web UI with arguments: --xformers --medvram-sdxl --no-half-vae False

===================================BUG REPORT=================================== D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\cuda_setup\main.py:166: UserWarning: Welcome to bitsandbytes. For bug reports, please run

python -m bitsandbytes

warn(msg)

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}发现您的路径中列出的以下目录不存在:{WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... CUDA_SETUP:警告!在任何环境路径中都找不到 libcudart.so。正在备份路径中搜索... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} 发现您的路径中列出的以下目录不存在:{WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() 调试:为 libcudart.so 找到可能的选项:set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.CUDA 设置:发现 PyTorch 设置:CUDA_VERSION=118,最高计算能力:8.6。 CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.mdCUDA 设置:要手动覆盖 PyTorch CUDA 版本,请参阅:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...CUDA 设置:加载二进制文件 D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable“WindowsPath”类型的参数不可迭代 CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA 设置:问题:主要问题似乎是未检测到主 CUDA 运行时库。 CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA 设置:解决方案 1:要解决该问题,需要将 libcudart.so 位置添加到 LD_LIBRARY_PATH 变量中 CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA 设置:解决方案 1a):通过以下方式查找 cuda 运行时库:find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA 设置:解决方案 1b):找到库后,将其添加到 LD_LIBRARY_PATH:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA 设置:解决方案 1c):对于永久解决方案,请将 1b 的导出添加到位于 ~/.bashrc 的 .bashrc 文件中 CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA 设置:解决方案 2:如果在步骤 1a) 中未找到库,则需要安装 CUDA。 CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.shCUDA 设置:解决方案 2a):下载 CUDA 安装脚本:wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.CUDA 设置:解决方案 2b):将所需的 CUDA 版本安装到所需位置。语法为 bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO。 CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/localCUDA 设置:解决方案 2b):例如,“bash cuda_install.sh 113 ~/local/”将下载 CUDA 11.3 并安装到文件夹 ~/local 中 Traceback (most recent call last):回溯(最近一次调用最后一次): File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py", line 1086, in _get_module return importlib.import_module("." + module_name, self.name) File "C:\Users\Home\AppData\Local\Programs\Python\Python310\lib\importlibinit 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py”,第 1086 行,在 get_module 中.py", line 126, in import_module文件“C:\Users\Home\AppData\Local\Programs\Python\Python310\lib\importlib_init.py”,第 126 行,在 import_module 中 return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module 文件“”,第 883 行,在 exec_module 中 File "", line 241, in _call_with_frames_removed File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py", line 85, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py”,第 85 行,位于 from accelerate import version as accelerate_version 从加速导入版本作为加速版本 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerateinit文件“”,第 241 行,在 call_with_frames_removed 中.py", line 3, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate_init.py”,第 3 行,位于 from .accelerator import Accelerator 从.accelerator导入加速器 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\accelerator.py", line 35, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\accelerator.py”,第 35 行,位于 from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state 从 .checkpointing 导入 load_accelerator_state、load_custom_state、save_accelerator_state、save_custom_state File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\checkpointing.py", line 24, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\checkpointing.py”,第 24 行,位于 from .utils import ( 从 .utils 导入( File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\utilsinit文件“”,第 688 行,在 load_unlocked 中.py", line 131, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\utils_init.py”,第 131 行,位于 from .bnb import has_4bit_bnb_layers, load_and_quantize_model 从.bnb导入has_4bit_bnb_layers,load_and_quantize_model File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\utils\bnb.py", line 42, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\utils\bnb.py”,第 42 行,位于 import bitsandbytes as bnb将bitsandbytes导入为bnb File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytesinit_.py", line 6, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes_init.py”,第 6 行,位于 from . import cuda_setup, utils, research 从 。导入 cuda_setup、utils、研究 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\researchinit_.py", line 1, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research_init.py”,第 1 行,位于 from . import nn 从 。导入神经网络 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research\nninit_.py", line 1, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research\nn_init.py”,第 1 行,位于 from .modules import LinearFP8Mixed, LinearFP8Global 从 .modules 导入 LinearFP8Mixed、LinearFP8Global File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research\nn\modules.py", line 8, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research\nn\modules.py”,第 8 行,位于 from bitsandbytes.optim import GlobalOptimManager从bitsandbytes.optim导入GlobalOptimManager File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\optiminit_.py", line 6, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\optim_init.py”,第 6 行,位于 from bitsandbytes.cextension import COMPILED_WITH_CUDA 从bitsandbytes.cextension导入COMPILED_WITHCUDA File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\cextension.py", line 20, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\cextension.py”,第 20 行,位于 raise RuntimeError(''' 引发运行时错误(''' RuntimeError:  运行时错误: CUDA Setup failed despite GPU being available. Please run the following command to get more information:尽管 GPU 可用,但 CUDA 安装失败。请运行以下命令来获取更多信息: 文件“”,第 1006 行,位于 find_and_loadunlocked 中 文件“”,第 1027 行,位于 find_andload 中 文件“”,第 1050 行,gcdimport return _bootstrap.gcd_import(名称[级别:],包,级别)

    python -m bitsandbytes

    Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
    to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
    and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues

The above exception was the direct cause of the following exception:

Traceback (most recent call last):回溯(最近一次调用最后一次): File "D:\sd1\stable-diffusion-webui\launch.py", line 48, in 文件“D:\sd1\stable-diffusion-webui\launch.py​​”,第 48 行,位于 main() 主要的() File "D:\sd1\stable-diffusion-webui\launch.py", line 44, in main 文件“D:\sd1\stable-diffusion-webui\launch.py​​”,第 44 行,在 main 中 start() 开始() File "D:\sd1\stable-diffusion-webui\modules\launch_utils.py", line 432, in start 文件“D:\sd1\stable-diffusion-webui\modules\launch_utils.py”,第 432 行,在开始处 import webui 导入网页界面 File "D:\sd1\stable-diffusion-webui\webui.py", line 13, in 文件“D:\sd1\stable-diffusion-webui\webui.py”,第 13 行,位于 initialize.imports()  初始化.imports() File "D:\sd1\stable-diffusion-webui\modules\initialize.py", line 16, in imports 文件“D:\sd1\stable-diffusion-webui\modules\initialize.py”,第 16 行,在导入中 import pytorch_lightning # noqa: F401导入 pytorch_lightning # 节点:F401 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightninginit.py", line 35, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightninginit.py”,第 35 行,位于 from pytorch_lightning.callbacks import Callback # noqa: E402来自 pytorch_lightning.callbacks 导入回调 # noqa: E402 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacksinit.py", line 14, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacksinit.py”,第 14 行,位于 from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder从 pytorch_lightning.callbacks.batch_size_finder 导入 BatchSizeFinder File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py", line 24, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py”,第 24 行,位于 from pytorch_lightning.callbacks.callback import Callback从 pytorch_lightning.callbacks.callback 导入回调 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\callback.py", line 25, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\callback.py”,第 25 行,位于 from pytorch_lightning.utilities.types import STEP_OUTPUT 从 pytorch_lightning.utilities.types 导入 STEP_OUTPUT File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\types.py", line 27, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\types.py”,第 27 行,位于 from torchmetrics import Metric 从 torchmetrics 导入公制 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetricsinit.py", line 14, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetricsinit.py”,第 14 行,位于 from torchmetrics import functional # noqa: E402 来自 torchmetrics 导入功能 # noqa: E402 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functionalinit.py", line 120, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functioninit.py”,第 120 行,位于 from torchmetrics.functional.text._deprecated import _bleu_score as bleu_score File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\textinit从 torchmetrics.function.text._deprecated 导入 bleu_score as bleu_score.py", line 50, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\function\text_init.py”,第 50 行,位于 from torchmetrics.functional.text.bert import bert_score # noqa: F401来自 torchmetrics.function.text.bert 导入 bert_score # noqa: F401 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\bert.py", line 23, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\function\text\bert.py”,第 23 行,位于 from torchmetrics.functional.text.helper_embedding_metric import ( 从 torchmetrics.function.text.helper_embedding_metric 导入( File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\helper_embedding_metric.py", line 27, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\function\text\helper_embedding_metric.py”,第 27 行,位于 from transformers import AutoModelForMaskedLM, AutoTokenizer, PreTrainedModel, PreTrainedTokenizerBase从变压器导入 AutoModelForMaskedLM、AutoTokenizer、PreTrainedModel、PreTrainedTokenizerBase File "", line 1075, in _handle_fromlist文件“”,第 1075 行,位于 _handle_fromlist 中 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py", line 1076, in getattr 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py”,第 1076 行,在 getattr 中 module = self._get_module(self._class_to_module[name])模块 = self._get_module(self._class_to_module[名称]) File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py", line 1088, in _get_module文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py”,第 1088 行,在 _get_module 中 raise RuntimeError( 引发运行时错误( RuntimeError: Failed to import transformers.modeling_utils because of the following error (look up to see its traceback):RuntimeError:由于以下错误而无法导入transformers.modeling_utils(查找其回溯):

    CUDA Setup failed despite GPU being available. Please run the following command to get more information:

    python -m bitsandbytes

    Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
    to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
    and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues

Presione una tecla para continuar . . .

CUDA SETUP: PyTorch settings found: CUDA_VERSION=118 YOUR CUDA_VERSION=118+2.01,Roll back to this version, and the plug-in library replaces this 10.31 version

[sd_dreambooth_extension]=https://github.com/d8ahazard/sd_dreambooth_extension/commit/d8e01e1fd13dd4b6afadbb0382875f905ee5f429.

Since the last update it is impossible to load stable diffusion

Already up to date. venv "D:\sd1\stable-diffusion-webui\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)] Version: v1.6.0-2-g4afaaf8a Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7 Installing requirements False

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6. CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO. CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}发现您的路径中列出的以下目录不存在:{WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... CUDA_SETUP:警告!在任何环境路径中都找不到 libcudart.so。正在备份路径中搜索... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} 发现您的路径中列出的以下目录不存在:{WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() 调试:为 libcudart.so 找到可能的选项:set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.CUDA 设置:发现 PyTorch 设置:CUDA_VERSION=118,最高计算能力:8.6。 CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.mdCUDA 设置:要手动覆盖 PyTorch CUDA 版本,请参阅:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...CUDA 设置:加载二进制文件 D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...CUDA 电影:这是他的作品D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable“WindowsPath”类型的参数不可迭代 CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA 设置:问题:主要问题似乎是未检测到主 CUDA 运行时库。 CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA 设置:解决方案 1:要解决该问题,需要将 libcudart.so 位置添加到 LD_LIBRARY_PATH 变量中 CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA 设置:解决方案 1a):通过以下方式查找 cuda 运行时库:find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA 设置:解决方案 1b):找到库后,将其添加到 LD_LIBRARY_PATH:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1aCUDA解决方案1b):找到库后,将其添加到LD_LIBRARY_PATH:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA 设置:解决方案 1c):对于永久解决方案,请将 1b 的导出添加到位于 ~/.bashrc 的 .bashrc 文件中 CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA 设置:解决方案 2:如果在步骤 1a) 中未找到库,则需要安装 CUDA。 CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.shCUDA 设置:解决方案 2a):下载 CUDA 安装脚本:wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.CUDA 设置:解决方案 2b):将所需的 CUDA 版本安装到所需位置。语法为 bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO。 CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/localCUDA 设置:解决方案 2b):例如,“bash cuda_install.sh 113 ~/local/”将下载 CUDA 11.3 并安装到文件夹 ~/local 中

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6. CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO. CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

===================================BUG REPORT===================================

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}发现您的路径中列出的以下目录不存在:{WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... CUDA_SETUP:警告!在任何环境路径中都找不到 libcudart.so。正在备份路径中搜索... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} 发现您的路径中列出的以下目录不存在:{WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() 调试:为 libcudart.so 找到可能的选项:set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.CUDA 设置:发现 PyTorch 设置:CUDA_VERSION=118,最高计算能力:8.6。 CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.mdCUDA 设置:要手动覆盖 PyTorch CUDA 版本,请参阅:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...CUDA 设置:加载二进制文件 D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable“WindowsPath”类型的参数不可迭代 CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA 设置:问题:主要问题似乎是未检测到主 CUDA 运行时库。 CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA 设置:解决方案 1:要解决该问题,需要将 libcudart.so 位置添加到 LD_LIBRARY_PATH 变量中 CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA 设置:解决方案 1a):通过以下方式查找 cuda 运行时库:find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA 设置:解决方案 1b):找到库后,将其添加到 LD_LIBRARY_PATH:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA 设置:解决方案 1c):对于永久解决方案,请将 1b 的导出添加到位于 ~/.bashrc 的 .bashrc 文件中 CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA 设置:解决方案 2:如果在步骤 1a) 中未找到库,则需要安装 CUDA。 CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.shCUDA 设置:解决方案 2a):下载 CUDA 安装脚本:wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.CUDA 设置:解决方案 2b):将所需的 CUDA 版本安装到所需位置。语法为 bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO。 CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/localCUDA 设置:解决方案 2b):例如,“bash cuda_install.sh 113 ~/local/”将下载 CUDA 11.3 并安装到文件夹 ~/local 中 If submitting an issue on github, please provide the full startup log for debugging purposes. 如果在 github 上提交问题,请提供完整的启动日志以供调试之用。

Initializing Dreambooth Dreambooth revision: 42b9148 Checking xformers... Checking Dreambooth requirements... [Dreambooth] accelerate v0.21.0 is already installed. [Dreambooth] bitsandbytes v0.41.2 is already installed. [Dreambooth] dadaptation v3.1 is already installed. [Dreambooth] diffusers v0.23.1 is already installed. [Dreambooth] discord-webhook v1.3.0 is already installed. [Dreambooth] fastapi vNone is already installed. [Dreambooth] gitpython v3.1.40 is not installed. Successfully installed gitpython-3.1.40

[Dreambooth] pytorch_optimizer v2.12.0 is already installed. [Dreambooth] Pillow vNone is already installed. [Dreambooth] tqdm vNone is already installed. [Dreambooth] tomesd v0.1.2 is already installed. [Dreambooth] transformers v4.30.2 is already installed. [Dreambooth] tensorboard v2.13.0 is already installed. [!] xformers version 0.0.20 installed. [+] torch version 2.0.1+cu118 installed. [+] torchvision version 0.15.2+cu118 installed. [+] accelerate version 0.21.0 installed. [+] diffusers version 0.23.1 installed. [+] transformers version 4.30.2 installed. [+] bitsandbytes version 0.41.2.post2 installed. Launching Web UI with arguments: --xformers --medvram-sdxl --no-half-vae False

===================================BUG REPORT=================================== D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\cuda_setup\main.py:166: UserWarning: Welcome to bitsandbytes. For bug reports, please run

python -m bitsandbytes

warn(msg)

The following directories listed in your path were found to be non-existent: {WindowsPath('tmp/restart')}发现您的路径中列出的以下目录不存在:{WindowsPath('tmp/restart')} CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... CUDA_SETUP:警告!在任何环境路径中都找不到 libcudart.so。正在备份路径中搜索... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} 发现您的路径中列出的以下目录不存在:{WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() 调试:为 libcudart.so 找到可能的选项:set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.CUDA 设置:发现 PyTorch 设置:CUDA_VERSION=118,最高计算能力:8.6。 CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.mdCUDA 设置:要手动覆盖 PyTorch CUDA 版本,请参阅:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...CUDA 设置:加载二进制文件 D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable“WindowsPath”类型的参数不可迭代 CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA 设置:问题:主要问题似乎是未检测到主 CUDA 运行时库。 CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA 设置:解决方案 1:要解决该问题,需要将 libcudart.so 位置添加到 LD_LIBRARY_PATH 变量中 CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA 设置:解决方案 1a):通过以下方式查找 cuda 运行时库:find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA 设置:解决方案 1b):找到库后,将其添加到 LD_LIBRARY_PATH:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA 设置:解决方案 1c):对于永久解决方案,请将 1b 的导出添加到位于 ~/.bashrc 的 .bashrc 文件中 CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA 设置:解决方案 2:如果在步骤 1a) 中未找到库,则需要安装 CUDA。 CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.shCUDA 设置:解决方案 2a):下载 CUDA 安装脚本:wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.CUDA 设置:解决方案 2b):将所需的 CUDA 版本安装到所需位置。语法为 bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO。 CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/localCUDA 设置:解决方案 2b):例如,“bash cuda_install.sh 113 ~/local/”将下载 CUDA 11.3 并安装到文件夹 ~/local 中 Traceback (most recent call last):回溯(最近一次调用最后一次): File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py", line 1086, in _get_module return importlib.import_module("." + module_name, self.name) File "C:\Users\Home\AppData\Local\Programs\Python\Python310\lib\importlibinit 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py”,第 1086 行,在 get_module 中.py", line 126, in import_module文件“C:\Users\Home\AppData\Local\Programs\Python\Python310\lib\importlib_init.py”,第 126 行,在 import_module 中 return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module 文件“”,第 883 行,在 exec_module 中 File "", line 241, in _call_with_frames_removed File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py", line 85, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py”,第 85 行,位于 from accelerate import version as accelerate_version 从加速导入版本作为加速版本 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerateinit文件“”,第 241 行,在 call_with_frames_removed 中.py", line 3, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate_init.py”,第 3 行,位于 from .accelerator import Accelerator 从.accelerator导入加速器 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\accelerator.py", line 35, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\accelerator.py”,第 35 行,位于 from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state 从 .checkpointing 导入 load_accelerator_state、load_custom_state、save_accelerator_state、save_custom_state File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\checkpointing.py", line 24, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\checkpointing.py”,第 24 行,位于 from .utils import ( 从 .utils 导入( File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\utilsinit文件“”,第 688 行,在 load_unlocked 中.py", line 131, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\utils_init.py”,第 131 行,位于 from .bnb import has_4bit_bnb_layers, load_and_quantize_model 从.bnb导入has_4bit_bnb_layers,load_and_quantize_model File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\utils\bnb.py", line 42, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\accelerate\utils\bnb.py”,第 42 行,位于 import bitsandbytes as bnb将bitsandbytes导入为bnb File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytesinit_.py", line 6, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes_init.py”,第 6 行,位于 from . import cuda_setup, utils, research 从 。导入 cuda_setup、utils、研究 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\researchinit_.py", line 1, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research_init.py”,第 1 行,位于 from . import nn 从 。导入神经网络 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research\nninit_.py", line 1, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research\nn_init.py”,第 1 行,位于 from .modules import LinearFP8Mixed, LinearFP8Global 从 .modules 导入 LinearFP8Mixed、LinearFP8Global File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research\nn\modules.py", line 8, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\research\nn\modules.py”,第 8 行,位于 from bitsandbytes.optim import GlobalOptimManager从bitsandbytes.optim导入GlobalOptimManager File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\optiminit_.py", line 6, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\optim_init.py”,第 6 行,位于 from bitsandbytes.cextension import COMPILED_WITH_CUDA 从bitsandbytes.cextension导入COMPILED_WITHCUDA File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\cextension.py", line 20, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\cextension.py”,第 20 行,位于 raise RuntimeError(''' 引发运行时错误(''' RuntimeError:  运行时错误: CUDA Setup failed despite GPU being available. Please run the following command to get more information:尽管 GPU 可用,但 CUDA 安装失败。请运行以下命令来获取更多信息: 文件“”,第 1006 行,位于 find_and_loadunlocked 中 文件“”,第 1027 行,位于 find_andload 中 文件“”,第 1050 行,gcdimport return _bootstrap.gcd_import(名称[级别:],包,级别)

    python -m bitsandbytes

    Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
    to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
    and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues

The above exception was the direct cause of the following exception:

Traceback (most recent call last):回溯(最近一次调用最后一次): File "D:\sd1\stable-diffusion-webui\launch.py", line 48, in 文件“D:\sd1\stable-diffusion-webui\launch.py​​”,第 48 行,位于文件“D:\sd1\stable-diffusion-webui\launch.py​​​​”,第48行,位于 main() 主要的() File "D:\sd1\stable-diffusion-webui\launch.py", line 44, in main 文件“D:\sd1\stable-diffusion-webui\launch.py​​”,第 44 行,在 main 中文件“D:\sd1\stable-diffusion-webui\launch.py​​​​”,第44行,在 main 中 start() 开始() File "D:\sd1\stable-diffusion-webui\modules\launch_utils.py", line 432, in start 文件“D:\sd1\stable-diffusion-webui\modules\launch_utils.py”,第 432 行,在开始处 import webui 导入网页界面 File "D:\sd1\stable-diffusion-webui\webui.py", line 13, in 文件“D:\sd1\stable-diffusion-webui\webui.py”,第 13 行,位于 initialize.imports()  初始化.imports() File "D:\sd1\stable-diffusion-webui\modules\initialize.py", line 16, in imports 文件“D:\sd1\stable-diffusion-webui\modules\initialize.py”,第 16 行,在导入中文件“D:\sd1\stable-diffusion-webui\modules\initialize.py”,第16行,在导入中 import pytorch_lightning # noqa: F401导入 pytorch_lightning # 节点:F401 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightninginit.py", line 35, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightninginit.py”,第 35 行,位于文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightninginit.py”,第35行,位于 from pytorch_lightning.callbacks import Callback # noqa: E402来自 pytorch_lightning.callbacks 导入回调 # noqa: E402 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacksinit.py", line 14, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacksinit.py”,第 14 行,位于文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacksinit.py”,第14行,位于 from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder从 pytorch_lightning.callbacks.batch_size_finder 导入 BatchSizeFinder File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py", line 24, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py”,第 24 行,位于文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py”,第24行,位于 from pytorch_lightning.callbacks.callback import Callback从 pytorch_lightning.callbacks.callback 导入回调 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\callback.py", line 25, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\callback.py”,第 25 行,位于文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\callback.py”,第25行,位于 from pytorch_lightning.utilities.types import STEP_OUTPUT 从 pytorch_lightning.utilities.types 导入 STEP_OUTPUT File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\types.py", line 27, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\types.py”,第 27 行,位于文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\types.py”,第27行,位于 from torchmetrics import Metric 从 torchmetrics 导入公制 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetricsinit.py", line 14, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetricsinit.py”,第 14 行,位于文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetricsinit.py”,第14行,位于 from torchmetrics import functional # noqa: E402 来自 torchmetrics 导入功能 # noqa: E402 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functionalinit.py", line 120, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functioninit.py”,第 120 行,位于文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functioninit.py”,第120行,位于 from torchmetrics.functional.text._deprecated import _bleu_score as bleu_score File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text_init 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\features\text_init_从 torchmetrics.function.text._deprecated 导入 bleu_score as bleu_score.py", line 50, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\function\text_init.py”,第 50 行,位于文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\function\text_init.py”,第50行,位于 from torchmetrics.functional.text.bert import bert_score # noqa: F401来自 torchmetrics.function.text.bert 导入 bert_score # noqa: F401 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\bert.py", line 23, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\function\text\bert.py”,第 23 行,位于文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\function\text\bert.py”,第23行,位于 from torchmetrics.functional.text.helper_embedding_metric import ( 从 torchmetrics.function.text.helper_embedding_metric 导入( File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\helper_embedding_metric.py", line 27, in 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\function\text\helper_embedding_metric.py”,第 27 行,位于文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\function\text\helper_embedding_metric.py”,第27行,位于 from transformers import AutoModelForMaskedLM, AutoTokenizer, PreTrainedModel, PreTrainedTokenizerBase从变压器导入 AutoModelForMaskedLM、AutoTokenizer、PreTrainedModel、PreTrainedTokenizerBase File "", line 1075, in _handle_fromlist文件“”,第 1075 行,位于 _handle_fromlist 中 File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py", line 1076, in getattr 文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py”,第 1076 行,在 getattr 中 module = self._get_module(self._class_to_module[name])模块 = self._get_module(self._class_to_module[名称])module = self._get_module(self._class_to_module[名称]) File "D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py", line 1088, in _get_module文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py”,第 1088 行,在 _get_module 中文件“D:\sd1\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py”,第1088行,在 _get_module 中 raise RuntimeError( 引发运行时错误( RuntimeError: Failed to import transformers.modeling_utils because of the following error (look up to see its traceback):RuntimeError:由于以下错误而无法导入transformers.modeling_utils(查找其回溯):

    CUDA Setup failed despite GPU being available. Please run the following command to get more information:

    python -m bitsandbytes

    Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
    to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
    and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues

Presione una tecla para continuar . . .

CUDA SETUP: PyTorch settings found: CUDA_VERSION=118 YOUR CUDA_VERSION=118+2.01,Roll back to this version, and the plug-in library replaces this 10.31 version

[sd_dreambooth_extension]=https://github.com/d8ahazard/sd_dreambooth_extension/commit/d8e01e1fd13dd4b6afadbb0382875f905ee5f429.

Bitsandbytes was not supported windows before, but my method can support windows.(yuhuang) 1 open folder J:\StableDiffusion\sdwebui,Click the address bar of the folder and enter CMD or WIN+R, CMD 。enter,cd /d J:\StableDiffusion\sdwebui 2 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes

3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows

4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl

Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)

OR you are Linux distribution (Ubuntu, MacOS, etc.)system ,AND CUDA Version: 11.X.

Bitsandbytes can support ubuntu.(yuhuang) 1 open folder J:\StableDiffusion\sdwebui,Click the address bar of the folder and enter CMD or WIN+R, CMD 。enter,cd /d J:\StableDiffusion\sdwebui 2 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes

3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows

4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/TimDettmers/bitsandbytes/releases/download/0.41.0/bitsandbytes-0.41.0-py3-none-any.whl

Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)

hypothesis your SD IN pc(WINDOWS):C:\Users\muneer\stable-diffusion-webui

1 打开文件夹C:\Users\muneer\stable-diffusion-webui,点击文件夹地址栏输入CMD

或 WIN+R,输入, CMD ,输入,cd /d C:\Users\muneer\stable-diffusion-webui

2 输入,C:\Users\muneer\stable-diffusion-webui\venv\Scripts\python.exe -m pip uninstall bitsandbytes

3 输入, C:\Users\muneer\stable-diffusion-webui\venv\Scripts\python.exe -m pip uninstall bitsandbytes-windows

4 输入,C:\Users\muneer\stable-diffusion-webui\venv\Scripts\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels /bitsandbytes-0.41.1-py3-none-win_amd64.whl

swumagic commented 8 months ago

@fulleclip, This is the exact error I had. I had to create a new install of Stable Diffusion and copy my model directory from the old install to the new install. If you do create a new install though, make sure you copy the "models" directory to the new install before you run the program to save some time while it downloads sd1.5.chkp.@fulleclip,这正是我遇到的错误。我必须创建 Stable Diffusion 的新安装,并将模型目录从旧安装复制到新安装。如果您确实创建了新安装,请确保在运行程序之前将“models”目录复制到新安装,以在下载 sd1.5.chkp 时节省一些时间。

It isn't an ideal solution. [sd_dreambooth_extension]

CUDA SETUP: PyTorch settings found: CUDA_VERSION=118 YOUR CUDA_VERSION=118+2.01,Roll back to this version, and the plug-in library replaces this 10.31 version

[sd_dreambooth_extension]=https://github.com/d8ahazard/sd_dreambooth_extension/commit/d8e01e1fd13dd4b6afadbb0382875f905ee5f429.

Bitsandbytes was not supported windows before, but my method can support windows.(yuhuang) 1 open folder J:\StableDiffusion\sdwebui,Click the address bar of the folder and enter CMD or WIN+R, CMD 。enter,cd /d J:\StableDiffusion\sdwebui 2 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes

3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows

4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl

Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)

OR you are Linux distribution (Ubuntu, MacOS, etc.)system ,AND CUDA Version: 11.X.

Bitsandbytes can support ubuntu.(yuhuang) 1 open folder J:\StableDiffusion\sdwebui,Click the address bar of the folder and enter CMD or WIN+R, CMD 。enter,cd /d J:\StableDiffusion\sdwebui 2 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes

3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows

4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/TimDettmers/bitsandbytes/releases/download/0.41.0/bitsandbytes-0.41.0-py3-none-any.whl

Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)

hypothesis your SD IN pc(WINDOWS):C:\Users\muneer\stable-diffusion-webui

1 打开文件夹C:\Users\muneer\stable-diffusion-webui,点击文件夹地址栏输入CMD

或 WIN+R,输入, CMD ,输入,cd /d C:\Users\muneer\stable-diffusion-webui

2 输入,C:\Users\muneer\stable-diffusion-webui\venv\Scripts\python.exe -m pip uninstall bitsandbytes

3 输入, C:\Users\muneer\stable-diffusion-webui\venv\Scripts\python.exe -m pip uninstall bitsandbytes-windows

4 输入,C:\Users\muneer\stable-diffusion-webui\venv\Scripts\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels /bitsandbytes-0.41.1-py3-none-win_amd64.whl

fulleclip commented 8 months ago

Thanks, anyway I have seen that with the new installation the problem has also been solved