stable-diffusion-webui
stable-diffusion-webui copied to clipboard
Getting an error using deepdanbooru on windows and yes I enabled it in the command line
Describe the bug A clear and concise description of what the bug is.
I added:
set COMMANDLINE_ARGS= --deepdanbooru
to webui-user.bat and ran it.
It said it was installing deepdanbooru
I put an image in img2img and clicked "Interrogate DeepBooru"
It gave an error it said I could ignore if I wasn't using Cuda. Then it downloaded something, then it gave another error and locked up.
This is the output:
2022-10-13 12:30:06.924452: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2022-10-13 12:30:06.924665: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. Downloading: "https://github.com/KichangKim/DeepDanbooru/releases/download/v3-20211112-sgd-e28/deepdanbooru-v3-20211112-sgd-e28.zip" to C:\local\stable-diffusion-webui\models\deepbooru\deepdanbooru-v3-20211112-sgd-e28.zip
100%|███████████████████████████████| 571M/571M [02:26<00:00, 4.09MB/s] 2022-10-13 12:32:53.969835: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. Process Process-2: Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\process.py", line 315, in _bootstrap self.run() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\process.py", line 108, in run self._target(*self._args, **self._kwargs) File "C:\local\stable-diffusion-webui\modules\deepbooru.py", line 35, in deepbooru_process model, tags = get_deepbooru_tags_model() File "C:\local\stable-diffusion-webui\modules\deepbooru.py", line 104, in get_deepbooru_tags_model model = dd.project.load_model_from_project( File "c:\local\stable-diffusion-webui\venv\lib\site-packages\deepdanbooru\project\project.py", line 44, in load_model_from_project model = tf.keras.models.load_model(model_path, compile=compile_model) File "c:\local\stable-diffusion-webui\venv\lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler raise e.with_traceback(filtered_tb) from None File "c:\local\stable-diffusion-webui\venv\lib\site-packages\keras\backend.py", line 2142, in truncated_normal return tf.random.stateless_truncated_normal( tensorflow.python.framework.errors_impl.InternalError: cudaGetDevice() failed. Status: cudaGetErrorString symbol not found
This is on Windows 10 Commit hash: 42bf5fa3256bff5e4640e5a626e750d4e49e01e1
Try downloading Visual Studio C++ redistributables. This solved the issue for me.
https://github.com/tensorflow/tensorflow/issues/43193
@towa-hi I had the same problem. Following the linked issue worked, though I got a new warning:
022-10-14 10:59:06.569275: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2022-10-14 10:59:06.569650: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2022-10-14 10:59:12.105137: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2022-10-14 10:59:12.105549: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublas64_11.dll'; dlerror: cublas64_11.dll not found
2022-10-14 10:59:12.105851: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublasLt64_11.dll'; dlerror: cublasLt64_11.dll not found
2022-10-14 10:59:12.106158: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
2022-10-14 10:59:12.106626: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
2022-10-14 10:59:12.106923: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusolver64_11.dll'; dlerror: cusolver64_11.dll not found
2022-10-14 10:59:12.107200: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusparse64_11.dll'; dlerror: cusparse64_11.dll not found
2022-10-14 10:59:12.107467: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found
2022-10-14 10:59:12.107519: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1934] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2022-10-14 10:59:12.110198: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
Despite this, the tagging worked just fine.
Adding https://github.com/KichangKim/DeepDanbooru/blob/master/requirements.txt to webui requirements.txt once then running (and then removing to not break git) fixed the issue.
Adding https://github.com/KichangKim/DeepDanbooru/blob/master/requirements.txt to webui requirements.txt once then running (and then removing to not break git) fixed the issue.
Thanks, this fixed it for me it appears!