mirror of
https://github.com/s0md3v/roop.git
synced 2025-10-31 03:36:21 +08:00
Restore globals, add process time for better comparison
This commit is contained in:
5
run.py
5
run.py
@@ -1,11 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import torch
|
||||
import shutil
|
||||
import core.globals
|
||||
|
||||
if not shutil.which('ffmpeg'):
|
||||
print('ffmpeg is not installed. Read the docs: https://github.com/s0md3v/roop#installation.\n' * 10)
|
||||
quit()
|
||||
if '--gpu' not in sys.argv:
|
||||
core.globals.providers = ['CPUExecutionProvider']
|
||||
|
||||
import glob
|
||||
import argparse
|
||||
|
||||
Reference in New Issue
Block a user