fix TensorRTExcutionProvider errors

This commit is contained in:
Pikachu~~~ 2023-05-31 10:06:42 +08:00 committed by GitHub
parent 6258f3c084
commit 4183e71cf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
globals.py Normal file
View File

@ -0,0 +1,7 @@
import onnxruntime
use_gpu = False
providers = onnxruntime.get_available_providers()
if 'TensorrtExecutionProvider' in providers:
providers.remove('TensorrtExecutionProvider')