#4160 OSError: Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack f

64.118* Posted at: 3 hours ago 👁10

系统错误 (None):None:
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "concurrent\futures\process.py", line 246, in _process_worker
File "videotrans\process\tts_fun.py", line 63, in qwen3tts_fun
File "D:\APP\win-pyvideotrans-v3.98-0401\_internal\qwen_tts\inference\qwen3_tts_model.py", line 112, in from_pretrained

model = AutoModel.from_pretrained(pretrained_model_name_or_path, **kwargs)

File "transformers\models\auto\auto_factory.py", line 604, in from_pretrained

return model_class.from_pretrained(

File "D:\APP\win-pyvideotrans-v3.98-0401\_internal\qwen_tts\core\models\modeling_qwen3_tts.py", line 1876, in from_pretrained

model = super().from_pretrained(

File "transformers\modeling_utils.py", line 277, in _wrapper

return func(*args, **kwargs)

File "transformers\modeling_utils.py", line 4900, in from_pretrained

checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(

File "transformers\modeling_utils.py", line 989, in _get_resolved_checkpoint_files

raise OSError(

OSError: Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory D:/APP/win-pyvideotrans-v3.98-0401/models/models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice.
"""

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

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 378, in run
File "videotrans\tts\_base.py", line 137, in run
File "videotrans\tts\_qwenttslocal.py", line 53, in _exec
File "videotrans\configure\_base.py", line 285, in _new_process
File "concurrent\futures\_base.py", line 458, in result
File "concurrent\futures\_base.py", line 403, in __get_result
OSError: Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory D:/APP/win-pyvideotrans-v3.98-0401/models/models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice.


=
system:Windows-10-10.0.19045-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/APP/win-pyvideotrans-v3.98-0401

1 Replies

这是 Qwen-TTS(本地) 配音渠道的模型文件下载不完整或缺失导致的错误。

解决方案:

  1. 检查模型目录:前往软件安装目录 D:/APP/win-pyvideotrans-v3.98-0401/models/,查看是否存在名为 models--Qwen--Qwen3-TTS-12Hz-1.7B-CustomVoice 的文件夹。
  2. 手动下载模型

    • 如果该文件夹存在,但内部缺少 pytorch_model.binmodel.safetensors 等核心模型文件,说明自动下载失败或不完整。
    • 你需要手动从 HuggingFace 下载完整的模型文件。模型地址为:https://huggingface.co/Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice
    • 将该页面所有文件(.json, .bin, .safetensors, .txt 等)下载下来,并复制到上述文件夹中(若已存在可直接覆盖)。
  3. 使用代理:如果无法访问 HuggingFace,请确保已在软件主界面的“网络代理地址”中填写了正确的代理地址(如 http://127.0.0.1:10808),然后尝试重新运行任务,软件可能会自动重试下载。
  4. 更换配音渠道:如果问题持续,可以暂时切换到其他配音渠道,例如免费的 Edge-TTSOmniVoice-TTS,以完成当前任务。

请查阅相关文档:

Post Your Reply