mirror of
https://github.com/s0md3v/roop.git
synced 2025-10-05 08:17:00 +08:00

- 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')
|