#8010 Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/AI/pyvideotrans/mod

2406**ef9d Posted at: 1 hour ago

Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/AI/pyvideotrans/models/models--k2-fsa--OmniVoice\audio_tokenizer.:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'en_female_2.wav', 'filename': 'C:\Users\ADMINI~1\AppData\Local\Temp/pyvideotrans/3-1791810090.8930166.wav', 'tts_type': 3, 'language': 'zh-cn', 'volume': '+10%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 122, in run
File "videotrans\tts\_base.py", line 98, in run
File "videotrans\tts\_omnivoice.py", line 42, in _exec
File "videotrans\configure\base.py", line 277, in _new_process
videotrans.configure.excepts.VideoTransError: Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory E:/AI/pyvideotrans/models/models--k2-fsa--OmniVoice\audio_tokenizer.


=
system:Windows-10-10.0.19045-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:E:/AI/pyvideotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 OmniVoice 模型文件不完整导致的报错。audio_tokenizer 子目录中缺少 model.safetensors 或 pytorch_model.bin,说明模型没有下载完整或下载中断。

解决方法:

  1. 删除不完整的模型目录:关闭正在运行的任务,进入 E:/AI/pyvideotrans/models/,将 models--k2-fsa--OmniVoice 文件夹整体删除。
  2. 重新下载模型:

    • 重新执行一次配音任务,软件会自动从 https://huggingface.co/k2-fsa/OmniVoice/tree/main 重新下载;
    • 或手动访问该地址,下载全部文件到 E:/AI/pyvideotrans/models/models--k2-fsa--OmniVoice/ 内(注意路径和文件夹名完全一致)。
  3. 确保网络稳定:模型较大,下载时请保持网络顺畅。若自动下载持续失败,可参考手动下载方法。

请查阅相关文档:

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