From d5ba9b2cf4c6248a21ad65e0ffefb8843f9b6e41 Mon Sep 17 00:00:00 2001 From: andrew Date: Sun, 17 Sep 2023 09:56:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=96=B0=E5=BB=BA=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ApneaDetection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ApneaDetection.py b/ApneaDetection.py index f763433..7761f82 100644 --- a/ApneaDetection.py +++ b/ApneaDetection.py @@ -60,6 +60,7 @@ def main(opt): result = SA_Detect(model_path, data, opt.batch_size) # result.to_csv(Path(opt.output) / (one_file.stem + "segment.csv"), index=False) if opt.output: + Path(opt.output).mkdir(parents=True, exist_ok=True) save_path = Path(opt.output) / (one_file.stem + ".csv") else: save_path = None