google/speech_commands
Updated • 3.69k • 59
How to use Thamer/wav2vec-fine_tuned-speech_command2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="Thamer/wav2vec-fine_tuned-speech_command2") # Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("Thamer/wav2vec-fine_tuned-speech_command2")
model = AutoModelForAudioClassification.from_pretrained("Thamer/wav2vec-fine_tuned-speech_command2")# Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("Thamer/wav2vec-fine_tuned-speech_command2")
model = AutoModelForAudioClassification.from_pretrained("Thamer/wav2vec-fine_tuned-speech_command2")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 |
|---|---|---|---|---|
| 1.3874 | 1.0 | 50 | 0.9633 | 0.9229 |
| 0.5144 | 2.0 | 100 | 0.4398 | 0.9138 |
| 0.3538 | 3.0 | 150 | 0.1688 | 0.9651 |
| 0.2956 | 4.0 | 200 | 0.1622 | 0.9623 |
| 0.2662 | 5.0 | 250 | 0.1425 | 0.9665 |
| 0.2122 | 6.0 | 300 | 0.1301 | 0.9682 |
| 0.1948 | 7.0 | 350 | 0.1232 | 0.9693 |
| 0.1837 | 8.0 | 400 | 0.1116 | 0.9734 |
| 0.1631 | 9.0 | 450 | 0.1041 | 0.9734 |
| 0.1441 | 10.0 | 500 | 0.1040 | 0.9735 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="Thamer/wav2vec-fine_tuned-speech_command2")