Error: AttributeError: 'WhisperTokenizer' object has no attribute 'get_decoder_prompt_ids' (Macbook Pro M1)

#16
by maxdunhill - opened

Really like the project. However, getting following error when trying to run locally - what might I be doing wrong?

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ /Users/Alfie/PycharmProjects/osteonotes/Whisper_speaker_diarization/app.py:144 in โ”‚
โ”‚ โ”‚
โ”‚ 141 โ”‚ device=device, โ”‚
โ”‚ 142 ) โ”‚
โ”‚ 143 os.makedirs('output', exist_ok=True) โ”‚
โ”‚ โฑ 144 pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(languag โ”‚
โ”‚ 145 โ”‚
โ”‚ 146 embedding_model = PretrainedSpeakerEmbedding( โ”‚
โ”‚ 147 โ”‚ "speechbrain/spkrec-ecapa-voxceleb", โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
AttributeError: 'WhisperTokenizer' object has no attribute 'get_decoder_prompt_ids'

maxdunhill changed discussion status to closed

Sign up or log in to comment