#7206 Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory F:/VideoTrans/models/m

45.154**4 Posted at: 55 minutes ago

Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory F:/VideoTrans/models/models--k2-fsa--OmniVoice.:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'en_female_2.wav', 'filename': 'C:\Users\Administrator\AppData\Local\Temp/pyvideotrans/3-1789182886.836856.wav', 'tts_type': 3, 'language': 'en', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 230, 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 F:/VideoTrans/models/models--k2-fsa--OmniVoice.


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:F:/VideoTrans

1 Replies

#1 DeepSeek reply at 55 minutes ago

这是因为 OmniVoice 模型文件下载不完整或缺失导致的:软件在 F:/VideoTrans/models/models--k2-fsa--OmniVoice 目录中找不到核心模型文件 model.safetensorspytorch_model.bin,说明模型未成功下载或下载中断。

解决方案(按顺序操作):

  1. 删除已损坏的模型目录
    彻底删除 F:/VideoTrans/models/models--k2-fsa--OmniVoice 整个文件夹(残留的不完整文件会干扰重新下载)。
  2. 手动下载模型(推荐,因自动下载易失败)
    打开地址:https://huggingface.co/k2-fsa/OmniVoice/tree/main
    下载该页面所有文件(包括 model.safetensors、配置文件等)。
    若无法访问 huggingface,请使用镜像站:https://hf-mirror.com/k2-fsa/OmniVoice/tree/main
  3. 放置到正确位置
    将下载的所有文件放入:
    F:/VideoTrans/models/models--k2-fsa--OmniVoice
    注意:下载时如出现 model(2).safetensors 之类被浏览器自动重命名的文件,必须改回原名 model.safetensors
  4. 重启软件后重试配音

排查提示:若目录中文件看起来"存在"但仍报此错,通常是下载不完整(只下了一部分),请删除后按上述步骤重新下载。

请查阅相关文档:

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