Downloads · 30 days
14
4% of all-time downloads
KandirResearch/Whisper-Small-Darija
Whisper-Small-Darija is a automatic speech recognition model from KandirResearch. 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 is a fine-tuned version of OpenAI's whisper-small model on the DarijaTTS-clean dataset. The goal of this project is to improve automatic speech recognition (ASR) for Moroccan Darija (ary).
Downloads · 30 days
14
4% of all-time downloads
All-time downloads
350
Public
Parameters
242M
1.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors967 MB · 100%
From the Hugging Face model README
This is a fine-tuned version of OpenAI's whisper-small model on the DarijaTTS-clean dataset. The goal of this project is to improve automatic speech recognition (ASR) for Moroccan Darija (ary).
Lyte/Whisper-Small-Darijaopenai/whisper-smallLyte/DarijaTTS-cleanTraining was started but interrupted. The training will be resumed from step 600. Below is the progress so far:
| Step | Training Loss | Validation Loss | WER |
|---|---|---|---|
| 200 | 1.0142 | 1.0804 | 129.35 |
| 400 | 0.8288 | 0.9905 | 72.44 |
| 600 | 0.7618 | 0.9656 | 70.41 |
You can use this model with Hugging Face's transformers library:
from transformers import WhisperProcessor, WhisperForConditionalGeneration
import torch
model_id = "Lyte/whisper-small-darija"
processor = WhisperProcessor.from_pretrained(model_id)
model = WhisperForConditionalGeneration.from_pretrained(model_id)
# Load an audio file and preprocess
input_features = processor("path_to_audio.wav", return_tensors="pt").input_features
generated_ids = model.generate(input_features)
predicted_text = processor.batch_decode(generated_ids, skip_special_tokens=True)
print(predicted_text)
Special thanks to OpenAI for Whisper and Hugging Face for their amazing platform. This model is built as part of my ongoing research in ASR for Darija.
For updates and more details, stay tuned to this repository!