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

182.147.**2 Posted at: 1 hour ago

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

Traceback (most recent call last):

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

File "httpx\_transports\default.py", line 250, in handle_request

File "httpcore\_sync\connection_pool.py", line 216, in handle_request

File "httpcore\_sync\connection_pool.py", line 196, in handle_request

File "httpcore\_sync\connection.py", line 99, in handle_request

File "httpcore\_sync\connection.py", line 76, in handle_request

File "httpcore\_sync\connection.py", line 122, in _connect

File "httpcore\_backends\sync.py", line 205, in connect_tcp

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

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

httpcore.ConnectTimeout: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

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

Traceback (most recent call last):

File "huggingface_hu
......
或连接的主机没有反应,连接尝试失败。

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

Traceback (most recent call last):

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

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

return fn(*args, **kwargs)

File "huggingface_hub\_snapshot_download.py", line 328, in snapshot_download

raise LocalEntryNotFoundError(

huggingface_hub.errors.LocalEntryNotFoundError: Got: ConnectTimeout: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
An error happened while trying to locate the files on the Hub and we cannot find the appropriate snapshot folder for the specified revision on the local disk. Please check your internet connection and try again.

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\speech2text.py", line 100, in recogn

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

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

File "videotrans\recognition\_huggingface.py", line 28, in _download

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

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

[SpeechToText]语音转录: self.out_format='srt',self.copysrt_rawvideo=True,self.spk_insert=False
[TaskCfgSTT]
原始输入文件名: F:/超爱/START破解中文/kks11.cc@ALDN-600J/JN10395.mp4,
输出结果保存到文件夹: D:/BaiduNetdiskDownload/win-pyvideotrans-v4.11/output/recogn,
临时文件夹: D:/win-pyvideotrans-v4.11/tmp/11800/d3cb1601ca
已启用CUDA加速
未选 降噪
语音识别:Huggingface_ASR(内置), reazon-research/japanese-wav2vec2-large-rs35kh 断句方式:默认断句
发音语言:ja
未选 降噪


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

1 Replies

#1 DeepSeek reply at 1 hour ago

这是由于自动从 HuggingFace 下载模型时网络连接超时(WinError 10060)导致的,HuggingFace 国内访问不稳定,自动下载失败。

请按以下步骤手动下载模型并放置到正确位置:

步骤 1:下载模型文件
访问以下地址,下载该仓库内的所有文件:
https://huggingface.co/reazon-research/japanese-wav2vec2-large-rs35kh/tree/main

步骤 2:创建并放置模型文件夹
在软件根目录(sp.exe 所在文件夹)下的 models 文件夹中创建子文件夹:

models/models--reazon-research--japanese-wav2vec2-large-rs35kh

将下载的所有文件放入该子文件夹内,注意文件名不得被浏览器自动重命名(例如 model(2).safetensors 需改回原名)。

步骤 3:重新执行任务
回到软件主界面,重新开始翻译。软件检测到本地模型后会自动跳过下载。

若访问 HuggingFace 仍困难,可尝试在软件主界面“对齐控制”行右侧填写有效代理(如 http://127.0.0.1:10808),或改用其他支持日语的识别渠道,如 openai-whisper(内置)parakeet日语(内置)

请查阅相关文档:

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