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

[Bug]: "interrogate deepbooru" no longer works.

Open nagaisa opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

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

What happened?

hitting interrogate deepbooru just stays at 'loading'

Steps to reproduce the problem

  1. Go to img2img
  2. Press interrogate deepbooru
  3. ...

What should have happened?

after pressing should only take a few sec until it loads in what it detected

Commit where the problem happens

212fba3139e00aea30fae8cf3aec62f0be1f3952

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

--listen --hypernetwork-dir modules/hypernetworks --xformers --opt-split-attention --precision full --medvram --no-half --deepdanbooru

Additional information, context and logs

Traceback (most recent call last): File "", line 1, in File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\multiprocessing\spawn.py", line 116, in spawn_main exitcode = _main(fd, parent_sentinel) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\multiprocessing\spawn.py", line 125, in _main prepare(preparation_data) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\multiprocessing\spawn.py", line 236, in prepare _fixup_main_from_path(data['init_main_from_path']) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path main_content = runpy.run_path(main_path, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 288, in run_path code, fname = _get_code_from_file(run_name, path_name) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 257, in _get_code_from_file code = compile(f.read(), fname, 'exec') ValueError: source code string cannot contain null bytes

nagaisa avatar Nov 08 '22 00:11 nagaisa

I'm having the same issue here as well

Process SpawnProcess-2: Traceback (most recent call last): File "C:\Python38\lib\multiprocessing\process.py", line 314, in _bootstrap self.run() File "C:\Python38\lib\multiprocessing\process.py", line 108, in run self._target(*self._args, **self._kwargs) File "C:\ai\stable-diffusion-webui\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 "C:\ai\stable-diffusion-webui\modules\deepbooru.py", line 124, in get_deepbooru_tags_from_model image = tf.image.resize( File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\tensorflow\python\util\traceback_utils.py", line 153, in error_handler raise e.with_traceback(filtered_tb) from None File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\tensorflow\python\framework\constant_op.py", line 102, in convert_to_eager_tensor return ops.EagerTensor(value, ctx.device_name, dtype) ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type NoneType).

Dougierulez avatar Nov 08 '22 03:11 Dougierulez

works fine here; webui on 98947d173e3f1667eba29c904f681047dea9de90 (latest as of now), tested on a "hello asuka" image

image

eur0pa avatar Nov 13 '22 20:11 eur0pa

Download this file and unzip it to this location(stable-diffusion-webui\models\deepbooru)

Babak2127 avatar Nov 14 '22 11:11 Babak2127

Download this file and unzip it to this location(stable-diffusion-webui\models\deepbooru)

still seams to not work

nagaisa avatar Nov 18 '22 05:11 nagaisa

Closing as stale.

catboxanon avatar Aug 03 '23 18:08 catboxanon