Skip to content

Commit

Permalink
fix(pre-sd): make Pyanote.audio use GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinyJustyZ committed Nov 9, 2023
1 parent 6ca851e commit c9d49ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _process_one(
)
if pipeline is None:
raise ValueError("Failed to load pipeline")

pipeline = pipeline.to(torch.device("cuda"))
LOG.info(f"Processing {input_path}. This may take a while...")
diarization = pipeline(
input_path, min_speakers=min_speakers, max_speakers=max_speakers
Expand Down

0 comments on commit c9d49ca

Please sign in to comment.