]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
whisper : add single-timestamp logic (#2629)
authorKarthick <redacted>
Tue, 17 Dec 2024 17:07:08 +0000 (22:37 +0530)
committerGitHub <redacted>
Tue, 17 Dec 2024 17:07:08 +0000 (19:07 +0200)
commit2f2841bfcef68c2d06fe2b80bd79dabfd3351962
tree3512286445b92e4c546117bce6df126a7d7a83e6
parent09a1b612180d0f7995aac9e00ad4fe6d62c1dc6c
whisper : add single-timestamp logic (#2629)

* Fix hallucinations during silence

When the predicted tokens end with a single timestamp the the entire 30 segment should be considered as done, to avoid hallucinations for the remaining part of segment.
This behaviour is on par with openai's whisper. Refer to logic related to `single_timestamp_ending` in https://github.com/openai/whisper/blob/main/whisper/transcribe.py

* Accept review comments related to formatting.

Co-authored-by: Georgi Gerganov <redacted>
---------

Co-authored-by: Georgi Gerganov <redacted>
src/whisper.cpp