Downloads · 30 days
18
5% of all-time downloads
tbkazakova/wav2vec-bert-2.0-even-pakendorf
wav2vec-bert-2.0-even-pakendorf is a automatic speech recognition model from tbkazakova. Use it when you need speech turned into text. It is set up for transformers.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
18
5% of all-time downloads
All-time downloads
357
Public
Parameters
606M
38.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of facebook/w2v-bert-2.0 on the audiofolder dataset. It achieves the following results on the evaluation set:
How to use:
from transformers import AutoModelForCTC, Wav2Vec2BertProcessor
model = AutoModelForCTC.from_pretrained("tbkazakova/wav2vec-bert-2.0-even-pakendorf")
processor = Wav2Vec2BertProcessor.from_pretrained("tbkazakova/wav2vec-bert-2.0-even-pakendorf")
data, sampling_rate = librosa.load('audio.wav')
librosa.resample(data, orig_sr=sampling_rate, target_sr=16000)
logits = model(torch.tensor(processor(data,
sampling_rate=16000).input_features[0]).unsqueeze(0)).logits
pred_ids = torch.argmax(logits, dim=-1)[0]
print(processor.decode(pred_ids))
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Cer | Validation Loss | Wer |
|---|---|---|---|---|---|
| 4.5767 | 0.5051 | 200 | 0.4932 | inf | 0.9973 |
| 1.8775 | 1.0101 | 400 | 0.3211 | inf | 0.8494 |
| 1.6006 | 1.5152 | 600 | 0.3017 | inf | 0.8040 |
| 1.4476 | 2.0202 | 800 | 0.2896 | inf | 0.7534 |
| 1.2213 | 2.5253 | 1000 | 0.2610 | inf | 0.7080 |
| 1.1485 | 3.0303 | 1200 | 0.2684 | inf | 0.6800 |
| 0.9554 | 3.5354 | 1400 | 0.2459 | inf | 0.6732 |
| 0.9379 | 4.0404 | 1600 | 0.2275 | inf | 0.6251 |
| 0.7644 | 4.5455 | 1800 | 0.2235 | inf | 0.6224 |
| 0.7891 | 5.0505 | 2000 | 0.2180 | inf | 0.6053 |
| 0.633 | 5.5556 | 2200 | 0.2130 | inf | 0.5996 |
| 0.6197 | 6.0606 | 2400 | 0.2126 | inf | 0.6032 |
| 0.5212 | 6.5657 | 2600 | 0.2196 | inf | 0.6019 |
| 0.4881 | 7.0707 | 2800 | 0.2125 | inf | 0.5894 |
| 0.4 | 7.5758 | 3000 | 0.2066 | inf | 0.5852 |
| 0.4008 | 8.0808 | 3200 | 0.2076 | inf | 0.5790 |
| 0.3304 | 8.5859 | 3400 | 0.2096 | inf | 0.5884 |
| 0.3446 | 9.0909 | 3600 | 0.2124 | inf | 0.5983 |
| 0.3237 | 9.5960 | 3800 | 0.2128 | inf | 0.5969 |