From b116f2001a147342fd4ca7f8c26afda263c121eb Mon Sep 17 00:00:00 2001 From: henryruhs Date: Mon, 5 Jun 2023 12:42:24 +0200 Subject: [PATCH] Adjust comment --- roop/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roop/core.py b/roop/core.py index db8d48d..b187fc7 100755 --- a/roop/core.py +++ b/roop/core.py @@ -209,8 +209,9 @@ def start(preview_callback = None): process_video_multi_cores(args.source_img, args.frame_paths) else: process_video(args.source_img, args.frame_paths) + # prevent out of memory while using ffmpeg with cuda if args.gpu_vendor == 'nvidia': - torch.cuda.empty_cache() # prevent CUDA OOM when using ffmpeg cuda accel + torch.cuda.empty_cache() status("creating video...") create_video(video_name, exact_fps, output_dir) status("adding audio...")