#6623 Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory D:/Ruanjian-m/win-pyvi

2409:**:150e Posted at: 5 hours ago

Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory D:/Ruanjian-m/win-pyvideotrans-v4.08/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 D:/Ruanjian-m/win-pyvideotrans-v4.08/models/models--k2-fsa--OmniVoice.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/视频制作/长续航无人机/Creating the World's Most Efficient Drone - V1-(1080p25).mp4,
输出结果保存到文件夹: D:/视频制作/长续航无人机/_video_out/Creating the World's Most Efficient Drone - V1-(1080p25)-mp4,
临时文件夹: D:/Ruanjian-m/win-pyvideotrans-v4.08/tmp/21624/e547ca7177
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), tiny, 发音语言: 英语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:OmniVoice(内置), 角色:clone, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件


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

1 Replies

#1 DeepSeek reply at 5 hours ago

这是由 OmniVoice 模型文件未完整下载或目录中缺少模型主文件导致的。报错明确显示 models/models--k2-fsa--OmniVoice 目录下没有 model.safetensorspytorch_model.bin,而 OmniVoice 配音渠道首次使用时必须在线下载该模型才能运行。

解决方案

  1. 删除不完整的模型目录:进入 D:/Ruanjian-m/win-pyvideotrans-v4.08/models/,删除 models--k2-fsa--OmniVoice 文件夹(如果存在)。
  2. 手动下载模型:访问 https://huggingface.co/k2-fsa/OmniVoice/tree/main ,下载该页面下的全部文件,然后将它们放入 D:/Ruanjian-m/win-pyvideotrans-v4.08/models/models--k2-fsa--OmniVoice/ 目录。
  3. 文件名必须严格正确:核心文件名必须是 model.safetensorspytorch_model.bin。如果浏览器下载时自动重命名(例如 model(2).safetensors),请务必改回原名,否则软件无法识别。
  4. 确认网络渠道:huggingface.co 对国内访问不稳定,可开启科学上网后重试;下载时建议使用稳定网络,避免中断导致文件残缺。
  5. 完成后重新启动软件再执行翻译任务。

请查阅相关文档:

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