From 654eb7afd5acde0b64a750b794374d5254ac027c Mon Sep 17 00:00:00 2001 From: Somdev Sangwan Date: Mon, 29 May 2023 19:26:02 +0530 Subject: [PATCH] fix filepath for windows --- run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run.py b/run.py index aeb16dc..0cde834 100644 --- a/run.py +++ b/run.py @@ -90,6 +90,8 @@ def start(): return video_name = target_path.split(sep)[-1].split(".")[0] output_dir = target_path.replace(target_path.split(sep)[-1], "") + sep + video_name + if sep = "\\": + output_dir = output_dir.lstrip("\\", "") Path(output_dir).mkdir(exist_ok=True) fps = detect_fps(target_path) if not args['keep_fps'] and fps > 30: