mirror of
https://github.com/s0md3v/roop.git
synced 2025-10-05 08:17:00 +08:00
fix #69
This commit is contained in:
5
run.py
5
run.py
@@ -9,10 +9,9 @@ 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:
|
||||||
if 'ROCMExecutionProvider' not in core.globals.providers:
|
|
||||||
import torch
|
import torch
|
||||||
if not torch.cuda.is_available():
|
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.")
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
|
Reference in New Issue
Block a user