bruh moment 11
This commit is contained in:
parent
ed2bf00d69
commit
68975425ec
2
run.py
2
run.py
@ -9,7 +9,7 @@ if not shutil.which('ffmpeg'):
|
|||||||
quit()
|
quit()
|
||||||
if '--gpu' not in sys.argv:
|
if '--gpu' not in sys.argv:
|
||||||
core.globals.providers = ['CPUExecutionProvider']
|
core.globals.providers = ['CPUExecutionProvider']
|
||||||
else if 'ROCMExecutionProvider' not in core.globals.providers:
|
elif 'ROCMExecutionProvider' not in core.globals.providers:
|
||||||
import torch
|
import torch
|
||||||
if not torch.cuda.is_available() and args['gpu']:
|
if not torch.cuda.is_available() and args['gpu']:
|
||||||
quit("You are using --gpu flag but CUDA isn't available on your system.")
|
quit("You are using --gpu flag but CUDA isn't available on your system.")
|
||||||
|
Loading…
Reference in New Issue
Block a user