d17a440cd6
- refactored "get_face" and "get_all_faces" to "get_face_single" and "get_face_many" respectively - moved all global booleans to top of file
9 lines
200 B
Python
9 lines
200 B
Python
import onnxruntime
|
|
|
|
use_gpu = False
|
|
all_faces = False
|
|
providers = onnxruntime.get_available_providers()
|
|
|
|
if 'TensorrtExecutionProvider' in providers:
|
|
providers.remove('TensorrtExecutionProvider')
|