AssertionError: Inconsistent number of segment #52
-
Hi. Recently, when using whisper_timestamped, I often got an error message like this: /usr/local/lib/python3.8/dist-packages/whisper_timestamped/transcribe.py in _transcribe_timestamped_efficient(model, audio, remove_punctuation_from_words, compute_word_confidence, include_punctuation_in_confidence, refine_whisper_precision_nframes, alignment_heads, plot_word_alignment, word_alignement_most_top_layers, detect_disfluencies, trust_whisper_timestamps, use_timestamps_for_alignment, **whisper_options) AssertionError: Inconsistent number of segments: whisper_segments (491) != timestamped_word_segments (490) The only way I can solve this problem right now is to change Whisper's model from medium to base, and it will work properly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This issue is described in #47 It should be fixed now (update whisper-timestamped). And I recommend also to use for now
(because that version of whisper is super recent and might still include bugs. see openai/whisper#1058 and I see that whisper repo is moving a lot now) |
Beta Was this translation helpful? Give feedback.
This issue is described in #47
It should be fixed now (update whisper-timestamped).
And I recommend also to use for now
(because that version of whisper is super recent and might still include bugs. see openai/whisper#1058 and I see that whisper repo is moving a lot now)