#6788 配音阶段出错 [OmniVoice(内置)] Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory

104.28.**1 Posted at: 6 hours ago

配音阶段出错 [OmniVoice(内置)] Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory D:/TTS/win-pyvideotrans-v4.10/models/models--k2-fsa--OmniVoice.
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 156, in process_task

File "videotrans\task\dubbing.py", line 55, in dubbing

File "videotrans\task\dubbing.py", line 208, in _tts

File "videotrans\tts\__init__.py", line 233, in run

File "videotrans\tts\_base.py", line 103, in run

File "videotrans\tts\_omnivoice.py", line 41, in _exec

File "videotrans\configure\base.py", line 270, in _new_process

videotrans.configure.excepts.VideoTransError: Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory D:/TTS/win-pyvideotrans-v4.10/models/models--k2-fsa--OmniVoice.
[DubbingSrt]语音合成: self.out_ext='m4a',self.is_multi_role=False
[TaskCfgTTS]
原始输入文件名: D:/Users/Administrator/Documents/0046-zh-CN_副本 - 副本.srt,
输出结果保存到文件夹: D:/TTS/win-pyvideotrans-v4.10/output/tts,
临时文件夹: D:/TTS/win-pyvideotrans-v4.10/tmp/17056/97ad23945e
已启用CUDA加速
配音渠道:OmniVoice(内置), 角色:zh_male_bj.wav, 配音语言:zh-cn
音量:+0%, 语速:+0%, 未选 音频加速
未选 移除字幕间空隙, 未选 强制对齐字幕和声音
代理地址:http://127.0.0.1:10808


=
system:Windows-10-10.0.19045-SP0
version:v4.10
frozen:True
language:zh
root_dir:D:/TTS/win-pyvideotrans-v4.10

1 Replies

#1 DeepSeek reply at 6 hours ago

这是 OmniVoice 本地模型未完整下载或缺失导致的。

该渠道首次使用时需要从 HuggingFace 下载模型到 D:/TTS/win-pyvideotrans-v4.10/models/models--k2-fsa--OmniVoice 目录,当前目录中缺少 model.safetensorspytorch_model.bin 主模型文件,通常是因为自动下载失败或文件不完整。

请按以下步骤操作:

  1. 删除或备份当前不完整目录 D:/TTS/win-pyvideotrans-v4.10/models/models--k2-fsa--OmniVoice
  2. 手动下载 OmniVoice 模型全部文件:https://huggingface.co/k2-fsa/OmniVoice/tree/main
  3. 将下载的文件放入上述目录,确保主模型文件名为 model.safetensors(如果浏览器自动改名如 model(2).safetensors,必须改回原名)。
  4. 重新打开软件执行配音。

如果手动下载后仍报错,请将 logs/ 目录中最新日志的尾部约30行内容发给我。

请查阅相关文档:

Thinking...
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.

Dondate via ko-fi.com

Related resource