valhalla / s2t_librispeech_large

huggingface.co
Total runs: 9
24-hour runs: 0
7-day runs: 0
30-day runs: 7
Model's Last Updated: February 26 2021
automatic-speech-recognition

Introduction of s2t_librispeech_large

Model Details of s2t_librispeech_large

TODO: [To be filled]

Evaluation on LibriSpeech Test

The following script shows how to evaluate this model on the LibriSpeech "clean" and "other" test dataset.

from datasets import load_dataset
from transformers import Speech2TextTransformerForConditionalGeneration, Speech2TextTransformerTokenizer
import soundfile as sf
from jiwer import wer

librispeech_eval = load_dataset("librispeech_asr", "clean", split="test")  # change to "other" for other test dataset

model = Speech2TextTransformerForConditionalGeneration.from_pretrained("valhalla/s2t_librispeech_large").to("cuda")
tokenizer = Speech2TextTransformerTokenizer.from_pretrained("valhalla/s2t_librispeech_large", do_upper_case=True)

def map_to_array(batch):
    speech, _ = sf.read(batch["file"])
    batch["speech"] = speech
    return batch

librispeech_eval = librispeech_eval.map(map_to_array)

def map_to_pred(batch):
    features = tokenizer(batch["speech"], sample_rate=16000, padding=True, return_tensors="pt")
    input_features = features.input_features.to("cuda")
    attention_mask = features.attention_mask.to("cuda")

    gen_tokens = model.generate(input_ids=input_features, attention_mask=attention_mask)
    batch["transcription"] = tokenizer.batch_decode(gen_tokens, skip_special_tokens=True)
    return batch

result = librispeech_eval.map(map_to_pred, batched=True, batch_size=8, remove_columns=["speech"])

print("WER:", wer(result["text"], result["transcription"]))

Result (WER) :

"clean" "other"
3.3 7.5

Runs of valhalla s2t_librispeech_large on huggingface.co

9
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
7
30-day runs

More Information About s2t_librispeech_large huggingface.co Model

More s2t_librispeech_large license Visit here:

https://choosealicense.com/licenses/apache-2.0

s2t_librispeech_large huggingface.co

s2t_librispeech_large huggingface.co is an AI model on huggingface.co that provides s2t_librispeech_large's model effect (), which can be used instantly with this valhalla s2t_librispeech_large model. huggingface.co supports a free trial of the s2t_librispeech_large model, and also provides paid use of the s2t_librispeech_large. Support call s2t_librispeech_large model through api, including Node.js, Python, http.

s2t_librispeech_large huggingface.co Url

https://huggingface.co/valhalla/s2t_librispeech_large

valhalla s2t_librispeech_large online free

s2t_librispeech_large huggingface.co is an online trial and call api platform, which integrates s2t_librispeech_large's modeling effects, including api services, and provides a free online trial of s2t_librispeech_large, you can try s2t_librispeech_large online for free by clicking the link below.

valhalla s2t_librispeech_large online free url in huggingface.co:

https://huggingface.co/valhalla/s2t_librispeech_large

s2t_librispeech_large install

s2t_librispeech_large is an open source model from GitHub that offers a free installation service, and any user can find s2t_librispeech_large on GitHub to install. At the same time, huggingface.co provides the effect of s2t_librispeech_large install, users can directly use s2t_librispeech_large installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

s2t_librispeech_large install url in huggingface.co:

https://huggingface.co/valhalla/s2t_librispeech_large

Url of s2t_librispeech_large

s2t_librispeech_large huggingface.co Url

Provider of s2t_librispeech_large huggingface.co

valhalla
ORGANIZATIONS

Other API from valhalla

huggingface.co

Total runs: 8
Run Growth: 3
Growth Rate: 37.50%
Updated:October 06 2023
huggingface.co

Total runs: 8
Run Growth: 2
Growth Rate: 25.00%
Updated:September 25 2023
huggingface.co

Total runs: 7
Run Growth: 1
Growth Rate: 14.29%
Updated:October 30 2023
huggingface.co

Total runs: 5
Run Growth: 4
Growth Rate: 80.00%
Updated:June 09 2022
huggingface.co

Total runs: 5
Run Growth: 4
Growth Rate: 80.00%
Updated:August 25 2023
huggingface.co

Total runs: 5
Run Growth: 0
Growth Rate: 0.00%
Updated:September 09 2023