#6511 Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory I:/win-pyvideotrans-v4

2409:**:3ccf Posted at: 1 hour ago

Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory I:/win-pyvideotrans-v4.09/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 282, in _new_process
videotrans.configure.excepts.VideoTransError: Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory I:/win-pyvideotrans-v4.09/models/models--k2-fsa--OmniVoice.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/老友记.Friends.S10EP02-mkv/output_3min.mp4,
输出结果保存到文件夹: D:/老友记.Friends.S10EP02-mkv/_video_out/output_3min-mp4,
临时文件夹: I:/win-pyvideotrans-v4.09/tmp/10016/5aceb8f386
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:M2M100(内置),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:OmniVoice(内置), 角色:clone, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕


=
system:Windows-10-10.0.17763-SP0
version:v4.09
frozen:True
language:zh
root_dir:I:/win-pyvideotrans-v4.09

1 Replies

OmniVoice(内置)渠道依赖的模型文件未完整下载或未正确放置:软件在 models/models--k2-fsa--OmniVoice 目录中找不到 model.safetensorspytorch_model.bin。通常是因为自动下载中断、只下载了部分文件,或下载后文件被浏览器重命名(如 model(2).safetensors)导致无法识别。

处理步骤:

  1. 先关闭软件,删除不完整的模型目录:I:\win-pyvideotrans-v4.09\models\models--k2-fsa--OmniVoice
  2. 重新打开软件,再次选择 OmniVoice(内置) 配音渠道会自动触发完整下载;或手动下载完整模型:

  3. 确保这些文件直接放在该目录内,不要再嵌套一层子文件夹;如果浏览器自动把文件改名成 model(2).safetensors,请改回原名 model.safetensors
  4. 如果自动下载反复失败,建议先挂稳定的代理,或检查网络再手动下载。模型完整后重新运行翻译任务。

请查阅相关文档:

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

Dondate via PayPal

Related resource