添加了ControlNet后报错
Installing sd-webui-controlnet requirement: mediapipeCouldn't install sd-webui-controlnet requirement: mediapipe.
Command: "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install mediapipe --prefer-binary
Error code: 2
stdout: Collecting mediapipe
Using cached mediapipe-0.9.3.0-cp310-cp310-win_amd64.whl (50.3 MB)
Requirement already satisfied: absl-py in d:\allprojects\githubprojects\stable-diffusion-webui\venv\lib\site-packages (from mediapipe) (1.4.0)
Requirement already satisfied: attrs>=19.1.0 in d:\allprojects\githubprojects\stable-diffusion-webui\venv\lib\site-packages (from mediapipe) (23.1.0)
Collecting flatbuffers>=2.0 (from mediapipe)
Using cached flatbuffers-23.3.3-py2.py3-none-any.whl (26 kB)
Requirement already satisfied: matplotlib in d:\allprojects\githubprojects\stable-diffusion-webui\venv\lib\site-packages (from mediapipe) (3.7.1)
Requirement already satisfied: numpy in d:\allprojects\githubprojects\stable-diffusion-webui\venv\lib\site-packages (from mediapipe) (1.23.5)
Collecting opencv-contrib-python (from mediapipe)
Downloading opencv_contrib_python-4.7.0.72-cp37-abi3-win_amd64.whl (44.9 MB)
----------------- 20.6/44.9 MB 26.3 kB/s eta 0:15:24
stderr: ERROR: Exception:
Traceback (most recent call last):
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
yield
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
data = self._fp_read(amt) if not fp_closed else b""
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 527, in _fp_read
return self._fp.read(amt) if amt is not None else self._fp.read()
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 90, in read
data = self.__fp.read(amt)
File "D:\SoftwareOfDev\python310\lib\http\client.py", line 465, in read
s = self.fp.read(amt)
File "D:\SoftwareOfDev\python310\lib\socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "D:\SoftwareOfDev\python310\lib\ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "D:\SoftwareOfDev\python310\lib\ssl.py", line 1130, in read
return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 169, in exc_logging_wrapper
status = run_func(*args)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
return func(self, options, args)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\commands\install.py", line 377, in run
requirement_set = resolver.resolve(
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 427, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 239, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 230, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
return bool(self._sequence)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__
return any(self)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\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 "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache = LinkCandidate(
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 293, in __init__
super().__init__(
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 156, in __init__
self.dist = self._prepare()
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 225, in _prepare
dist = self._prepare_distribution()
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\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 "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 516, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 587, in _prepare_linked_requirement
local_file = unpack_url(
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 166, in unpack_url
file = get_http_url(
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 107, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\download.py", line 147, in __call__
for chunk in chunks:
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 622, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 560, in read
with self._error_catcher():
File "D:\SoftwareOfDev\python310\lib\contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
Warning: Failed to install mediapipe, some preprocessors may not work.
Installing sd-webui-controlnet requirement: svglib
Couldn't install sd-webui-controlnet requirement: svglib.
Command: "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install svglib --prefer-binary
Error code: 1
stdout: <empty>
stderr: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('timed out'))': /simple/svglib/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('timed out'))': /simple/svglib/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('timed out'))': /simple/svglib/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('timed out'))': /simple/svglib/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('timed out'))': /simple/svglib/
ERROR: Could not find a version that satisfies the requirement svglib (from versions: none)
ERROR: No matching distribution found for svglib
Warning: Failed to install svglib, some preprocessors may not work.
由于报错内容太长,写不下,这里接着 添加了ControlNet后报错,但是报错后还是正常启动了,这种是什么问题?
venv "D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug1 2022, 21:53:49)
Commit hash: 5ab7f213bec2f816f9c5644becb32eb72c8ffb89
------------------------------------------------------------------------
Installing requirements
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
====================
You are running torch 1.13.1+cu117.
The program is tested to work with torch 2.0.0.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.
Use --skip-version-check commandline argument to disable this check.
====================
ControlNet v1.1.133
ControlNet v1.1.133
Loading weights from D:\AllProjects\GitHubProjects\stable-diffusion-webui\models\Stable-diffusion\chilloutmixss_xss10.safetensors
Creating model from config: D:\AllProjects\GitHubProjects\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0):
Model loaded in 8.6s (load weights from disk: 0.1s, create model: 5.4s, apply half(): 0.8s, move model to device: 1.0s, load textual inversion embeddings: 1.2s).
Running on local URL:http://127.0.0.1:7860
看着好像是因为这个装不上?“Couldn't install sd-webui-controlnet requirement: mediapipe.”该怎么解决? 打开webui-user.bat,在COMMANDLINE_ARGS修改成如下设置,更新Torch和Xfomers试一下。
set COMMANDLINE_ARGS=--reinstall-torch --reinstall-xformers PhiltreX 发表于 2023-5-4 22:05
打开webui-user.bat,在COMMANDLINE_ARGS修改成如下设置,更新Torch和Xfomers试一下。
...
D:\AllProjects\GitHubProjects\stable-diffusion-webui\venv\Scripts\python.exe -m pip install mediapipe --prefer-binary
解决了,在虚拟环境中多执行了几次(手动执行也失败了好几次,网络问题),没报错了
页:
[1]