roop/core/globals.py
2023-05-31 12:43:43 +05:30

9 lines
203 B
Python

import torch
import onnxruntime
use_gpu = False
providers = onnxruntime.get_available_providers()
if 'TensorrtExecutionProvider' in providers:
providers.remove('TensorrtExecutionProvider')