From a080e19f91f53c49b55cc8060bbc8eb2d507dbe1 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Thu, 5 Jun 2025 10:48:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=B8=8D=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E5=91=8A=E8=AD=A6AttributeError:=20module=20'onnxrunt?= =?UTF-8?q?ime'=20has=20no=20attribute=20'preload=5Fdlls'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去除不需要的告警AttributeError: module 'onnxruntime' has no attribute 'preload_dlls' --- GPT_SoVITS/text/g2pw/onnx_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPT_SoVITS/text/g2pw/onnx_api.py b/GPT_SoVITS/text/g2pw/onnx_api.py index 7bd8137..a826810 100644 --- a/GPT_SoVITS/text/g2pw/onnx_api.py +++ b/GPT_SoVITS/text/g2pw/onnx_api.py @@ -23,8 +23,8 @@ from .utils import load_config onnxruntime.set_default_logger_severity(3) try: onnxruntime.preload_dlls() -except: - traceback.print_exc() +except:pass + #traceback.print_exc() warnings.filterwarnings("ignore") model_version = "1.1"