Downloads · 30 days
4
2% of all-time downloads
Macedonian-ASR/buki-whisper-capitalised-2.0
buki-whisper-capitalised-2.0 is a machine learning model from Macedonian-ASR. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for speechbrain. The card lists the license as apache-2.0.
Authors: 1. Dejan Porjazovski 2. Ilina Jakimovska 3. Ordan Chukaliev 4. Nikola Stikov
Downloads · 30 days
4
2% of all-time downloads
All-time downloads
188
Public
Repo size
13.4 GB
Likes
0
Public
Click a slice to open those files.
.ckpt13.4 GB · 100%
From the Hugging Face model README
Authors:
This collaboration is part of the activities of the Center for Advanced Interdisciplinary Research (CAIR) at UKIM.
The model is trained on around 115 hours of Macedonian speech.
This model is a fine-tuned version of the large Whisper-v3 model. During fine-tuning, the encoder was kept frozen and only the decoder was optimized. The model was trained with data containing capitalisation and punctuation. While the model produces transcripts with proper capitalisation and punctuation, its performace is worse than Macedonian-ASR/buki-whisper-2.0
The results are reported on all the test sets combined.
WER: 18.69
CER: 22.91
The model is developed using the SpeechBrain toolkit. To use it, you need to install SpeechBrain with:
pip install speechbrain
SpeechBrain relies on the Transformers library, therefore you need install it:
pip install transformers
An external py_module_file=custom_interface.py is used as an external Predictor class into this HF repos. We use the foreign_class function from speechbrain.pretrained.interfaces that allows you to load your custom model.
from speechbrain.inference.interfaces import foreign_class
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
asr_classifier = foreign_class(source="Macedonian-ASR/buki-whisper-capitalised-2.0", pymodule_file="custom_interface.py", classname="ASR")
asr_classifier = asr_classifier.to(device)
predictions = asr_classifier.classify_file("audio_file.wav", device)
print(predictions)
To fine-tune this model, you need to run:
python train.py hyperparams.yaml
train.py file contains the functions necessary for training the model and hyperparams.yaml contains the hyperparameters. For more details about training the model, refer to the SpeechBrain documentation.