From 15cd4b8a222b7ba25f2681ce8158e15fd8ec5107 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Tue, 30 May 2023 01:28:42 +0200 Subject: [PATCH] Move process time to the correct place --- run.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/run.py b/run.py index 4245c39..7568e55 100755 --- a/run.py +++ b/run.py @@ -64,6 +64,7 @@ def start_processing(): start_time = time.time() if args['gpu']: process_video(args['source_img'], args["frame_paths"]) +<<<<<<< HEAD <<<<<<< HEAD end_time = time.time() print(flush=True) @@ -71,6 +72,10 @@ def start_processing(): print(flush=True) end_time = time.time() >>>>>>> 2b14613 (Move process time to the correct place) +======= + end_time = time.time() + print(flush=True) +>>>>>>> 0f782ff (Move process time to the correct place) print(f"Processing time: {end_time - start_time:.2f} seconds", flush=True) return frame_paths = args["frame_paths"] @@ -83,6 +88,7 @@ def start_processing(): p.get() pool.close() pool.join() +<<<<<<< HEAD <<<<<<< HEAD end_time = time.time() print(flush=True) @@ -119,7 +125,10 @@ def preview_video(video_path): cap.release() ======= print(flush=True) +======= +>>>>>>> 0f782ff (Move process time to the correct place) end_time = time.time() + print(flush=True) print(f"Processing time: {end_time - start_time:.2f} seconds", flush=True) >>>>>>> 2b14613 (Move process time to the correct place)