- fix cpu argument for separation

This commit is contained in:
Vadim committed 2023-05-21 22:25:47 +02:00
1 parent b8ca18dee7
commit 13477dde06
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@ def separate_audio(input_file_path, output_file, device="cpu"):
# Model selection?
# -n mdx_q
# -n htdemucs_ft
device = "-d cpu" if device == "cpu" else "cuda"
device = "cpu" if device != "cuda" else "cuda"
subprocess.run(["demucs", "-d", device, "--two-stems=vocals", input_file_path])
separated_folder = path_join(current_executor_path(), "separated")