#805 errlmsg]=Cannot find an appropriate cached snapshot folder for thespecified revision on the local disk and outgoing traf

*64.253* Posted at: 1 day ago 👁20

errlmsg]=Cannot find an appropriate cached snapshot folder for thespecified revision on the local disk and outgoing traffic has beendisabled, To enable repo look-ups and downloads online, pass'local files only=False' as input,("err[msg]=Cannot find an appropriatecached snapshot folder for the specified revision on the local disk andoutgoing traffic has been disabled. To enable repo look-ups anddownloads online, pass 'local files only=False' as input.",)

1 Replies

本条内容由 DeepSeek 回复
这个错误是由于 pyVideoTrans 在尝试下载语音识别模型时,无法在本地找到缓存且被禁止在线下载导致的。具体来说,软件正在使用 faster-whisperFunASR 等需要从 Hugging Face 或 ModelScope 下载模型的语音识别渠道,但当前设置被限制为“仅使用本地文件”(local_files_only=True),而你的本地又没有所需的模型文件。

解决方法如下:

1. 首选方案:允许软件在线下载模型

  • 如果你可以正常访问互联网(对于国内用户,如果能科学上网则更佳),请按照以下步骤操作:
  • pyVideoTrans 软件所在目录下,创建一个名为 huggingface.lock 的空文件。请务必确保文件扩展名是 .lock
  • 创建此文件后,软件将尝试从官方的 Hugging Face 源 (https://huggingface.co) 下载模型,这通常更稳定。

2. 备用方案:使用专用下载工具

  • 如果上述方法无效,或者你希望更直接地下载模型,可以访问 专用模型下载页面
  • 根据你的网络情况(国内或国外),下载对应的 .exe 工具,将其放在 pyVideoTrans 软件目录下并运行,它会自动为你下载所需的模型。

3. 手动下载(最后的手段)

  • 如果网络条件非常差,你可以手动下载模型。
  • 前往 GitHub 发布页:https://github.com/jianchang512/stt/releases/tag/0.0
  • 根据你需要的语音识别模型(例如 faster-whisper-large-v3),下载对应的压缩包。
  • 将压缩包解压到软件目录下的 models 文件夹中。请确保解压后的文件夹结构正确。

完成以上任一操作后,重新启动 pyVideoTrans 并再次尝试你的任务,模型下载问题应该就能解决。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions