Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass device to demucs calls to ensure correct device is used #284

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Whisper_Transcription_+_NeMo_Diarization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@
" # Isolate vocals from the rest of the audio\n",
"\n",
" return_code = os.system(\n",
" f'python -m demucs.separate -n htdemucs --two-stems=vocals \"{audio_path}\" -o \"temp_outputs\"'\n",
" f'python -m demucs.separate -n htdemucs --two-stems=vocals \"{audio_path}\" -o \"temp_outputs\" --device \"{device}\"'\n",
" )\n",
"\n",
" if return_code != 0:\n",
Expand Down
2 changes: 1 addition & 1 deletion diarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
# Isolate vocals from the rest of the audio

return_code = os.system(
f'python -m demucs.separate -n htdemucs --two-stems=vocals "{args.audio}" -o temp_outputs'
f'python -m demucs.separate -n htdemucs --two-stems=vocals "{args.audio}" -o temp_outputs --device "{args.device}"'
)

if return_code != 0:
Expand Down
2 changes: 1 addition & 1 deletion diarize_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
# Isolate vocals from the rest of the audio

return_code = os.system(
f'python -m demucs.separate -n htdemucs --two-stems=vocals "{args.audio}" -o temp_outputs'
f'python -m demucs.separate -n htdemucs --two-stems=vocals "{args.audio}" -o temp_outputs --device "{args.device}"'
)

if return_code != 0:
Expand Down
Loading