Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WavLM模型下载失败,提示urllib.error.URLError: <urlopen error [WinError 10061] 由于目标计算机积极拒绝,无法连接。> #120

Open
3293406747 opened this issue Jun 27, 2024 · 5 comments

Comments

@3293406747
Copy link

3293406747 commented Jun 27, 2024

 > Downloading WavLM model to E:\workspace\clone-voice\tts\wavlm\WavLM-Large.pt ...
Traceback (most recent call last):
  File "D:\miniconda3\lib\urllib\request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "D:\miniconda3\lib\http\client.py", line 1283, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "D:\miniconda3\lib\http\client.py", line 1329, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "D:\miniconda3\lib\http\client.py", line 1278, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "D:\miniconda3\lib\http\client.py", line 1038, in _send_output
    self.send(msg)
  File "D:\miniconda3\lib\http\client.py", line 976, in send
    self.connect()
  File "D:\miniconda3\lib\http\client.py", line 1448, in connect
    super().connect()
  File "D:\miniconda3\lib\http\client.py", line 942, in connect
    self.sock = self._create_connection(
  File "D:\miniconda3\lib\socket.py", line 845, in create_connection
    raise err
  File "D:\miniconda3\lib\socket.py", line 833, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\workspace\clone-voice\code_dev.py", line 35, in <module>
    tts = TTS(model_name='voice_conversion_models/multilingual/vctk/freevc24').to(device)
  File "E:\workspace\clone-voice\venv\lib\site-packages\TTS\api.py", line 83, in __init__
    self.load_vc_model_by_name(model_name, gpu)
  File "E:\workspace\clone-voice\venv\lib\site-packages\TTS\api.py", line 161, in load_vc_model_by_name
    self.voice_converter = Synthesizer(vc_checkpoint=model_path, vc_config=config_path, use_cuda=gpu)
  File "E:\workspace\clone-voice\venv\lib\site-packages\TTS\utils\synthesizer.py", line 101, in __init__
    self._load_vc(vc_checkpoint, vc_config, use_cuda)
  File "E:\workspace\clone-voice\venv\lib\site-packages\TTS\utils\synthesizer.py", line 139, in _load_vc
    self.vc_model = setup_vc_model(config=self.vc_config)
  File "E:\workspace\clone-voice\venv\lib\site-packages\TTS\vc\models\__init__.py", line 16, in setup_model
    model = MyModel.init_from_config(config, samples)
  File "E:\workspace\clone-voice\venv\lib\site-packages\TTS\vc\models\freevc.py", line 552, in init_from_config
    model = FreeVC(config)
  File "E:\workspace\clone-voice\venv\lib\site-packages\TTS\vc\models\freevc.py", line 372, in __init__
    self.wavlm = get_wavlm()
  File "E:\workspace\clone-voice\venv\lib\site-packages\TTS\vc\modules\freevc\wavlm\__init__.py", line 24, in get_wavlm
    urllib.request.urlretrieve(model_uri, output_path)
  File "D:\miniconda3\lib\urllib\request.py", line 241, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "D:\miniconda3\lib\urllib\request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "D:\miniconda3\lib\urllib\request.py", line 519, in open
    response = self._open(req, data)
  File "D:\miniconda3\lib\urllib\request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "D:\miniconda3\lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
  File "D:\miniconda3\lib\urllib\request.py", line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "D:\miniconda3\lib\urllib\request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10061] 由于目标计算机积极拒绝,无法连接。>

1719455502694

image

@jianchang512
Copy link
Owner

设置代理
全局梯子

@3293406747
Copy link
Author

设置代理 全局梯子

我已经设置了代理和全局梯子,还是报错。我后来从github下载的模型文件,拷贝到tts文件夹下解决了这个问题。

@xiaoyeye111
Copy link

设置代理 全局梯子

我已经设置了代理和全局梯子,还是报错。我后来从github下载的模型文件,拷贝到tts文件夹下解决了这个问题。

在哪下载啊 有网站吗

@3293406747
Copy link
Author

设置代理 全局梯子

我已经设置了代理和全局梯子,还是报错。我后来从github下载的模型文件,拷贝到tts文件夹下解决了这个问题。

在哪下载啊 有网站吗

https://github.com/jianchang512/clone-voice/releases/tag/v0.0.1

@xiaoyeye111
Copy link

设置代理 全局梯子

我已经设置了代理和全局梯子,还是报错。我后来从github下载的模型文件,拷贝到tts文件夹下解决了这个问题。

在哪下载啊 有网站吗

https://github.com/jianchang512/clone-voice/releases/tag/v0.0.1

好嘟,谢谢!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants