#8204 下载模型失败,你可以尝试打开以下网址,将所有文件下载到

240e**6d55 Posted at: 1 hour ago

下载模型失败,
你可以尝试打开以下网址,将所有文件下载到
F:/win-pyvideotrans-v4.08-0802/models/piper/ru/ru_RU/denis/medium 文件夹内

多次重试后仍然失败: HTTPSConnectionPool(host='hf-mirror.com', port=443): Max retries exceeded with url: /rhasspy/piper-voices/resolve/main/ru/ru_RU/denis/medium/ru_RU-denis-medium.onnx?download=true (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 773, in urlopen
File "urllib3\connectionpool.py", line 1042, in _prepare_proxy
File "urllib3\connection.p
......
Max retries exceeded with url: /rhasspy/piper-voices/resolve/main/ru/ru_RU/denis/medium/ru_RU-denis-medium.onnx?download=true (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 102, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 100, in _tts
File "videotrans\tts\__init__.py", line 221, in run
File "videotrans\tts\_base.py", line 105, in run
File "videotrans\tts\_piper.py", line 71, in _exec
File "videotrans\tts\_piper.py", line 52, in _get_model_from_name
File "videotrans\util\help_down.py", line 269, in down_file_from_hf
videotrans.configure.excepts.DownloadModelsError: 下载模型失败,
你可以尝试打开以下网址,将所有文件下载到
F:/win-pyvideotrans-v4.08-0802/models/piper/ru/ru_RU/denis/medium 文件夹内

多次重试后仍然失败: HTTPSConnectionPool(host='hf-mirror.com', port=443): Max retries exceeded with url: /rhasspy/piper-voices/resolve/main/ru/ru_RU/denis/medium/ru_RU-denis-medium.onnx?download=true (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: F:/7月视频/需要改字去水印/10.15推拿1.mp4,
输出结果保存到文件夹: F:/win-pyvideotrans-v4.08-0802/10.15推拿1-mp4,
临时文件夹: F:/win-pyvideotrans-v4.08-0802/tmp/42640/63e3724c0b
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), model_name: tiny, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:M2M100(内置),原始语言:简体中文,目标语言:俄罗斯语, 已选 发送完整字幕
配音渠道:Piper(内置), 角色:ru_RU-denis-medium, 配音语言:俄罗斯语, 已选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 已选 强制对齐字幕和声音
字幕: 不嵌入字幕
代理地址:http://127.0.0.1:7890


=
system:Windows-10-10.0.26200-SP0
version:v4.08
frozen:True
language:zh
root_dir:F:/win-pyvideotrans-v4.08-0802

1 Replies

#1 DeepSeek reply at 1 hour ago

这是由于您配置的网络代理 http://127.0.0.1:7890 无效或代理客户端未运行,导致访问 hf-mirror.com 被拒绝(WinError 10061 = 目标计算机积极拒绝连接)。

解决方案:

  1. 确认代理软件已启动:检查 7890 端口对应的代理工具(如 Clash、V2Ray 等)是否已打开,并确认端口确实为 7890。
  2. 暂时关闭代理:如果当前不需要代理,请将主界面“对齐控制”行右侧的代理地址清空,然后重新执行任务。
  3. 手动下载模型(若代理无法修复):

    • 打开浏览器,访问
      https://hf-mirror.com/rhasspy/piper-voices/resolve/main/ru/ru_RU/denis/medium/ru_RU-denis-medium.onnx
    • 将下载到的 .onnx 文件(以及可能需要的 .json 配置文件)放入日志中提示的目录:
      F:/win-pyvideotrans-v4.08-0802/models/piper/ru/ru_RU/denis/medium
    • 重新运行任务即可。

注意:模型文件必须严格放入该目录,文件名保持原样(不要重命名)。若仍有其他文件缺失,可打开 https://huggingface.co/rhasspy/piper-voices/tree/main/ru/ru_RU/denis/medium 查看完整文件列表并全部下载。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource