#6560 语音识别阶段出错[faster-whisper(内置)] 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

13.250.**2 Posted at: 3 hours ago

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

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 800884657 bytes, expected 1617884929)

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

Traceback (most recent ca
......
ownload_to_tmp_and_move

http_get(

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 800884657 bytes, expected 1617884929)

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 102, in process_task

File "videotrans\task\_stage_recogn.py", line 62, in recogn

File "videotrans\recognition\__init__.py", line 211, in run

File "videotrans\recognition\_base.py", line 90, in run

File "videotrans\recognition\_whisper.py", line 50, in _download

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

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

cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: D:/木下/JUL-208-C/JUL-208-C.mp4,
输出结果保存到文件夹: D:/JUL-208-C-mp4,
临时文件夹: D:/Users/86185/Downloads/win-pyvideotrans-v4.09/tmp/19912/333fee2787
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 日语, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 单字幕
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.26200-SP0
version:v4.09
frozen:True
language:zh
root_dir:D:/Users/86185/Downloads/win-pyvideotrans-v4.09

1 Replies

核心原因:这是 faster-whisper 模型文件下载中断导致的。large-v3-turbo 模型约 1.6GB,下载到约 800MB 时 HuggingFace 服务器断开了连接(peer closed connection without sending complete message body),模型文件不完整,因此识别阶段报错。

解决方案(按顺序尝试):

  1. 先清理不完整的下载缓存:删除软件目录下 models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo 文件夹中已下载的残缺文件(如果有的话),避免断点续传又从中断处继续下载导致再次失败。
  2. 检查代理稳定性:你当前设置了代理 http://127.0.0.1:7897。该模型从 HuggingFace 下载,若代理节点不稳定、限速或流量中断,就会出现上述报错。建议更换稳定的代理节点后重试;如果是国内直连,软件会自动切换国内镜像站,也可尝试清空代理后重试。
  3. 手动下载模型

  4. 模型放置好后重新启动软件,再次执行翻译任务即可,不需要重新下载模型。

请查阅相关文档:

Post Your Reply
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

Dondate via PayPal

Related resource