#6887 Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/pyvideotransv/model

116.149.**1 Posted at: 1 hour ago

Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/pyvideotransv/models/models--k2-fsa--OmniVoice.
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 106, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 100, in _tts
File "videotrans\tts\__init__.py", line 228, in run
File "videotrans\tts\_base.py", line 105, 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 E:/pyvideotransv/models/models--k2-fsa--OmniVoice.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
临时文件夹: E:/pyvideotransv/tmp/24152/e03c59add2
已选 清理已存在
已启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量2
语音识别:faster-whisper(内置), large-v3, 发音语言: 日语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:OmniVoice(内置), 角色:clone, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件


=
system:Windows-10-10.0.26200-SP0
version:v4.09
frozen:True
language:zh
root_dir:E:/pyvideotransv

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 OmniVoice 语音合成模型文件下载不完整或缺失导致的。Error no file named model.safetensors 说明模型目录 E:/pyvideotransv/models/models--k2-fsa--OmniVoice 中没有模型权重文件,或文件只下载了一部分。

解决方法:

  1. 关闭软件,进入 E:/pyvideotransv/models/ 目录,找到 models--k2-fsa--OmniVoice 文件夹,彻底删除该文件夹。
  2. 重新打开软件,再次执行翻译任务,让软件重新自动下载模型。若自动下载多次仍失败,请手动下载模型:

  3. 注意下载时防止浏览器自动重命名,例如 model.safetensors 不要变成 model(2).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