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

117.176**9 Posted at: 1 hour ago

配音阶段出错 [OmniVoice(内置)] Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory D:/win-pyvideotrans-v4.15/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 122, 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 D:/win-pyvideotrans-v4.15/models/models--k2-fsa--OmniVoice.
trk=[DubbingSrt]: uuid='cb6cd1c7c3', proxy_str=None, cfg=[TaskCfgTTS]
原始输入文件名: D:/win-pyvideotrans-v4.15/tmp/17564/20261012-210625.txt,
输出结果保存到文件夹: D:/win-pyvideotrans-v4.15/output/tts,
临时文件夹: D:/win-pyvideotrans-v4.15/tmp/17564/cb6cd1c7c3
未启用CUDA加速
配音渠道:OmniVoice(内置), 角色:zh_male_bj.wav, 配音语言:zh-cn
音量:+0%, 语速:+0%, 未选 音频加速
已选 移除字幕间空隙, 未选 强制对齐字幕和声音
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default, 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.26200-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 1 hour ago

这是因为 OmniVoice(内置) 的模型文件未下载完整或缺失。软件首次使用该渠道时会自动从 HuggingFace 下载模型到 D:/win-pyvideotrans-v4.15/models/models--k2-fsa--OmniVoice,由于模型体积较大、网络不稳定等原因,下载中断或文件不完整就会出现这个报错。

解决办法:

  1. 关闭软件,删除 D:/win-pyvideotrans-v4.15/models/models--k2-fsa--OmniVoice 整个文件夹;
  2. 重新打开软件再次使用 OmniVoice 配音,让软件重新下载模型;
  3. 如果自动下载仍失败,请手动下载:访问 https://huggingface.co/k2-fsa/OmniVoice/tree/main ,将该页面所有文件下载后放到 D:/win-pyvideotrans-v4.15/models/models--k2-fsa--OmniVoice 文件夹内;
  4. 若无法访问 HuggingFace,可开启科学上网,或检查软件主界面“网络代理”是否填写正确;
  5. 如果不想等待模型下载,可先在配音渠道中改用 Edge-TTS(免费) 等其他渠道,不影响使用。

请查阅相关文档:

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