#1077 This is usually due to network issues while downloading the file. Please retry with `force_download=True`.

211.20* Posted at: 3 days ago 👁14

Traceback (most recent call last):
File "videotrans\process\_overall.py", line 44, in run
File "faster_whisper\transcribe.py", line 641, in init
File "faster_whisper\utils.py", line 107, in download_model
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\_snapshot_download.py", line 332, in snapshot_download
File "tqdm\contrib\concurrent.py", line 69, in thread_map
File "tqdm\contrib\concurrent.py", line 51, in _executor_map
File "tqdm\std.py", line 1169, in iter
File "concurrent\futures\_base.py", line 609, in result_iterator
File "concurrent\futures\_base.py", line 446, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "concurrent\futures\thread.py", line 58, in run
File "huggingface_hub\_snapshot_download.py", line 306, in _inner_hf_hub_download
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\file_download.py", line 1010, in hf_hub_download
File "huggingface_hub\file_download.py", line 1171, in _hf_hub_download_to_cache_dir
File "huggingface_hub\file_download.py", line 1738, in _download_to_tmp_and_move
File "huggingface_hub\file_download.py", line 525, in http_get
OSError: Consistency check failed: file should be of size 2203239 but has size 4170983 (tokenizer.json).
This is usually due to network issues while downloading the file. Please retry with force_download=True.


=
Windows-10-10.0.26100-SP0
version:v3.81
frozen:True
language:zh

1 Replies

这个错误是由于网络问题导致 faster-whisper 模型文件下载不完整。文件大小校验失败(tokenizer.json 文件应为 2203239 字节但实际下载了 4170983 字节)。

请按以下步骤解决:

  1. 清理缓存重新下载

    • 在软件菜单栏选择 语音识别设置
    • 找到 faster-whisper 模型设置,勾选 "强制重新下载模型" 选项
    • 重新运行翻译任务
  2. 设置网络代理

    • 如果清理缓存后仍然失败,请在软件菜单栏选择 翻译设置
    • 在底部设置网络代理地址,然后重试
  3. 手动下载

    • 如果上述方法无效,可以尝试使用专用下载工具手动从 HuggingFace 下载模型文件
    • 模型通常位于 https://huggingface.co/Systran/faster-whisper- 开头的地址
  4. 更换识别渠道

    • 作为临时解决方案,可以切换到其他语音识别渠道,如 openai-whisper 或在线API

网络不稳定是导致此问题的常见原因,建议在网络状况较好的时段重试。

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