Merge branch 'main' into nsfw
This commit is contained in:
commit
466c8312a8
3
run.py
3
run.py
@ -70,7 +70,8 @@ def pre_check():
|
||||
if not os.path.isfile(model_path):
|
||||
quit('File "inswapper_128.onnx" does not exist!')
|
||||
if '--gpu' in sys.argv:
|
||||
if 'ROCMExecutionProvider' not in core.globals.providers:
|
||||
NVIDIA_PROVIDERS = ['CUDAExecutionProvider', 'TensorrtExecutionProvider']
|
||||
if len(list(set(core.globals.providers) - set(NVIDIA_PROVIDERS))) == 1:
|
||||
CUDA_VERSION = torch.version.cuda
|
||||
CUDNN_VERSION = torch.backends.cudnn.version()
|
||||
if not torch.cuda.is_available() or not CUDA_VERSION:
|
||||
|
Loading…
Reference in New Issue
Block a user