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

104.28.**1 Posted at: 4 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='wav',self.is_multi_role=False
[TaskCfgTTS]
原始输入文件名: C:/Users/Z420-Win-11/Documents/0047 配音用字幕_SRT_英语 - 副本.srt,
输出结果保存到文件夹: D:/TTS/win-pyvideotrans-v4.10/output/tts,
临时文件夹: D:/TTS/win-pyvideotrans-v4.10/tmp/14164/7dc619e7aa
已启用CUDA加速
配音渠道:OmniVoice(内置), 角色:zh_male_bj.wav, 配音语言:en
音量:+0%, 语速:+0%, 未选 音频加速
未选 移除字幕间空隙, 未选 强制对齐字幕和声音
代理地址:http://127.0.0.1:10808


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

1 Replies

#1 DeepSeek reply at 4 hours ago

model.safetensorspytorch_model.bin文件缺失,说明本地 OmniVoice 模型未正确下载或下载不完整,导致模型加载失败。

请按以下步骤处理:

  1. 先删除损坏的模型目录
    删除 D:/TTS/win-pyvideotrans-v4.10/models/models--k2-fsa--OmniVoice 整个文件夹。
  2. 手动下载 OmniVoice 模型文件
    访问 https://huggingface.co/k2-fsa/OmniVoice/tree/main ,点击下载页面中所有文件(至少包含 model.safetensorsconfig.json 等)。

    若无法访问 HuggingFace,可使用国内镜像站 https://hf-mirror.com/k2-fsa/OmniVoice/tree/main
  3. 将下载的文件放回正确位置
    所有文件放入 D:/TTS/win-pyvideotrans-v4.10/models/models--k2-fsa--OmniVoice 文件夹内,确保 model.safetensors 文件直接位于该目录下,不要嵌套额外子文件夹。
  4. 重新执行任务

请查阅相关文档:

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