Downloads · 30 days
49
6% of all-time downloads
naver/mHuBERT-147-ASR-fr
mHuBERT-147-ASR-fr is a automatic speech recognition model from naver. Use it when you need speech turned into text. The card lists the license as cc-by-nc-sa-4.0.
This is a small CTC-based Automatic Speech Recognition system for French.
Downloads · 30 days
49
6% of all-time downloads
All-time downloads
844
Public
Parameters
96.3M
770 MB on disk
Likes
1
Public
Click a slice to open those files.
.bin385 MB · 50%
From the Hugging Face model README
This is a small CTC-based Automatic Speech Recognition system for French.
This model is part of our SLU demo available here: https://huggingface.co/spaces/naver/French-SLU-DEMO-Interspeech2024
Please check our blog post available at: TBD
| dev WER | dev CER | test WER | test CER | |
|---|---|---|---|---|
| speechMASSIVE | 9.2 | 2.6 | 9.6 | 2.9 |
| fleurs102 | 20.0 | 7.0 | 22.0 | 7.7 |
| CommonVoice 17 | 16.0 | 4.9 | 19.0 | 6.5 |
This is a mHuBERT-147 ASR fine-tuned model. The training parameters are available in config.json. We highlight the use of 0.3 for hubert.final_dropout, which we found to be very helpful in convergence. We also use fp32 training, as we found fp16 training to be unstable.
We use the mHubertForCTC class for our model, which is nearly identical to the existing HubertForCTC class. The key difference is that we've added a few additional hidden layers at the end of the Transformer stack, just before the lm_head. The code is available in CTC_model.py.
The run_inference.py file illustrates how to load the model for inference (load_asr_model), and how to produce transcription for a file (run_asr_inference). Please follow the requirements file to avoid incorrect model loading.
Here is a simple example of the inference loop. Please notice that the sampling rate must be 16,000Hz.
from inference_code.run_inference import load_asr_model, run_asr_inference
model, processor = load_asr_model()
prediction = run_inference(model, processor, your_audio_file)