How can I extract embeddings? #85
-
Hi! Would someone be able to provide an example showing how to extract embeddings? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
I created a fork to extract embeddings here. The embeddings get stored as a part of the transcription result that's returned when you call |
Beta Was this translation helpful? Give feedback.
-
Did you ever try using the embeddings for speaker diarization, and if not what were you using the embedding for? |
Beta Was this translation helpful? Give feedback.
-
Thanks @isaacOnline, This is very helpful. I was wondering what sort of information we should expect to be captured by the encoder_embeddings and what information by the decoder_embeddings? |
Beta Was this translation helpful? Give feedback.
-
You can extract embeddings from the Whisper model using the Transformers library as follows:
|
Beta Was this translation helpful? Give feedback.
I created a fork to extract embeddings here. The embeddings get stored as a part of the transcription result that's returned when you call
model.transcribe()
and are done at the segment level.