#6950 配音阶段出错 [Confucius4(内置)] 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

104.28**1 Posted at: 1 hour ago

配音阶段出错 [Confucius4(内置)] 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

Traceback (most recent call last):

File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions

File "httpx\_transports\default.py", line 127, in iter

File "httpcore\_sync\connection_pool.py", line 367, in iter

File "httpcore\_sync\connection_pool.py", line 363, in iter

File "httpcore\_sync\http11.py", line 349, in iter

File "httpcore\_sync\http11.py", line 341, in iter

File "httpcore\_sync\http11.py", line 210, in _receive_response_body

File "httpcore\_sync\http11.py", line 220, in _receive_event

File "contextlib.py", line 153, in exit

File "httpcore\_exceptions.py", line 14, in map_exceptions

httpcore.RemoteProtocolError: peer closed connection without sending complete message body (received 58580116 bytes, expected 1445698760)

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

Traceback (most recent call las
......

File "videotrans\util\help_down.py", line 109, in _patched_http_get

File "huggingface_hub\utils\_validators.py", line 88, in _inner_fn

return fn(*args, **kwargs)

File "huggingface_hub\file_download.py", line 421, in http_get

for chunk in response.iter_bytes(chunk_size=constants.DOWNLOAD_CHUNK_SIZE):

File "httpx\_models.py", line 897, in iter_bytes

File "httpx\_models.py", line 951, in iter_raw

File "httpx\_client.py", line 153, in iter

File "httpx\_transports\default.py", line 126, in iter

File "contextlib.py", line 153, in exit

File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions

httpx.RemoteProtocolError: peer closed connection without sending complete message body (received 58580116 bytes, expected 1445698760)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 156, in process_task

File "videotrans\task\dubbing.py", line 56, in dubbing

File "videotrans\task\dubbing.py", line 209, in _tts

File "videotrans\tts\__init__.py", line 233, in run

File "videotrans\tts\_base.py", line 83, in run

File "videotrans\tts\_confuciustts.py", line 21, in _download

File "videotrans\util\help_down.py", line 168, in check_and_down_hf

videotrans.configure.excepts.DownloadModelsError: 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

[DubbingSrt]语音合成: self.out_ext='m4a',self.is_multi_role=False
[TaskCfgTTS]
原始输入文件名: C:/Users/Z420-Win-11/Documents/0048 配音 字幕/0048-es_副本.srt,
输出结果保存到文件夹: D:/TTS/win-pyvideotrans-v4.11/output/tts,
临时文件夹: D:/TTS/win-pyvideotrans-v4.11/tmp/20320/daac5afe95
已启用CUDA加速
配音渠道:Confucius4(内置), 角色:yingyufanben.wav, 配音语言:zh-cn
音量:+0%, 语速:-5%, 已选 音频加速
代理地址:http://127.0.0.1:10808


=
system:Windows-10-10.0.26200-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/TTS/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因是 Confucius4(内置) 模型自动下载过程中网络连接被中断(日志显示 peer closed connection without sending complete message body,下载量仅 58MB / 预期 1.4GB),常见于代理不稳定、网络波动或 huggingface 镜像限流。

解决方案:

  1. 删除已损坏的不完整模型文件
    进入软件根目录 D:/TTS/win-pyvideotrans-v4.11/models/,删除以下文件夹(如果存在,无论是否完整都建议先删掉):

    • models--netease-youdao--Confucius4-TTS
    • models--models--facebook--w2v-bert-2.0
    • models--nvidia--bigvgan_v2_22khz_80band_256x
    • models--funasr--campplus
  2. 手动下载模型并覆盖
    访问以下地址,下载每个仓库的全部文件(注意不要只下部分,尤其 model.safetensors 等大文件),放到对应的 models/ 子目录内:

  3. 注意事项

    • 手动下载时建议使用浏览器直接下载,避免使用不稳定的代理,或临时关闭代理后使用国内镜像 hf-mirror.com(将上面链接的 huggingface.co 替换为 hf-mirror.com 即可)。
    • 下载的文件如果浏览器自动重命名(如 model(2).safetensors),必须改回原名(如 model.safetensors)。
    • 下载完成后重启软件,重新执行配音任务,不再触发自动下载。

请查阅相关文档:

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