facebook / wav2vec2-large-960h

huggingface.co
Total runs: 104.3K
24-hour runs: -1.6K
7-day runs: -148.9K
30-day runs: -972.3K
Model's Last Updated: Tháng tư 06 2022
automatic-speech-recognition

Introduction of wav2vec2-large-960h

Model Details of wav2vec2-large-960h

Wav2Vec2-Large-960h

Facebook's Wav2Vec2

The large model pretrained and fine-tuned on 960 hours of Librispeech on 16kHz sampled speech audio. When using the model make sure that your speech input is also sampled at 16Khz.

Paper

Authors: Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael Auli

Abstract

We show for the first time that learning powerful representations from speech audio alone followed by fine-tuning on transcribed speech can outperform the best semi-supervised methods while being conceptually simpler. wav2vec 2.0 masks the speech input in the latent space and solves a contrastive task defined over a quantization of the latent representations which are jointly learned. Experiments using all labeled data of Librispeech achieve 1.8/3.3 WER on the clean/other test sets. When lowering the amount of labeled data to one hour, wav2vec 2.0 outperforms the previous state of the art on the 100 hour subset while using 100 times less labeled data. Using just ten minutes of labeled data and pre-training on 53k hours of unlabeled data still achieves 4.8/8.2 WER. This demonstrates the feasibility of speech recognition with limited amounts of labeled data.

The original model can be found under https://github.com/pytorch/fairseq/tree/master/examples/wav2vec#wav2vec-20 .

Usage

To transcribe audio files the model can be used as a standalone acoustic model as follows:

 from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
 from datasets import load_dataset
 import torch
 
 # load model and processor
 processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-large-960h")
 model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-large-960h")
     
 # load dummy dataset and read soundfiles
 ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
 
 # tokenize
 input_values = processor(ds[0]["audio"]["array"],, return_tensors="pt", padding="longest").input_values  # Batch size 1
 
 # retrieve logits
 logits = model(input_values).logits
 
 # take argmax and decode
 predicted_ids = torch.argmax(logits, dim=-1)
 transcription = processor.batch_decode(predicted_ids)
Evaluation

This code snippet shows how to evaluate facebook/wav2vec2-large-960h on LibriSpeech's "clean" and "other" test data.

from datasets import load_dataset
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import soundfile as sf
import torch
from jiwer import wer


librispeech_eval = load_dataset("librispeech_asr", "clean", split="test")

model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-large-960h").to("cuda")
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-large-960h")

def map_to_pred(batch):
    input_values = processor(batch["audio"]["array"], return_tensors="pt", padding="longest").input_values
    with torch.no_grad():
        logits = model(input_values.to("cuda")).logits

    predicted_ids = torch.argmax(logits, dim=-1)
    transcription = processor.batch_decode(predicted_ids)
    batch["transcription"] = transcription
    return batch

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

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

Result (WER) :

"clean" "other"
2.8 6.3

Runs of facebook wav2vec2-large-960h on huggingface.co

104.3K
Total runs
-1.6K
24-hour runs
-3.2K
3-day runs
-148.9K
7-day runs
-972.3K
30-day runs

More Information About wav2vec2-large-960h huggingface.co Model

More wav2vec2-large-960h license Visit here:

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

wav2vec2-large-960h huggingface.co

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

wav2vec2-large-960h huggingface.co Url

https://huggingface.co/facebook/wav2vec2-large-960h

facebook wav2vec2-large-960h online free

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

facebook wav2vec2-large-960h online free url in huggingface.co:

https://huggingface.co/facebook/wav2vec2-large-960h

wav2vec2-large-960h install

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

wav2vec2-large-960h install url in huggingface.co:

https://huggingface.co/facebook/wav2vec2-large-960h

Url of wav2vec2-large-960h

wav2vec2-large-960h huggingface.co Url

Provider of wav2vec2-large-960h huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 12.5M
Run Growth: 990.7K
Growth Rate: 7.90%
Updated: Bước đều 23 2023
huggingface.co

Total runs: 9.3M
Run Growth: 2.0M
Growth Rate: 21.72%
Updated: Tháng 9 15 2023
huggingface.co

Total runs: 5.9M
Run Growth: 5.1M
Growth Rate: 87.10%
Updated: Tháng 9 06 2023
huggingface.co

Total runs: 2.9M
Run Growth: 94.4K
Growth Rate: 3.19%
Updated: Tháng mười một 17 2022
huggingface.co

Total runs: 2.3M
Run Growth: 992.1K
Growth Rate: 43.93%
Updated: Tháng hai 29 2024
huggingface.co

Total runs: 1.7M
Run Growth: -11.2M
Growth Rate: -652.94%
Updated: Tháng Một 17 2024
huggingface.co

Total runs: 1.5M
Run Growth: 1.2M
Growth Rate: 82.92%
Updated: Tháng sáu 13 2023
huggingface.co

Total runs: 1.4M
Run Growth: -162.7K
Growth Rate: -11.69%
Updated: Tháng mười một 17 2023
huggingface.co

