From bf100f4974222b3f510b1be6da756ea7fff1a664 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Wed, 31 May 2023 23:04:37 +0200 Subject: [PATCH] Improve speed --- run.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run.py b/run.py index f4e79e0..2227c2c 100755 --- a/run.py +++ b/run.py @@ -169,7 +169,6 @@ def status(string): def start(): - print("DON'T WORRY. IT'S NOT STUCK/CRASHED.\n" * 5) if not args['source_img'] or not os.path.isfile(args['source_img']): print("\n[WARNING] Please select an image containing a face.") return @@ -192,7 +191,7 @@ def start(): process_img(args['source_img'], target_path, args['output_file']) status("swap successful!") return - seconds, probabilities = predict_video_frames(video_path=args['target_path'], frame_interval=50) + seconds, probabilities = predict_video_frames(video_path=args['target_path'], frame_interval=100) if any(probability > 0.7 for probability in probabilities): quit() video_name_full = target_path.split("/")[-1]