Downloads · 30 days
16
8% of all-time downloads
Panga-Azazia/matchboxnet3x2x64-bambara-a-c
matchboxnet3x2x64-bambara-a-c is a audio classification model from Panga-Azazia. Use it for the audio classification task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
16
8% of all-time downloads
All-time downloads
203
Public
Parameters
163K
732 KB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors660 KB · 89%
From the Hugging Face model README
This model was trained from scratch on Panga-Azazia/Bambara-Keyword-Spotting-Aug dataset and achieves the following results on the evaluation set:
MatchboxNet - an end-to-end neural network for speech command recognition.
MatchboxNet is a deep residual network composed from blocks of 1D time-channel separable convolution, batch-normalization, ReLU, and dropout layers.
# Install matchboxnet
pip install git+https://github.com/Panga-az/matchboxnet.git
from matchboxnet.model import MatchboxNetForAudioClassification
from matchboxnet.feature_extraction import MatchboxNetFeatureExtractor
import torch
model = MatchboxNetForAudioClassification.from_pretrained("Panga-Azazia/matchboxnet3x2x64-bambara-a-c")
feature_extractor = MatchboxNetFeatureExtractor.from_pretrained("Panga-Azazia/matchboxnet3x2x64-bambara-a-c")
audio = "audio.wav"
batch = feature_extractor(audio,return_tensors="pt")
with torch.no_grad():
outputs = model(**batch)
preds = outputs.logits.argmax(-1)
model.config.id2label = {int(k): v for k, v in model.config.id2label.items()}
id2label = model.config.id2label
label_name = id2label[preds.item()]
print(label_name)
This model is intended for audio classification, particularly speech command recognition and keyword spotting in short audio clips. Limitations:
The model was trained on the Panga-Azazia/Bambara-Keyword-Spotting-Aug dataset, which contains keyword-labeled speech samples in the Bambara language.
This model was trained using the matchboxnet Python package — a custom implementation of the MatchboxNet architecture using PyTorch and Hugging Face Transformers. The package is available on GitHub and provides all necessary components for feature extraction, configuration, model architecture, and training.
The training procedure closely follows the description in the original MatchboxNet paper:
Audio preprocessing:
Raw audio is converted into a sequence of 64 MFCCs, using 25 ms windows with a 10 ms stride.
Features are zero-padded symmetrically to ensure a fixed length of 128 time frames.
Data augmentation techniques used during training:
Training was performed using the 🤗 Trainer with the following hyperparameters:
📘 Documentation & Examples
For full usage instructions, see the official documentation or explore example notebooks on GitHub demonstrating training, inference, and deployment.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Accuracy | Validation Loss |
|---|---|---|---|---|
| 2.753 | 100.0 | 100 | 0.5319 | 0.9275 |
| 0.6525 | 200.0 | 200 | 0.8894 | 0.3022 |
| 0.4197 | 300.0 | 300 | 0.9149 | 0.2035 |
| 0.3514 | 400.0 | 400 | 0.9234 | 0.1827 |
| 0.3104 | 500.0 | 500 | 0.9234 | 0.1741 |
| 0.2847 | 600.0 | 600 | 0.9319 | 0.1737 |
| 0.2682 | 700.0 | 700 | 0.9404 | 0.1682 |
| 0.2571 | 800.0 | 800 | 0.9362 | 0.1673 |
| 0.2521 | 900.0 | 900 | 0.9362 | 0.1666 |
| 0.2489 | 1000.0 | 1000 | 0.9362 | 0.1657 |