#2918 onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from A:/BaiduN

94.177* Posted at: 15 hours ago 👁9

:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 17, in run
File "videotrans\tts\__init__.py", line 360, in run
File "videotrans\tts\_base.py", line 183, in run
File "videotrans\tts\_base.py", line 211, in _local_mul_thread
File "videotrans\tts\_supertonic.py", line 64, in _item_task
File "videotrans\util\helper_supertonic.py", line 330, in load_text_to_speech
File "videotrans\util\helper_supertonic.py", line 303, in load_onnx_all
File "videotrans\util\helper_supertonic.py", line 286, in load_onnx
File "onnxruntime\capi\onnxruntime_inference_collection.py", line 485, in init

self._sess = sess

File "onnxruntime\capi\onnxruntime_inference_collection.py", line 573, in _create_inference_session
onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from A:/BaiduNetdiskDownload/py/models/models--Supertone--supertonic-2/onnx\text_encoder.onnx failed:Load model A:/BaiduNetdiskDownload/py/models/models--Supertone--supertonic-2/onnx\text_encoder.onnx failed. File doesn't exist


=
system:Windows-10-10.0.19045-SP0
version:v3.95
frozen:True
language:zh
root_dir:A:/BaiduNetdiskDownload/py

1 Replies

这是由于 supertonic-2 本地 TTS 模型的 ONNX 文件缺失或路径错误导致的。

解决方案:

  1. 检查模型文件:前往 A:/BaiduNetdiskDownload/py/models/ 目录,确认 models--Supertone--supertonic-2/onnx/ 文件夹下是否存在 text_encoder.onnx 等模型文件。
  2. 重新下载模型:如果文件缺失,请尝试在软件内重新下载该模型,或手动从 HuggingFace 镜像站下载完整的 supertonic-2 模型文件,并严格按照 models--Supertone--supertonic-2 的文件夹结构放置到 models/ 目录下。
  3. 检查路径字符:确保软件根目录及模型路径不包含中文、空格或特殊符号。当前路径 A:/BaiduNetdiskDownload/py 是合规的。
  4. 使用其他 TTS 渠道:作为临时解决方案,可切换到其他可用的配音渠道,如 Edge-TTS 或 F5-TTS。

参考文档:

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.

Related resource