SYSTRAN / faster-whisper

Faster Whisper transcription with CTranslate2
MIT License
12.66k stars 1.06k forks source link

cannot import name 'BatchedInferencePipeline' #1123

Closed acclayer7 closed 1 week ago

acclayer7 commented 2 weeks ago

I have this error: { "name": "ImportError", "message": "cannot import name 'BatchedInferencePipeline' from 'faster_whisper' ", "stack": "--------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In[13], line 1 ----> 1 from faster_whisper import WhisperModel, BatchedInferencePipeline 3 model = WhisperModel(\"large-v3\", device=\"cpu\", compute_type=\"int8\") 4 batched_model = BatchedInferencePipeline(model=model)

ImportError: cannot import name 'BatchedInferencePipeline' from 'faster_whisper' }

phu54321 commented 2 weeks ago

you should use the master branch of this repo instead.

pip install "faster-whisper @ https://github.com/SYSTRAN/faster-whisper/archive/refs/heads/master.tar.gz"

current pypi version doesn't have it.