mirror of
https://github.com/rakuri255/UltraSinger.git
synced 2026-11-20 13:07:52 +09:00
- fix cpu argument for separation
This commit is contained in:
1 parent
b8ca18dee7
commit
13477dde06
1 file changed
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user