MahmoudAshraf97 / whisper-diarization

Automatic Speech Recognition with Speaker Diarization based on OpenAI Whisper
BSD 2-Clause "Simplified" License
3.77k stars 331 forks source link

AttributeError: module 'faster_whisper' has no attribute 'BatchedInferencePipeline' #265

Open Petervg1810 opened 3 weeks ago

Petervg1810 commented 3 weeks ago

When I run diarize.py I get the following error related to line 124:

AttributeError: module 'faster_whisper' has no attribute 'BatchedInferencePipeline'

Is there something I need to change to fix this? Thanks for your help.

MahmoudAshraf97 commented 3 weeks ago

Reinstall faster whisper from source

SIlver-- commented 2 weeks ago

I came across this problem as well and looks like it came up in the original repo. I couldn't fix the problem until I realized the problem for me. This might come up for others.

I had my requirements order wrong. A different project that references faster-whisper was being installed first, and even if you reference the git source after that, since git source is still 1.0.3, it won't overwrite the package manager version.