Total runs: 1.3M
Run Growth: -870.9K
Growth Rate: -65.66%
Updated: Tháng mười một 14 2023
huggingface.co

Total runs: 952.6K
Run Growth: 238.3K
Growth Rate: 24.86%
Updated: Tháng Một 12 2024
huggingface.co

Total runs: 885.2K
Run Growth: 325.8K
Growth Rate: 36.80%
Updated: Tháng mười một 16 2023
huggingface.co

Total runs: 794.8K
Run Growth: 69.7K
Growth Rate: 8.77%
Updated: Tháng 12 28 2021
huggingface.co

Total runs: 696.3K
Run Growth: -2.0M
Growth Rate: -261.17%
Updated: Tháng 9 06 2023
huggingface.co

Total runs: 526.6K
Run Growth: -557.8K
Growth Rate: -105.93%
Updated: Tháng bảy 25 2023
huggingface.co

Total runs: 477.4K
Run Growth: -2.4M
Growth Rate: -510.52%
Updated: Tháng Một 25 2024
huggingface.co

Total runs: 378.2K
Run Growth: 95.6K
Growth Rate: 25.27%
Updated: Tháng Một 20 2022
huggingface.co

Total runs: 347.5K
Run Growth: 198.7K
Growth Rate: 57.43%
Updated: Tháng 9 15 2023
huggingface.co

Total runs: 264.2K
Run Growth: -759.3K
Growth Rate: -290.92%
Updated: Tháng 9 15 2023
huggingface.co

Total runs: 254.9K
Run Growth: -157.9K
Growth Rate: -54.98%
Updated: Tháng 9 01 2023
huggingface.co

Total runs: 254.0K
Run Growth: 49.7K
Growth Rate: 19.20%
Updated: Tháng sáu 03 2022
huggingface.co

Total runs: 206.8K
Run Growth: 44.2K
Growth Rate: 21.38%
Updated: Tháng 9 05 2023
huggingface.co

Total runs: 181.0K
Run Growth: -37.0K
Growth Rate: -20.45%
Updated: Tháng 9 06 2023
huggingface.co

Total runs: 178.5K
Run Growth: -582
Growth Rate: -0.33%
Updated: Có thể 22 2023
huggingface.co

Total runs: 178.2K
Run Growth: -147.6K
Growth Rate: -82.82%
Updated: Tháng Một 12 2024
huggingface.co

Total runs: 146.7K
Run Growth: -83.8K
Growth Rate: -57.71%
Updated: Tháng sáu 15 2023
huggingface.co

Total runs: 137.6K
Run Growth: 134.3K
Growth Rate: 97.66%
Updated: Tháng sáu 13 2023
huggingface.co

Total runs: 92.5K
Run Growth: -76.8K
Growth Rate: -83.04%
Updated: Tháng Một 12 2024
huggingface.co

Total runs: 78.5K
Run Growth: 31.8K
Growth Rate: 41.08%
Updated: Tháng Một 25 2023
huggingface.co

Total runs: 61.9K
Run Growth: 1.2K
Growth Rate: 2.01%
Updated: Tháng mười một 17 2023
huggingface.co

Total runs: 59.1K
Run Growth: 21.5K
Growth Rate: 36.28%
Updated: Bước đều 28 2023
huggingface.co

Total runs: 58.1K
Run Growth: 8.3K
Growth Rate: 14.26%
Updated: Tháng 9 15 2023
huggingface.co

Total runs: 57.6K
Run Growth: 55.0K
Growth Rate: 95.30%
Updated: Tháng 9 01 2023
huggingface.co

Total runs: 55.9K
Run Growth: 2.1K
Growth Rate: 3.70%
Updated: Có thể 22 2023
huggingface.co

Total runs: 53.3K
Run Growth: 15.5K
Growth Rate: 35.00%
Updated: Tháng hai 12 2023
huggingface.co

Total runs: 45.2K
Run Growth: 8.3K
Growth Rate: 18.03%
Updated: Bước đều 13 2024
huggingface.co

Total runs: 43.9K
Run Growth: -41.2K
Growth Rate: -93.88%
Updated: Tháng Mười 16 2024
huggingface.co

Total runs: 37.5K
Run Growth: 15.4K
Growth Rate: 40.34%
Updated: Tháng sáu 05 2023
huggingface.co

Total runs: 33.7K
Run Growth: 18.5K
Growth Rate: 55.57%
Updated: Tháng Một 25 2023
huggingface.co

Total runs: 33.3K
Run Growth: 6.3K
Growth Rate: 18.06%
Updated: Tháng 9 06 2023
huggingface.co

Total runs: 32.7K
Run Growth: -5.1K
Growth Rate: -15.60%
Updated: Bước đều 28 2024
huggingface.co

Total runs: 27.2K
Run Growth: 3.6K
Growth Rate: 13.33%
Updated: Tháng bảy 23 2024
huggingface.co

Total runs: 23.4K
Run Growth: 15.1K
Growth Rate: 65.01%
Updated: Tháng hai 12 2023