Skip to content

Commit

Permalink
Fix preprocess if folder exists
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisewf committed Jan 20, 2024
1 parent c9cdf08 commit 38aef8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Applio
logs
*.exe
*.pt
rvc/pretraineds
Expand Down
2 changes: 1 addition & 1 deletion core.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def run_preprocess_script(model_name, dataset_path, sampling_rate):
str(sampling_rate),
str(per),
]
os.makedirs(os.path.join(logs_path, str(model_name)), exist_ok=True)

os.mkdir(os.path.join(logs_path, str(model_name)))
subprocess.run(command)
return f"Model {model_name} preprocessed successfully."

Expand Down

0 comments on commit 38aef8e

Please sign in to comment.