Skip to content
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

Added encoder output #1136

Closed
wants to merge 3 commits into from
Closed

Conversation

SinanAkkoyun
Copy link

WhisperModel now also outputs encoder embeddings optionally.

Usage:
normal, backwards compatible:

segments, info = model.transcribe(audio_path, beam_size=1)

for encoder outputs:

segments, info, encoder_output = model.transcribe(audio_path, beam_size=1).all()

Usage is fully backwards compatible

@MahmoudAshraf97
Copy link
Collaborator

Hello and thanks for your contribution, however, I don't see why would the encoder output be needed after the transcription, so far I'm not in favor of merging this PR as it's a very niche use case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants