Downloads · 30 days
678
1% of all-time downloads
thennal/whisper-medium-ml
whisper-medium-ml is a automatic speech recognition model from thennal. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
678
1% of all-time downloads
All-time downloads
56.9K
Public
Repo size
70.3 GB
Likes
10
Public
Click a slice to open those files.
.bin3.1 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of openai/whisper-medium on the Common Voice 11.0 dataset. It achieves the following results on the evaluation set:
Note that Whisper's normalization has major issues for languages like Malayalam, so the above scores are evaluated without using normalization. With normalization (for a fair comparison with other models on this platform), the results are instead:
This Colab can be used as a starting point to further finetune the model.
Given an audio sample audio (this can be anything from a numpy array to a filepath), the following code generates transcriptions:
from transformers import pipeline, WhisperProcessor
processor = WhisperProcessor.from_pretrained("thennal/whisper-medium-ml")
forced_decoder_ids = processor.get_decoder_prompt_ids(language="ml", task="transcribe")
asr = pipeline(
"automatic-speech-recognition", model="thennal/whisper-medium-ml", device=0,
)
transcription = asr(audio, chunk_length_s=30, max_new_tokens=448, return_timestamps=False, generate_kwargs={
"forced_decoder_ids": forced_decoder_ids,
"do_sample": True,
})
More information needed
More information needed
More information needed
The following hyperparameters were used during training: