ksingla025
commited on
Commit
•
916b96e
1
Parent(s):
766a22a
Update README.md
Browse files
README.md
CHANGED
@@ -17,198 +17,89 @@ model-index:
|
|
17 |
name: WER
|
18 |
---
|
19 |
|
20 |
-
# Model Card for Model ID
|
21 |
|
22 |
-
|
23 |
|
|
|
24 |
|
|
|
25 |
|
26 |
-
|
|
|
|
|
|
|
27 |
|
28 |
-
|
29 |
|
30 |
-
|
31 |
|
|
|
32 |
|
|
|
|
|
|
|
|
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
40 |
|
41 |
-
###
|
42 |
|
43 |
-
|
|
|
|
|
44 |
|
45 |
-
|
46 |
-
- **Paper [optional]:** [More Information Needed]
|
47 |
-
- **Demo [optional]:** [More Information Needed]
|
48 |
|
49 |
-
|
50 |
|
51 |
-
|
52 |
|
53 |
-
|
54 |
|
55 |
-
|
56 |
|
57 |
-
|
58 |
|
59 |
-
|
60 |
|
61 |
-
|
62 |
|
63 |
-
|
64 |
|
65 |
-
|
66 |
|
67 |
-
|
68 |
|
69 |
-
|
|
|
|
|
70 |
|
71 |
-
##
|
72 |
|
73 |
-
|
74 |
|
75 |
-
|
|
|
76 |
|
77 |
-
### Recommendations
|
78 |
|
79 |
-
|
80 |
|
81 |
-
|
82 |
|
83 |
-
|
84 |
|
85 |
-
Use the code below to get started with the model.
|
86 |
|
87 |
-
[More Information Needed]
|
88 |
|
89 |
-
## Training Details
|
90 |
|
91 |
-
### Training Data
|
92 |
|
93 |
-
<!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
94 |
-
|
95 |
-
[More Information Needed]
|
96 |
-
|
97 |
-
### Training Procedure
|
98 |
-
|
99 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
100 |
-
|
101 |
-
#### Preprocessing [optional]
|
102 |
-
|
103 |
-
[More Information Needed]
|
104 |
-
|
105 |
-
|
106 |
-
#### Training Hyperparameters
|
107 |
-
|
108 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
109 |
-
|
110 |
-
#### Speeds, Sizes, Times [optional]
|
111 |
-
|
112 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
113 |
-
|
114 |
-
[More Information Needed]
|
115 |
-
|
116 |
-
## Evaluation
|
117 |
-
|
118 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
119 |
-
|
120 |
-
### Testing Data, Factors & Metrics
|
121 |
-
|
122 |
-
#### Testing Data
|
123 |
-
|
124 |
-
<!-- This should link to a Data Card if possible. -->
|
125 |
-
|
126 |
-
[More Information Needed]
|
127 |
-
|
128 |
-
#### Factors
|
129 |
-
|
130 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
131 |
-
|
132 |
-
[More Information Needed]
|
133 |
-
|
134 |
-
#### Metrics
|
135 |
-
|
136 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
137 |
-
|
138 |
-
[More Information Needed]
|
139 |
-
|
140 |
-
### Results
|
141 |
-
|
142 |
-
[More Information Needed]
|
143 |
-
|
144 |
-
#### Summary
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
## Model Examination [optional]
|
149 |
-
|
150 |
-
<!-- Relevant interpretability work for the model goes here -->
|
151 |
-
|
152 |
-
[More Information Needed]
|
153 |
-
|
154 |
-
## Environmental Impact
|
155 |
-
|
156 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
157 |
-
|
158 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
159 |
-
|
160 |
-
- **Hardware Type:** [More Information Needed]
|
161 |
-
- **Hours used:** [More Information Needed]
|
162 |
-
- **Cloud Provider:** [More Information Needed]
|
163 |
-
- **Compute Region:** [More Information Needed]
|
164 |
-
- **Carbon Emitted:** [More Information Needed]
|
165 |
-
|
166 |
-
## Technical Specifications [optional]
|
167 |
-
|
168 |
-
### Model Architecture and Objective
|
169 |
-
|
170 |
-
[More Information Needed]
|
171 |
-
|
172 |
-
### Compute Infrastructure
|
173 |
-
|
174 |
-
[More Information Needed]
|
175 |
-
|
176 |
-
#### Hardware
|
177 |
-
|
178 |
-
[More Information Needed]
|
179 |
-
|
180 |
-
#### Software
|
181 |
-
|
182 |
-
[More Information Needed]
|
183 |
-
|
184 |
-
## Citation [optional]
|
185 |
-
|
186 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
187 |
-
|
188 |
-
**BibTeX:**
|
189 |
-
|
190 |
-
[More Information Needed]
|
191 |
-
|
192 |
-
**APA:**
|
193 |
-
|
194 |
-
[More Information Needed]
|
195 |
-
|
196 |
-
## Glossary [optional]
|
197 |
-
|
198 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
199 |
-
|
200 |
-
[More Information Needed]
|
201 |
-
|
202 |
-
## More Information [optional]
|
203 |
-
|
204 |
-
[More Information Needed]
|
205 |
-
|
206 |
-
## Model Card Authors [optional]
|
207 |
-
|
208 |
-
[More Information Needed]
|
209 |
-
|
210 |
-
## Model Card Contact
|
211 |
-
|
212 |
-
[More Information Needed]
|
213 |
|
214 |
|
|
|
17 |
name: WER
|
18 |
---
|
19 |
|
|
|
20 |
|
21 |
+
## ASR+NL Cache-aware Model Overview
|
22 |
|
23 |
+
Recoganize begin and end of digit sequences and also transcribe
|
24 |
|
25 |
+
## NVIDIA NeMo: Training
|
26 |
|
27 |
+
To train, fine-tune or play with the model you will need to install [NVIDIA NeMo](https://github.com/NVIDIA/NeMo). We recommend you install it after you've installed latest Pytorch version.
|
28 |
+
```
|
29 |
+
pip install nemo_toolkit['all']
|
30 |
+
```
|
31 |
|
32 |
+
## How to Use this Model
|
33 |
|
34 |
+
The model is available for use in the NeMo toolkit [3], and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.
|
35 |
|
36 |
+
### Automatically instantiate the model
|
37 |
|
38 |
+
```python
|
39 |
+
import nemo.collections.asr as nemo_asr
|
40 |
+
asr_model = nemo_asr.models.ASRModel.from_pretrained("ksingla025/stt_en_conformer_ctc_caware")
|
41 |
+
```
|
42 |
|
43 |
+
### Transcribe and tag using Python
|
44 |
+
First, let's get a sample
|
45 |
+
```
|
46 |
+
wget https://www.dropbox.com/s/fmre0xkl3ism62e/audio.zip?dl=0
|
47 |
+
unzip audio.zip
|
48 |
+
```
|
49 |
+
Then simply do:
|
50 |
+
```
|
51 |
+
asr_model.transcribe(['audio/digits1.wav'])
|
52 |
+
```
|
53 |
|
54 |
+
### Transcribing many audio files
|
55 |
|
56 |
+
```shell
|
57 |
+
python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py pretrained_name="ksingla025/stt_en_conformer_ctc_caware" audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
|
58 |
+
```
|
59 |
|
60 |
+
### Input
|
|
|
|
|
61 |
|
62 |
+
This model accepts 16000 KHz Mono-channel Audio (wav files) as input.
|
63 |
|
64 |
+
### Output
|
65 |
|
66 |
+
This model provides transcribed speech as a string for a given audio sample.
|
67 |
|
68 |
+
## Model Architecture
|
69 |
|
70 |
+
<ADD SOME INFORMATION ABOUT THE ARCHITECTURE>
|
71 |
|
72 |
+
## Training
|
73 |
|
74 |
+
<ADD INFORMATION ABOUT HOW THE MODEL WAS TRAINED - HOW MANY EPOCHS, AMOUNT OF COMPUTE ETC>
|
75 |
|
76 |
+
### Datasets
|
77 |
|
78 |
+
<LIST THE NAME AND SPLITS OF DATASETS USED TO TRAIN THIS MODEL (ALONG WITH LANGUAGE AND ANY ADDITIONAL INFORMATION)>
|
79 |
|
80 |
+
## Performance
|
81 |
|
82 |
+
<LIST THE SCORES OF THE MODEL -
|
83 |
+
OR
|
84 |
+
USE THE Hugging Face Evaluate LiBRARY TO UPLOAD METRICS>
|
85 |
|
86 |
+
## Limitations
|
87 |
|
88 |
+
<DECLARE ANY POTENTIAL LIMITATIONS OF THE MODEL>
|
89 |
|
90 |
+
Eg:
|
91 |
+
Since this model was trained on publically available speech datasets, the performance of this model might degrade for speech which includes technical terms, or vernacular that the model has not been trained on. The model might also perform worse for accented speech.
|
92 |
|
|
|
93 |
|
94 |
+
## References
|
95 |
|
96 |
+
<ADD ANY REFERENCES HERE AS NEEDED>
|
97 |
|
98 |
+
[1] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
|