google/speech_commands
Updated • 6.42k • 59
How to use Kibalama/Speech_Commands_Model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="Kibalama/Speech_Commands_Model") # Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("Kibalama/Speech_Commands_Model")
model = AutoModelForAudioClassification.from_pretrained("Kibalama/Speech_Commands_Model", device_map="auto")# Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("Kibalama/Speech_Commands_Model")
model = AutoModelForAudioClassification.from_pretrained("Kibalama/Speech_Commands_Model", device_map="auto")This model is a fine-tuned version of facebook/wav2vec2-base on the speech_commands dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.4629 | 1.0 | 320 | 0.2712 | 0.9683 |
| 0.3143 | 2.0 | 640 | 0.1806 | 0.9717 |
| 0.2891 | 3.0 | 960 | 0.1543 | 0.9755 |
Base model
facebook/wav2vec2-base
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="Kibalama/Speech_Commands_Model")