Downloads · 30 days
12
2% of all-time downloads
qmeeus/whisper-small-nl
whisper-small-nl is a automatic speech recognition model from qmeeus. 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 qmeeus/whisper-small-nl on the None dataset. It achieves the following results on the evaluation set: - Loss: 0.3034 - Wer: 14.5354
Downloads · 30 days
12
2% of all-time downloads
All-time downloads
798
Public
Repo size
21.3 GB
Likes
1
Public
Click a slice to open those files.
.bin967 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of qmeeus/whisper-small-nl on the None dataset. It achieves the following results on the evaluation set:
More information needed
Transcribe files in Dutch:
import soundfile as sf
from transformers import pipeline
whisper_asr = pipeline("automatic-speech-recognition", model="qmeeus/whisper-small-nl", device=0)
whisper_asr.model.config.forced_decoder_ids = whisper_asr.tokenizer.get_decoder_prompt_ids(
task="transcribe", language="nl"
)
waveform, sr = sf.read(filename)
def iter_chunks(waveform, sampling_rate=16_000, chunk_length=30.):
assert sampling_rate == 16_000
n_frames = math.floor(sampling_rate * chunk_length)
for start in range(0, len(waveform), n_frames):
end = min(len(waveform), start + n_frames)
yield waveform[start:end]
for sentence in whisper_asr(iter_chunks(waveform, sr), max_new_tokens=448):
print(sentence["text"])
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Wer |
|---|---|---|---|---|
| 0.2045 | 2.49 | 1000 | 0.3194 | 16.1628 |
| 0.0652 | 4.97 | 2000 | 0.3425 | 16.3672 |
| 0.0167 | 7.46 | 3000 | 0.3915 | 15.8187 |
| 0.0064 | 9.95 | 4000 | 0.4190 | 15.7298 |
| 0.1966 | 2.02 | 5000 | 0.3298 | 15.0881 |
| 0.1912 | 4.04 | 6000 | 0.3266 | 14.8764 |
| 0.1008 | 7.02 | 7000 | 0.3261 | 14.8086 |
| 0.0899 | 9.04 | 8000 | 0.3196 | 14.6487 |
| 0.1126 | 12.02 | 9000 | 0.3283 | 14.5894 |
| 0.1071 | 14.04 | 10000 | 0.3034 | 14.5354 |