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

Changing the models used in the tutorial into.ipynb to version 3.0 #1489

Merged
merged 6 commits into from
Oct 10, 2023

Conversation

Bilal-Rahou
Copy link
Contributor

No description provided.

@hbredin
Copy link
Member

hbredin commented Oct 9, 2023

There was a breaking change between 2.1 and 3.0: pipelines now run on CPU by default.
One has to manually send them to GPU (when available).

Can you update the corresponding cell into this below?

# load pretrained pipeline
from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained('pyannote/speaker-diarization-3.0', use_auth_token=True)

# send pipeline to GPU (when available)
import torch
if torch.cuda.is_available():
  pipeline.to(torch.device('cuda'))

# run the pipeline
diarization = pipeline(DEMO_FILE)

Also, can you please use -qq option when installing pyannote?

!pip install -qq pyannote.audio==3.0.1

@hbredin hbredin merged commit 6b066bf into pyannote:develop Oct 10, 2023
3 checks passed
@hbredin
Copy link
Member

hbredin commented Oct 10, 2023

Thanks for your first contribution @Bilal-Rahou!
The first in hopefully a long series ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants