Update run.py
This commit is contained in:
parent
c39485bca0
commit
997eda5695
2
run.py
2
run.py
@ -11,7 +11,7 @@ if '--gpu' not in sys.argv:
|
|||||||
core.globals.providers = ['CPUExecutionProvider']
|
core.globals.providers = ['CPUExecutionProvider']
|
||||||
elif '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():
|
||||||
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.")
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
|
Loading…
Reference in New Issue
Block a user