Downloads · 30 days
7
1% of all-time downloads
Respeecher/ukrainian-data2vec-asr
ukrainian-data2vec-asr is a automatic speech recognition model from Respeecher. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of Respeecher/ukrainian-data2vec on the Common Voice 11.0 dataset Ukrainian Train part. It achieves the following results: - evalwer: 17.634350000973198
Downloads · 30 days
7
1% of all-time downloads
All-time downloads
561
Public
Repo size
2.5 GB
Likes
0
Public
Click a slice to open those files.
.bin1.3 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Respeecher/ukrainian-data2vec on the Common Voice 11.0 dataset Ukrainian Train part. It achieves the following results:
from transformers import AutoProcessor, Data2VecAudioForCTC
import torch
from datasets import load_dataset, Audio
dataset = load_dataset("mozilla-foundation/common_voice_11_0", "uk", split="test")
# Resample
dataset = dataset.cast_column("audio", Audio(sampling_rate=16_000))
processor = AutoProcessor.from_pretrained("Respeecher/ukrainian-data2vec-asr")
model = Data2VecAudioForCTC.from_pretrained("Respeecher/ukrainian-data2vec-asr")
model.eval()
sampling_rate = dataset.features["audio"].sampling_rate
inputs = processor(dataset[1]["audio"]["array"], sampling_rate=sampling_rate, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.batch_decode(predicted_ids)
transcription[0]
Training code and instructions are available on our github