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

198.84**0 Posted at: 21 hours ago

配音阶段出错 [OmniVoice(内置)] Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory C:/Users/徐义豪/Desktop/fanyi/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 155, in process_task

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

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

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

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

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

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

videotrans.configure.excepts.VideoTransError: Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory C:/Users/徐义豪/Desktop/fanyi/models/models--k2-fsa--OmniVoice.
trk=[DubbingSrt]: uuid='176cd994d0', proxy_str='http://127.0.0.1:10808', cfg=[TaskCfgTTS]
原始输入文件名: D:/谷歌下载/downloads/一文钱,乞丐捡漏当县令/一文钱,乞丐捡漏当县令-越南语配音字幕.srt,
输出结果保存到文件夹: D:/谷歌下载/downloads/一文钱,乞丐捡漏当县令,
临时文件夹: C:/Users/徐义豪/Desktop/fanyi/tmp/30036/176cd994d0
已启用CUDA加速
配音渠道:OmniVoice(内置), 角色:zh_female_cn.wav, 配音语言:vi
音量:+0%, 语速:+0%, 已选 音频加速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
代理地址:http://127.0.0.1:10808, precent=1, hasend=False, should_recogn=False, should_trans=False, should_dubbing=True, should_hebing=False, out_ext='wav', is_multi_role=False, ignore_align=False, output_folder=None, subs=[]


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:C:/Users/徐义豪/Desktop/fanyi

1 Replies

#1 DeepSeek reply at 21 hours ago

这是因为 OmniVoice 模型未下载完整——目录 models--k2-fsa--OmniVoice 存在但缺少核心权重文件(model.safetensors 或 pytorch_model.bin)。由于该模型体积大且托管在 huggingface.co,国内网络中断或镜像限流会导致下载不完整。

解决步骤:

  1. 关闭软件,进入 C:/Users/徐义豪/Desktop/fanyi/models/,彻底删除 models--k2-fsa--OmniVoice 文件夹(当前是残缺缓存,不删会继续复用)。
  2. 手动下载模型:打开 https://huggingface.co/k2-fsa/OmniVoice/tree/main ,点击每个文件右侧下载图标,下载该页全部文件(含 config.json、model.safetensors、tokenizer 相关文件、.py 文件等)。
  3. 在 models/ 下新建文件夹 models--k2-fsa--OmniVoice,把下载的所有文件直接放入其中(注意:若浏览器下载时自动重命名为 xx(2).safetensors,必须改回原文件名)。
  4. 重新启动软件,"设置更多参数"中确认不要勾选"清理已生成"以外的干扰项,重新执行配音。

补充建议:

  • 若需先出结果,可临时把配音渠道换为 Edge-TTS(免费)(支持越南语),模型下载完成后再切回 OmniVoice。
  • 下载全程需保持代理开启且稳定(你已填 http://127.0.0.1:10808),代理波动是导致文件残缺的常见原因。
  • 软件根目录下创建空文件 huggingface.txt 可强制走 huggingface 源站,避免镜像站下载残缺。

请查阅相关文档:

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