Simple Fix to an Annoying Issue While Batch Decoding with Beam Search #2659
                  
                    
                      farisalasmary
                    
                  
                
                  started this conversation in
                General
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I was trying to do batch inference and decoding using Beam Search Decoder using the following code snippet:
and I faced this annoying issue:
After spending some time and wasting a lot of energy debugging the issue, I found the bug.
In the following code snippet,
audio_featuresshould be repeated usingrepeat_interleavemethod similar totokens:whisper/whisper/decoding.py
Lines 732 to 735 in c0d2f62
The final code should look like this:
and that's it!
Beta Was this translation helpful? Give feedback.
All reactions