facebook / wav2vec2-large-960h-lv60-self

huggingface.co
Total runs: 77.4K
24-hour runs: 0
7-day runs: -849
30-day runs: -151.5K
Model's Last Updated: May 24 2022
automatic-speech-recognition

Introduction of wav2vec2-large-960h-lv60-self

Model Details of wav2vec2-large-960h-lv60-self

Wav2Vec2-Large-960h-Lv60 + Self-Training

Facebook's Wav2Vec2

The large model pretrained and fine-tuned on 960 hours of Libri-Light and Librispeech on 16kHz sampled speech audio. Model was trained with Self-Training objective . 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-lv60-self")
 model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-large-960h-lv60-self")
     
 # 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
 
 # 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-lv60-self on LibriSpeech's "clean" and "other" test data.

from datasets import load_dataset
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import torch
from jiwer import wer


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

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

def map_to_pred(batch):
    inputs = processor(batch["audio"]["array"], return_tensors="pt", padding="longest")
    input_values = inputs.input_values.to("cuda")
    attention_mask = inputs.attention_mask.to("cuda")
    
    with torch.no_grad():
        logits = model(input_values, attention_mask=attention_mask).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, remove_columns=["audio"])

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

Result (WER) :

"clean" "other"
1.9 3.9

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

77.4K
Total runs
0
24-hour runs
-2.8K
3-day runs
-849
7-day runs
-151.5K
30-day runs

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

More wav2vec2-large-960h-lv60-self license Visit here:

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

wav2vec2-large-960h-lv60-self huggingface.co

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

wav2vec2-large-960h-lv60-self huggingface.co Url

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

facebook wav2vec2-large-960h-lv60-self online free

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

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

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

wav2vec2-large-960h-lv60-self install

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

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

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

Url of wav2vec2-large-960h-lv60-self

wav2vec2-large-960h-lv60-self huggingface.co Url

Provider of wav2vec2-large-960h-lv60-self huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 13.1M
Run Growth: 9.0M
Growth Rate: 68.77%
Updated: March 23 2023
huggingface.co

Total runs: 8.3M
Run Growth: 2.2M
Growth Rate: 26.98%
Updated: September 15 2023
huggingface.co

Total runs: 5.1M
Run Growth: -8.5M
Growth Rate: -167.05%
Updated: January 17 2024
huggingface.co

Total runs: 3.0M
Run Growth: 2.2M
Growth Rate: 79.06%
Updated: September 06 2023
huggingface.co

Total runs: 2.9M
Run Growth: 2.8M
Growth Rate: 94.91%
Updated: January 25 2024
huggingface.co

Total runs: 2.9M
Run Growth: 1.9M
Growth Rate: 64.76%
Updated: September 06 2023
huggingface.co

Total runs: 2.7M
Run Growth: 82.9K
Growth Rate: 3.07%
Updated: November 17 2022
huggingface.co

Total runs: 2.1M
Run Growth: 72.4K
Growth Rate: 3.42%
Updated: November 14 2023
huggingface.co

Total runs: 1.8M
Run Growth: 575.4K
Growth Rate: 31.38%
Updated: February 29 2024
huggingface.co

Total runs: 1.3M
Run Growth: 1.3M
Growth Rate: 96.08%
Updated: June 13 2023
huggingface.co

Total runs: 974.6K
Run Growth: 651.8K
Growth Rate: 66.77%
Updated: September 15 2023
huggingface.co

Total runs: 913.3K
Run Growth: 334.9K
Growth Rate: 36.67%
Updated: November 16 2023
huggingface.co

Total runs: 830.8K
Run Growth: 85.7K
Growth Rate: 10.71%
Updated: January 12 2024
huggingface.co

Total runs: 657.8K
Run Growth: -128.7K
Growth Rate: -19.57%
Updated: December 28 2021
huggingface.co

Total runs: 609.1K
Run Growth: -409.0K
Growth Rate: -67.16%
Updated: July 25 2023
huggingface.co

Total runs: 466.6K
Run Growth: -18.3K
Growth Rate: -3.92%
Updated: September 01 2023
huggingface.co

Total runs: 353.9K
Run Growth: -52.0K
Growth Rate: -14.69%
Updated: January 20 2022
huggingface.co

Total runs: 238.6K
Run Growth: 100.0K
Growth Rate: 42.57%
Updated: September 15 2023
huggingface.co

Total runs: 226.1K
Run Growth: 16.8K
Growth Rate: 7.41%
Updated: September 06 2023
huggingface.co

Total runs: 193.7K
Run Growth: 104.6K
Growth Rate: 51.42%
Updated: January 12 2024
huggingface.co

Total runs: 191.4K
Run Growth: -40.8K
Growth Rate: -21.33%
Updated: June 03 2022
huggingface.co

Total runs: 190.8K
Run Growth: -107.5K
Growth Rate: -52.52%
Updated: January 12 2024
huggingface.co

Total runs: 184.5K
Run Growth: -548.3K
Growth Rate: -320.98%
Updated: June 15 2023
huggingface.co

Total runs: 159.1K
Run Growth: -13.1K
Growth Rate: -8.25%
Updated: September 05 2023
huggingface.co

Total runs: 151.3K
Run Growth: -102.5K
Growth Rate: -67.77%
Updated: May 22 2023
huggingface.co

Total runs: 63.4K
Run Growth: 16.8K
Growth Rate: 26.50%
Updated: May 22 2023
huggingface.co

Total runs: 63.4K
Run Growth: 1.7K
Growth Rate: 2.67%
Updated: September 15 2023
huggingface.co

Total runs: 62.0K
Run Growth: 55.3K
Growth Rate: 88.95%
Updated: November 20 2023
huggingface.co

Total runs: 61.6K
Run Growth: 15.6K
Growth Rate: 25.75%
Updated: January 25 2023
huggingface.co

Total runs: 56.9K
Run Growth: -6.0K
Growth Rate: -10.47%
Updated: October 16 2024
huggingface.co

Total runs: 51.5K
Run Growth: 5.6K
Growth Rate: 10.82%
Updated: March 13 2024
huggingface.co

Total runs: 43.8K
Run Growth: 17.4K
Growth Rate: 38.62%
Updated: February 12 2023
huggingface.co

Total runs: 36.3K
Run Growth: 12.3K
Growth Rate: 33.83%
Updated: September 06 2023
huggingface.co

Total runs: 30.8K
Run Growth: -7.8K
Growth Rate: -25.06%
Updated: June 05 2023
huggingface.co

Total runs: 25.9K
Run Growth: 3.8K
Growth Rate: 14.71%
Updated: July 23 2024