stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

TensorFlow error and Interrogate DeepBooru error

Open cibernicola opened this issue 3 years ago • 2 comments

Describe the bug

A clear and concise description of what the bug is: TensorFlow error and Interrogate DeepBooru

Load ARGS: COMMANDLINE_ARGS=--medvram --opt-split-attention --precision autocast --deepdanbooru

To Reproduce Steps to reproduce the behavior:

  1. Go to 'IMG2IMG and load an image'
  2. Click on ''Interrogate DeepBooru'
  3. Scroll down to '=> wait
  4. See error

Expected behavior Recive DeepBooru tags from a given image

Screenshots To create a public link, set share=Trueinlaunch(). 2022-10-19 17:40:15.519415: 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-19 17:40:15.520581: 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-19 17:40:15.522722: 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. 1/1 [==============================] - 5s 5s/step Process Process-2: Traceback (most recent call last): File "C:\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap self.run() File "C:\Python38\lib\multiprocessing\process.py", line 108, in run self._target(*self._args, **self._kwargs) File "L:\StableDiffussionWebUI\modules\deepbooru.py", line 41, in deepbooru_process deepbooru_process_return["value"] = get_deepbooru_tags_from_model(model, tags, pil_image, threshold, deepbooru_opts) File "L:\StableDiffussionWebUI\modules\deepbooru.py", line 140, in get_deepbooru_tags_from_model result_dict[tag] = y[i] IndexError: index 9176 is out of bounds for axis 0 with size 9176

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Vivaldi (Chromium based)
  • Commit revision f894dd552f68bea27476f1f360ab8e79f3a65b4f

Additional context RTX 2060

cibernicola avatar Oct 19 '22 15:10 cibernicola

https://www.tensorflow.org/install/gpu try following windows instructions and install tensorflow manually

Flonixcorn avatar Oct 19 '22 17:10 Flonixcorn

I met that bug. You can install tensorflow-cpu to avoid the bug.

happk avatar Oct 20 '22 12:10 happk

Closing as stale.

catboxanon avatar Aug 03 '23 16:08 catboxanon