Faster_whisper does not work due to ctranslate2 problem #231
VincentRingstrom
started this conversation in
General
Replies: 1 comment 1 reply
-
How did you install faster-whisper? Also make sure you don’t have a file named |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello I get this error when running faster-whisper.
How can this be fixed?
Apparently, StorageView is not an attribute of ctranslate2. And this is the line where the error occurs in faster-whisper:
def generate_with_fallback(
self,
encoder_output: ctranslate2.StorageView,
prompt: List[int],
tokenizer: Tokenizer,
options: TranscriptionOptions,
) -> Tuple[ctranslate2.models.WhisperGenerationResult, float, float]:
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\faster_whisper_init_.py", line 2, in
from faster_whisper.transcribe import WhisperModel
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\faster_whisper\transcribe.py", line 58, in
class WhisperModel:
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\faster_whisper\transcribe.py", line 444, in WhisperModel
encoder_output: ctranslate2.StorageView,
AttributeError: module 'ctranslate2' has no attribute 'StorageView'
Beta Was this translation helpful? Give feedback.
All reactions