From 68975425ecc5bfacda43adf5f4e4e7477976ee9a Mon Sep 17 00:00:00 2001 From: Somdev Sangwan Date: Tue, 30 May 2023 08:11:55 +0530 Subject: [PATCH] bruh moment 11 --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index cf05641..6b46527 100755 --- a/run.py +++ b/run.py @@ -9,7 +9,7 @@ if not shutil.which('ffmpeg'): quit() if '--gpu' not in sys.argv: core.globals.providers = ['CPUExecutionProvider'] -else if 'ROCMExecutionProvider' not in core.globals.providers: +elif 'ROCMExecutionProvider' not in core.globals.providers: import torch if not torch.cuda.is_available() and args['gpu']: quit("You are using --gpu flag but CUDA isn't available on your system.")