FaceswapperGPU / roop /globals.py
tsi-org's picture
Update roop/globals.py
2e7b2a8
raw
history blame contribute delete
568 Bytes
from typing import List
import torch # Import PyTorch to check for GPU availability
# Check if GPU is available and set the device accordingly
if torch.cuda.is_available():
device = torch.device("cuda")
else:
device = torch.device("cpu")
source_path = None
target_path = None
output_path = None
frame_processors: List[str] = []
keep_fps = None
keep_audio = None
keep_frames = None
many_faces = None
video_encoder = None
video_quality = None
max_memory = None
execution_providers: List[str] = []
execution_threads = None
headless = None
log_level = 'error'