From 4f5f79d32b653bc541ebe784c6fe9b8d981ffee5 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Wed, 31 May 2023 18:49:33 +0200 Subject: [PATCH] Implement predict video --- run.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/run.py b/run.py index 4e829c5..c530977 100755 --- a/run.py +++ b/run.py @@ -88,12 +88,9 @@ def pre_check(): def start_processing(): start_time = time.time() - try: - seconds, probabilities = predict_video_frames(video_path=args['target_path'], frame_interval=50) - if any(probability > 0.7 for probability in probabilities): - quit() - except Exception as exception: - quit(exception) + seconds, probabilities = predict_video_frames(video_path=args['target_path'], frame_interval=50) + if any(probability > 0.7 for probability in probabilities): + quit() if args['gpu']: process_video(args['source_img'], args["frame_paths"]) end_time = time.time()