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

45.154**4 Posted at: 56 minutes ago

Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory F:/VideoTrans/models/models--k2-fsa--OmniVoice\audio_tokenizer.
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\audio_tokenizer.

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 56 minutes ago

这是 OmniVoice 内置渠道使用的 audio_tokenizer 模型文件缺失或不完整导致的。软件在指定目录中找不到 model.safetensorspytorch_model.bin,说明模型没有下载成功(或只下载了一部分)。

解决办法(手动下载 OmniVoice 模型):

  1. 打开 HuggingFace 上的 OmniVoice 模型页面:
    https://huggingface.co/k2-fsa/OmniVoice/tree/main
  2. 下载其中所有文件(务必包含 audio_tokenizer 子目录内的全部文件,通常含有 model.safetensorspytorch_model.bin 等)。
  3. 将下载的文件覆盖到软件目录:
    F:/VideoTrans/models/models--k2-fsa--OmniVoice/
    注意 audio_tokenizer 子目录结构要保持一致,最终路径应为:
    F:/VideoTrans/models/models--k2-fsa--OmniVoice/audio_tokenizer/
  4. 若之前下载的目录中已存在残缺文件,建议先删除整个 models--k2-fsa--OmniVoice 文件夹,再重新下载放置,避免残缺文件残留。
  5. 完成后重启软件,再次执行任务。

注意事项:

  • 若浏览器自动重命名了同名文件(如 model(2).safetensors),必须改回原始文件名。
  • 该软件目录中,模型文件缺失或体积不完整是此类报错最常见的根因,手动下载是最可靠的解决方式。

如果按上述操作覆盖完整文件后仍报同样错误,请提供 logs/ 目录下最新的日志文件(复制底部约 30 行)以便进一步分析。

请查阅相关文档:

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