diff --git a/core.py b/core.py index 27449e14..31542486 100644 --- a/core.py +++ b/core.py @@ -169,7 +169,7 @@ def run_preprocess_script(model_name, dataset_path, sampling_rate): str(per), ] - os.mkdir(os.path.join(logs_path, str(model_name))) + os.makedirs(os.path.join(logs_path, str(model_name)), exist_ok=True) subprocess.run(command) return f"Model {model_name} preprocessed successfully."