pyannote / pyannote-metrics

A toolkit for reproducible evaluation, diagnostic, and error analysis of speaker diarization systems
http://pyannote.github.io/pyannote-metrics
MIT License
186 stars 33 forks source link

ImportError: cannot import name 'Pipeline' from 'pyannote.audio' #62

Open walidbou6 opened 2 years ago

walidbou6 commented 2 years ago

tried to run the example of speaker segmentation got the following error:

ImportError: cannot import name 'Pipeline' from 'pyannote.audio'

pyannote.audio @ https://github.com/pyannote/pyannote-audio/archive/develop.zip
pyannote.core==4.4
pyannote.database==4.1.3
pyannote.metrics==3.2
pyannote.pipeline==2.2
hbredin commented 2 years ago

Would you mind sharing a minimum reproducible example in Google Colab?

walidbou6 commented 2 years ago

I just run the first line of this code:

from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained("pyannote/speaker-segmentation")
output = pipeline("audio.wav")

for turn, _, speaker in output.itertracks(yield_label=True):
    # speaker speaks between turn.start and turn.end
hbredin commented 2 years ago

Please share a notebook on Google Colab where the error actually happens because I cannot reproduce it.