Update asst.py

This commit is contained in:
MistEO
2023-07-11 21:50:17 +08:00
committed by GitHub
parent 16e7d226e7
commit 1a8a086e4e

View File

@@ -52,12 +52,6 @@ class Asst:
platform_type = platform.system().lower()
if platform_type == 'windows':
lib_import_func = ctypes.WinDLL
# 手动加载onnxruntime.dll以避免部分版本的python错误地从System32加载旧版本
try:
lib_import_func(str(pathlib.Path(path) / 'onnxruntime_maa.dll'))
except Exception as e:
print(e)
pass
else:
lib_import_func = ctypes.CDLL