#7362 Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/win-pyvideotrans-v4

2409**3098 Posted at: 1 hour ago

Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/win-pyvideotrans-v4.12-0913/models/models--k2-fsa--OmniVoice.:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'zh_female_cosy.wav', 'filename': 'E:/win-pyvideotrans-v4.12-0913/tmp/3024/listen_voice/3-zh-cn-1789560930.8899264.wav', 'tts_type': 3, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 232, in run
File "videotrans\tts\_base.py", line 97, in run
File "videotrans\tts\_omnivoice.py", line 42, in _exec
File "videotrans\configure\base.py", line 264, in _new_process
videotrans.configure.excepts.VideoTransError: Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/win-pyvideotrans-v4.12-0913/models/models--k2-fsa--OmniVoice.


=
system:Windows-10-10.0.22631-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:E:/win-pyvideotrans-v4.12-0913

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因是 OmniVoice(内置) 模型文件不完整或未下载成功:E:/win-pyvideotrans-v4.12-0913/models/models--k2-fsa--OmniVoice 目录中缺少 model.safetensorspytorch_model.bin。该渠道(tts_type=3 即 OmniVoice)首次使用需在线下载模型,下载失败或中断会导致目录看起来存在但文件不完整。

解决方案:

  1. 彻底删除 E:/win-pyvideotrans-v4.12-0913/models/models--k2-fsa--OmniVoice 整个文件夹。
  2. 优先手动下载模型(避免再次自动下载失败):

  3. 注意下载时若浏览器自动重命名(如 model(2).safetensors),必须改回原文件名,否则软件无法识别。
  4. 若无法访问 huggingface.co,请配置好代理/VPN 后重试,或改用其他配音渠道(如 Edge-TTS、Qwen3-TTS)先完成测试。
  5. 处理完毕后重启软件再次执行。
提示:模型体积较大,自动下载失败很常见,此为本次报错的直接诱因。

请查阅相关文档:

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