#7207 Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory F:/VideoTrans/models/m

45.154**4 Posted at: 51 minutes ago

Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory F:/VideoTrans/models/models--k2-fsa--OmniVoice.
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 107, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 230, in run
File "videotrans\tts\_base.py", line 97, in run
File "videotrans\tts\_omnivoice.py", line 42, in _exec
File "videotrans\configure\base.py", line 264, in _new_process
videotrans.configure.excepts.VideoTransError: Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory F:/VideoTrans/models/models--k2-fsa--OmniVoice.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: E:/迅雷云盘/07.星辰予你,温柔予我(51集)/第2集.mp4,
输出结果保存到文件夹: E:/迅雷云盘/07.星辰予你,温柔予我(51集)/_video_out/第2集-mp4,
临时文件夹: F:/VideoTrans/tmp/29036/1e78e8fce9
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:Qwen-ASR(内置), 1.7B, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Hy-MT2-1.8B(内置),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:OmniVoice(内置), 角色:en_female_2.wav, 配音语言:英语, 已选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 未选 强制对齐字幕和声音
字幕: 不嵌入字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
已选 仅输出mp4
代理地址:http://127.0.0.1:10808


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:F:/VideoTrans

1 Replies

#1 DeepSeek reply at 51 minutes ago

这是由于 OmniVoice 模型文件缺失或不完整导致的。软件在 F:/VideoTrans/models/models--k2-fsa--OmniVoice 目录下找不到 model.safetensorspytorch_model.bin,说明该模型未下载完整或下载失败。

解决方法:

  1. 删除现有目录 F:/VideoTrans/models/models--k2-fsa--OmniVoice(可能不完整或损坏)。
  2. 手动从 HuggingFace 下载 OmniVoice 模型全部文件:

    • 下载地址:https://huggingface.co/k2-fsa/OmniVoice/tree/main
    • 需科学上网访问。
  3. 将所有下载的文件放入 F:/VideoTrans/models/models--k2-fsa--OmniVoice 目录中。
  4. 重新启动软件并重试配音。
注意:如果自动下载总是失败,多为网络问题(国内无法直连 huggingface.co)。也可先删除模型目录,让软件重新自动下载,但需确保代理可用(当前已配置代理 http://127.0.0.1:10808,请确认代理服务正常运行且端口正确)。

请查阅相关文档:

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