Long translations end up switching back to English after 20 minutes #667
-
|
I am trying to use whisper to translate some longer videos (about an hour long ) to Spanish however after around the 20 minute mark, they end up not translating and only transcribing. After another ~20 minutes, it goes back to writing in Spanish. I'm not sure what I'm doing wrong. This is across multiple different videos and a consistent problem |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The models are not trained to transcribe into non-English languages, so it's actually not an intended use case (related: #649 (comment)). That being said, I guess in theory you could modify the decoding logic (the Lines 199 to 211 in 0b5dcfd |
Beta Was this translation helpful? Give feedback.
The models are not trained to transcribe into non-English languages, so it's actually not an intended use case (related: #649 (comment)). That being said, I guess in theory you could modify the decoding logic (the
update()method below in particular`) to reject words or phrases in English.whisper/whisper/decoding.py
Lines 199 to 211 in 0b5dcfd