-
Notifications
You must be signed in to change notification settings - Fork 31.5k
[ASR pipeline] correct asr pipeline for seq2seq models #15541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ASR pipeline] correct asr pipeline for seq2seq models #15541
Conversation
|
The documentation is not available anymore as the PR was closed or merged. |
|
cc @Narsil - will merge since you're on holiday at the moment. |
anton-l
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
| inputs = model_inputs.pop("input_values") | ||
| else: | ||
| raise ValueError( | ||
| "Seq2Seq speech recognition model requires either a " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "Seq2Seq speech recognition model requires either a " | |
| "The speech recognition model requires either an " |
We're probably talking not only about seq2seq here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's under the if self.type == "seq2seq": condition, so yeah it's just the seq2seq speech recognition model
patil-suraj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What does this PR do?
Fixes the following daily tests:
and adds a fast test for asr pipeline for
wav2vec2-2-...model.Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.