Description
Prerequisite
- I have searched Issues and Discussions but cannot get the expected help.
- I have read the FAQ documentation but cannot get the expected help.
- The bug has not been fixed in the latest version (main) or latest version (0.x).
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmagic
Environment
ubuntu22.04,cuda11.5,pytorch1.13.1
Reproduces the problem - code sample
mim install 安装mmcv时一直超时,想问下国内有mim镜像加速的配置之类的吗
Reproduces the problem - command or script
mim install mmcv-full mim install 'mmcv>=2.0.0'
Reproduces the problem - error message
Looking in links: https://download.openmmlab.com/mmcv/dist/cu117/torch1.13.0/index.html
Collecting mmcv-full
Downloading https://download.openmmlab.com/mmcv/dist/cu117/torch1.13.0/mmcv_full-1.7.1-cp310-cp310-manylinux1_x86_64.whl (46.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.1/46.1 MB 8.9 MB/s eta 0:00:00
Collecting addict (from mmcv-full)
Using cached addict-2.4.0-py3-none-any.whl (3.8 kB)
Requirement already satisfied: numpy in /home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages (from mmcv-full) (1.25.0)
Collecting packaging (from mmcv-full)
Using cached packaging-23.1-py3-none-any.whl (48 kB)
Requirement already satisfied: Pillow in /home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages (from mmcv-full) (9.4.0)
Requirement already satisfied: pyyaml in /home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages (from mmcv-full) (6.0.1)
Collecting yapf (from mmcv-full)
Obtaining dependency information for yapf from https://files.pythonhosted.org/packages/23/75/c374517c09e31bf22d3b3f156d73e0f38d08e29b2afdd607cef5f1e10aa9/yapf-0.40.1-py3-none-any.whl.metadata
Using cached yapf-0.40.1-py3-none-any.whl.metadata (35 kB)
Requirement already satisfied: opencv-python>=3 in /home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages (from mmcv-full) (4.5.4.60)
Collecting importlib-metadata>=6.6.0 (from yapf->mmcv-full)
Obtaining dependency information for importlib-metadata>=6.6.0 from https://files.pythonhosted.org/packages/cc/37/db7ba97e676af155f5fcb1a35466f446eadc9104e25b83366e8088c9c926/importlib_metadata-6.8.0-py3-none-any.whl.metadata
Using cached importlib_metadata-6.8.0-py3-none-any.whl.metadata (5.1 kB)
Collecting platformdirs>=3.5.1 (from yapf->mmcv-full)
Obtaining dependency information for platformdirs>=3.5.1 from https://files.pythonhosted.org/packages/14/51/fe5a0d6ea589f0d4a1b97824fb518962ad48b27cd346dcdfa2405187997a/platformdirs-3.10.0-py3-none-any.whl.metadata
Using cached platformdirs-3.10.0-py3-none-any.whl.metadata (11 kB)
Collecting tomli>=2.0.1 (from yapf->mmcv-full)
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting zipp>=0.5 (from importlib-metadata>=6.6.0->yapf->mmcv-full)
Obtaining dependency information for zipp>=0.5 from https://files.pythonhosted.org/packages/8c/08/d3006317aefe25ea79d3b76c9650afabaf6d63d1c8443b236e7405447503/zipp-3.16.2-py3-none-any.whl.metadata
Using cached zipp-3.16.2-py3-none-any.whl.metadata (3.7 kB)
Downloading yapf-0.40.1-py3-none-any.whl (250 kB)
━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━ 112.6/250.3 kB 1.5 kB/s eta 0:01:31
ERROR: Exception:
Traceback (most recent call last):
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
yield
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 561, in read
data = self._fp_read(amt) if not fp_closed else b""
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/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 "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 90, in read
data = self.__fp.read(amt)
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/http/client.py", line 466, in read
s = self.fp.read(amt)
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/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 "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
return func(self, options, args)
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 377, in run
requirement_set = resolver.resolve(
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 161, in resolve
self.factory.preparer.prepare_linked_requirements_more(reqs)
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 565, in prepare_linked_requirements_more
self._complete_partial_requirements(
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 479, in _complete_partial_requirements
for link, (filepath, _) in batch_download:
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_internal/network/download.py", line 183, in call
for chunk in chunks:
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_internal/cli/progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_internal/network/utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 622, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 560, in read
with self._error_catcher():
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/home/ma/anaconda3/envs/mmagic/lib/python3.10/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.
Additional information
No response