-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Return result with best log prob when all temperature fallbacks failed #356
Conversation
The improvements suggested in openai/whisper#1377 (comment) have been applied. I'm still testing, but there seems to be a noticeable reduction in hallucinations and an overall improvement in transcription quality. |
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.
Since this PR only changes the temperature fallback final result, which would be very different than openai/whisper anyway, we could merge it before it is accepted in openai/whisper.
Here are some comments:
Thank you, I have changed the code according to your advice. |
Please review again. Also, I think it would be nice if we renamed the PR to be more intuitive, please rename it to something you think is appropriate. |
There seems to be another benefit to this change. Before this change, there were quite a few cases where a sentence was not bad even if it had So I was able to filter out the segments with Of course I haven't tested all cases, so there may be many different cases and this won't always guarantee better results. |
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.
Looks good to me. Thanks!
* Fix broken prompt_reset_on_temperature Fixing: SYSTRAN#603 Broken because `generate_with_fallback()` doesn't return final temperature. Regression since PR356 -> SYSTRAN#356
* Fix broken prompt_reset_on_temperature Fixing: SYSTRAN/faster-whisper#603 Broken because `generate_with_fallback()` doesn't return final temperature. Regression since PR356 -> SYSTRAN/faster-whisper#356
* Fix broken prompt_reset_on_temperature Fixing: SYSTRAN/faster-whisper#603 Broken because `generate_with_fallback()` doesn't return final temperature. Regression since PR356 -> SYSTRAN/faster-whisper#356
* Fix broken prompt_reset_on_temperature Fixing: SYSTRAN/faster-whisper#603 Broken because `generate_with_fallback()` doesn't return final temperature. Regression since PR356 -> SYSTRAN/faster-whisper#356
Related to openai/whisper#1377