Downloads · 30 days
28
35% of all-time downloads
1rsh/whisper-small-gu
whisper-small-gu is a automatic speech recognition model from 1rsh. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of vasista22/whisper-gujarati-small on the Gujarati OpenSLR dataset. It achieves the following results on the evaluation set: - Loss: 0.0472 - Wer: 35.3258 - Cer: 22.3685
Downloads · 30 days
28
35% of all-time downloads
All-time downloads
80
Public
Parameters
242M
967 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors967 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of vasista22/whisper-gujarati-small on the Gujarati OpenSLR dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Wer | Cer |
|---|---|---|---|---|---|
| 0.0018 | 4.9505 | 1000 | 0.0472 | 35.3258 | 22.3685 |
In order to infer a single audio file using this model, the following code snippet can be used:
>>> import torch
>>> from transformers import pipeline
>>> # path to the audio file to be transcribed
>>> audio = "/path/to/audio.format"
>>> device = "cuda:0" if torch.cuda.is_available() else "cpu"
>>> transcribe = pipeline(task="automatic-speech-recognition", model="1rsh/whisper-small-gu", chunk_length_s=30, device=device)
>>> transcribe.model.config.forced_decoder_ids = transcribe.tokenizer.get_decoder_prompt_ids(language="gu", task="transcribe")
>>> print('Transcription: ', transcribe(audio)["text"])