GithubHelp home page GithubHelp logo

Comments (4)

ulfkemmsies avatar ulfkemmsies commented on July 20, 2024 1

I also have this error. This seems like a simple fix!

from whisperx.

Lucidology avatar Lucidology commented on July 20, 2024

I have this error as well

from whisperx.

Lucidology avatar Lucidology commented on July 20, 2024

Fix:
This bug was caused by the fix for another bug from #499

It said to:

pip install pyannote.audio==3.0.1
pip uninstall onnxruntime
pip install --force-reinstall onnxruntime-gpu

I did:

pip uninstall pyannote.audio
pip install pyannote.audio

And now it works, I can fully transcribe and diarize a sound file, I have not tested if this still has the problem from 499 where diarization is slow and runs on the CPU. There is probably a way to pass in the device using python code or maybe just hack the code.

from whisperx.

SeeknnDestroy avatar SeeknnDestroy commented on July 20, 2024

hi @eliich, your pyannote.audio version should match with the diarization pipeline model. please chech it via pip show pyannote.audio, if it shows:

Name: pyannote.audio
Version: 3.0.1

then use:

diarize_model = whisperx.DiarizationPipeline(model_name="pyannote/speaker-diarization-3.0", use_auth_token=hf_token, device=self.device)
diarize_segments = diarize_model(audio)
result = whisperx.assign_word_speakers(diarize_segments, result)

let me know if it helps!

from whisperx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.