Adel-Moumen commited on
Commit
27c6609
1 Parent(s): 8f98994

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +116 -0
README.md CHANGED
@@ -1,3 +1,119 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: apache-2.0
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ thumbnail: null
5
+ tags:
6
+ - automatic-speech-recognition
7
+ - CTC
8
+ - Attention
9
+ - Transformer
10
+ - Branchformer
11
+ - pytorch
12
+ - speechbrain
13
+ - hf-asr-leaderboard
14
  license: apache-2.0
15
+ datasets:
16
+ - LIUM/tedlium
17
+ metrics:
18
+ - wer
19
+ - cer
20
  ---
21
+
22
+ <iframe src="https://ghbtns.com/github-btn.html?user=speechbrain&repo=speechbrain&type=star&count=true&size=large&v=2" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
23
+ <br/><br/>
24
+
25
+ # Branchformer for Tedlium2
26
+
27
+ This repository provides all the necessary tools to perform automatic speech
28
+ recognition from an end-to-end system pretrained on Tedlium2 (EN) within
29
+ SpeechBrain. For a better experience, we encourage you to learn more about
30
+ [SpeechBrain](https://speechbrain.github.io).
31
+ The performance of the model is the following:
32
+
33
+ | Release | Test WER (no LM) | GPUs |
34
+ |:-------------:|:--------------:|:--------:|
35
+ | 21-06-23 | 8.11 | 1xA100 80GB |
36
+
37
+ ## Pipeline description
38
+
39
+ This ASR system is composed of 3 different but linked blocks:
40
+ - Tokenizer (unigram) that transforms words into subword units and trained with
41
+ the train transcriptions of LibriSpeech.
42
+ - Acoustic model made of a branchformer encoder and a joint decoder with CTC +
43
+ transformer. Hence, the decoding also incorporates the CTC probabilities.
44
+
45
+ The system is trained with recordings sampled at 16kHz (single channel).
46
+ The code will automatically normalize your audio (i.e., resampling + mono channel selection) when calling *transcribe_file* if needed.
47
+
48
+ ## Install SpeechBrain
49
+
50
+ First of all, please install SpeechBrain with the following command:
51
+
52
+ ```
53
+ pip install speechbrain
54
+ ```
55
+
56
+ Please notice that we encourage you to read our tutorials and learn more about
57
+ [SpeechBrain](https://speechbrain.github.io).
58
+
59
+ ### Transcribing your own audio files (in English)
60
+
61
+ ```python
62
+ from speechbrain.pretrained import EncoderDecoderASR
63
+
64
+ asr_model = EncoderDecoderASR.from_hparams(source="speechbrain/asr-branchformer-large-Tedlium2")
65
+ asr_model = EncoderDecoderASR.from_hparams(source="speechbrain/asr-branchformer-large-Tedlium2/example.wav")
66
+
67
+ ```
68
+ ### Inference on GPU
69
+ To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
70
+
71
+ ## Parallel Inference on a Batch
72
+ Please, [see this Colab notebook](https://colab.research.google.com/drive/1hX5ZI9S4jHIjahFCZnhwwQmFoGAi3tmu?usp=sharing) to figure out how to transcribe in parallel a batch of input sentences using a pre-trained model.
73
+
74
+ ### Training
75
+ The model was trained with SpeechBrain (Commit hash: 'f73fcc35').
76
+ To train it from scratch follow these steps:
77
+ 1. Clone SpeechBrain:
78
+ ```bash
79
+ git clone https://github.com/speechbrain/speechbrain/
80
+ ```
81
+ 2. Install it:
82
+ ```bash
83
+ cd speechbrain
84
+ pip install -r requirements.txt
85
+ pip install -e .
86
+ ```
87
+
88
+ 3. Run Training:
89
+ ```bash
90
+ cd recipes/LibriSpeech/ASR/transformer
91
+ python train.py hparams/conformer_large.yaml --data_folder=your_data_folder
92
+ ```
93
+
94
+ You can find our training results (models, logs, etc) [here](https://drive.google.com/drive/folders/1qL3P0j2Lc-LMvaF2OoL6aBE_jNwvYG3Q?usp=drive_link).
95
+
96
+ ### Limitations
97
+ The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.
98
+
99
+ # **About SpeechBrain**
100
+ - Website: https://speechbrain.github.io/
101
+ - Code: https://github.com/speechbrain/speechbrain/
102
+ - HuggingFace: https://huggingface.co/speechbrain/
103
+
104
+
105
+ # **Citing SpeechBrain**
106
+ Please, cite SpeechBrain if you use it for your research or business.
107
+
108
+
109
+ ```bibtex
110
+ @misc{speechbrain,
111
+ title={{SpeechBrain}: A General-Purpose Speech Toolkit},
112
+ author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and François Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
113
+ year={2021},
114
+ eprint={2106.04624},
115
+ archivePrefix={arXiv},
116
+ primaryClass={eess.AS},
117
+ note={arXiv:2106.04624}
118
+ }
119
+ ```