Add error message to Wav2Vec2 & Hubert if labels > vocab_size #12270
Labels
Comments
|
I will create a PR to fix this. |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add better error message to
HubertForCTC,Wav2Vec2ForCTCif labels are bigger than vocab size.Motivation
Following this issue: #12264 it is clear that an error message should be thrown if any of the any of the labels are >
self.config.vocab_sizeor else silent errors can sneak into the training script.So we should modify:
Wav2Vec2ForCTC,TFWav2Vec2ForCTC, andHubertForCTCto add a nice error message in this case.Your contribution
This is a first good issue and should be rather easy to accomplish. I'm happy to give more guidance if needed.
The text was updated successfully, but these errors were encountered: