Merge pull request #151 from Moeblack/TensorRTExcutionProvider-error

fix TensorRTExcutionProvider errors
This commit is contained in:
Somdev Sangwan 2023-05-31 09:37:44 +05:30 committed by GitHub
commit c2ce47dec5
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')