toriato / stable-diffusion-webui-wd14-tagger

Labeling extension for Automatic1111's Web UI
1.34k stars 235 forks source link

Couldn't install deepdanbooru #95

Open Syampuuh opened 1 year ago

Syampuuh commented 1 year ago

I've tried a few versions, these appear to all throw the same errors. Model directories, following the documentation:

image

Log:


Error completing request
Arguments: (<PIL.Image.Image image mode=RGB size=2479x3208 at 0x18514F17A00>, '', False, '', '[name].[output_extension]', 'ignore', False, False, 'deepdanbooru-v3-20211112-sgd-e28', 0.35, '', '', True, False, True, '0_0, (o)_(o), +_+, +_-, ._., <o>_<o>, <|>_<|>, =_=, >_<, 3_3, 6_9, >_o, @_@, ^_^, o_o, u_u, x_x, |_|, ||_||', True, False) {}
Traceback (most recent call last):
  File "F:\AIHellHole\sd.webui\webui\modules\call_queue.py", line 56, in f
    res = list(func(*args, **kwargs))
  File "F:\AIHellHole\sd.webui\webui\modules\call_queue.py", line 37, in f
    res = func(*args, **kwargs)
  File "F:\AIHellHole\sd.webui\webui\extensions\stable-diffusion-webui-wd14-tagger\tagger\ui.py", line 69, in on_interrogate
    ratings, tags = interrogator.interrogate(image)
  File "F:\AIHellHole\sd.webui\webui\extensions\stable-diffusion-webui-wd14-tagger\tagger\interrogator.py", line 187, in interrogate
    self.load()
  File "F:\AIHellHole\sd.webui\webui\extensions\stable-diffusion-webui-wd14-tagger\tagger\interrogator.py", line 134, in load
    run_pip(
  File "F:\AIHellHole\sd.webui\webui\launch.py", line 129, in run_pip
    return run(f'"{python}" -m pip {args} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")
  File "F:\AIHellHole\sd.webui\webui\launch.py", line 97, in run
    raise RuntimeError(message)
RuntimeError: Couldn't install deepdanbooru.
Command: "F:\AIHellHole\sd.webui\system\python\python.exe" -m pip install git+https://github.com/KichangKim/DeepDanbooru.git@d91a2963bf87c6a770d74894667e9ffa9f6de7ff tensorflow tensorflow-io --prefer-binary
Error code: 2
stdout: Collecting git+https://github.com/KichangKim/DeepDanbooru.git@d91a2963bf87c6a770d74894667e9ffa9f6de7ff
  Cloning https://github.com/KichangKim/DeepDanbooru.git (to revision d91a2963bf87c6a770d74894667e9ffa9f6de7ff) to c:\users\shamp\appdata\local\temp\pip-req-build-04vcndu3
  Resolved https://github.com/KichangKim/DeepDanbooru.git to commit d91a2963bf87c6a770d74894667e9ffa9f6de7ff
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting tensorflow
  Using cached tensorflow-2.12.0-cp310-cp310-win_amd64.whl (1.9 kB)
Collecting tensorflow-io
  Using cached tensorflow_io-0.31.0-cp310-cp310-win_amd64.whl (22.9 MB)
Requirement already satisfied: Click>=7.0 in f:\aihellhole\sd.webui\system\python\lib\site-packages (from deepdanbooru==1.0.0) (8.1.3)
Requirement already satisfied: numpy>=1.16.2 in f:\aihellhole\sd.webui\system\python\lib\site-packages (from deepdanbooru==1.0.0) (1.23.3)
Requirement already satisfied: scikit-image>=0.15.0 in f:\aihellhole\sd.webui\system\python\lib\site-packages (from deepdanbooru==1.0.0) (0.19.2)
Requirement already satisfied: requests>=2.22.0 in f:\aihellhole\sd.webui\system\python\lib\site-packages (from deepdanbooru==1.0.0) (2.25.1)
Requirement already satisfied: six>=1.13.0 in c:\users\shamp\appdata\roaming\python\python310\site-packages (from deepdanbooru==1.0.0) (1.16.0)
Collecting tensorflow-intel==2.12.0 (from tensorflow)
  Using cached tensorflow_intel-2.12.0-cp310-cp310-win_amd64.whl (272.8 MB)
Requirement already satisfied: absl-py>=1.0.0 in f:\aihellhole\sd.webui\system\python\lib\site-packages (from tensorflow-intel==2.12.0->tensorflow) (1.4.0)
Collecting astunparse>=1.6.0 (from tensorflow-intel==2.12.0->tensorflow)
  Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Requirement already satisfied: flatbuffers>=2.0 in f:\aihellhole\sd.webui\system\python\lib\site-packages (from tensorflow-intel==2.12.0->tensorflow) (23.3.3)
Collecting gast<=0.4.0,>=0.2.1 (from tensorflow-intel==2.12.0->tensorflow)
  Using cached gast-0.4.0-py3-none-any.whl (9.8 kB)
Collecting google-pasta>=0.1.1 (from tensorflow-intel==2.12.0->tensorflow)
  Using cached google_pasta-0.2.0-py3-none-any.whl (57 kB)
Collecting h5py>=2.9.0 (from tensorflow-intel==2.12.0->tensorflow)
  Using cached h5py-3.8.0-cp310-cp310-win_amd64.whl (2.6 MB)
Collecting jax>=0.3.15 (from tensorflow-intel==2.12.0->tensorflow)
  Using cached jax-0.4.12.tar.gz (1.3 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'

stderr:   Running command git clone --filter=blob:none --quiet https://github.com/KichangKim/DeepDanbooru.git 'C:\Users\shamp\AppData\Local\Temp\pip-req-build-04vcndu3'
  Running command git rev-parse -q --verify 'sha^d91a2963bf87c6a770d74894667e9ffa9f6de7ff'
  Running command git fetch -q https://github.com/KichangKim/DeepDanbooru.git d91a2963bf87c6a770d74894667e9ffa9f6de7ff
  Running command git checkout -q d91a2963bf87c6a770d74894667e9ffa9f6de7ff
ERROR: Exception:
Traceback (most recent call last):
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\cli\base_command.py", line 169, in exc_logging_wrapper
    status = run_func(*args)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
    return func(self, options, args)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\commands\install.py", line 377, in run
    requirement_set = resolver.resolve(
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 92, in resolve
    result = self._result = resolver.resolve(
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 427, in resolve
    failure_causes = self._attempt_to_pin_criterion(name)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 239, in _attempt_to_pin_criterion
    criteria = self._get_updated_criteria(candidate)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 230, in _get_updated_criteria
    self._add_to_criteria(criteria, requirement, parent=candidate)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
    if not criterion.candidates:
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
    return bool(self._sequence)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__
    return any(self)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
    candidate = func()
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 293, in __init__
    super().__init__(
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 156, in __init__
    self.dist = self._prepare()
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 225, in _prepare
    dist = self._prepare_distribution()
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 304, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\operations\prepare.py", line 516, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\operations\prepare.py", line 631, in _prepare_linked_requirement
    dist = _get_prepared_distribution(
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\operations\prepare.py", line 69, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\distributions\sdist.py", line 48, in prepare_distribution_metadata
    self._install_build_reqs(finder)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\distributions\sdist.py", line 118, in _install_build_reqs
    build_reqs = self._get_build_requires_wheel()
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\distributions\sdist.py", line 95, in _get_build_requires_wheel
    return backend.get_requires_for_build_wheel()
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_internal\utils\misc.py", line 692, in get_requires_for_build_wheel
    return super().get_requires_for_build_wheel(config_settings=cs)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 166, in get_requires_for_build_wheel
    return self._call_hook('get_requires_for_build_wheel', {
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\shamp\AppData\Local\Temp\pip-build-env-t8bzscz4\overlay\Lib\site-packages\setuptools\__init__.py", line 15, in <module>
    import setuptools.version
  File "C:\Users\shamp\AppData\Local\Temp\pip-build-env-t8bzscz4\overlay\Lib\site-packages\setuptools\version.py", line 1, in <module>
    from ._importlib import metadata
  File "C:\Users\shamp\AppData\Local\Temp\pip-build-env-t8bzscz4\overlay\Lib\site-packages\setuptools\_importlib.py", line 44, in <module>
    import importlib.metadata as metadata  # noqa: F401
  File "importlib\metadata\__init__.py", line 17, in <module>
  File "importlib\metadata\_adapters.py", line 3, in <module>
  File "email\message.py", line 15, in <module>
  File "email\utils.py", line 29, in <module>
  File "socket.py", line 51, in <module>
ModuleNotFoundError: No module named '_socket'

[notice] A new release of pip is available: 23.1 -> 23.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip

Traceback (most recent call last):
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\gradio\blocks.py", line 987, in postprocess_data
    if predictions[i] is components._Keywords.FINISHED_ITERATING:
IndexError: tuple index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\gradio\routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\gradio\blocks.py", line 1078, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "F:\AIHellHole\sd.webui\system\python\lib\site-packages\gradio\blocks.py", line 991, in postprocess_data
    raise ValueError(
ValueError: Number of output components does not match number of values returned from from function f```