anah1tbaghdassarian
commited on
Commit
•
11c5e85
1
Parent(s):
45b933c
Upload config
Browse files- readme_template.md +102 -0
readme_template.md
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: cc-by-4.0
|
5 |
+
library_name: nemo
|
6 |
+
datasets:
|
7 |
+
- mozilla-foundation/common_voice_17_0
|
8 |
+
thumbnail: null
|
9 |
+
tags:
|
10 |
+
- automatic-speech-recognition
|
11 |
+
- speech
|
12 |
+
- audio
|
13 |
+
- CTC
|
14 |
+
- Conformer
|
15 |
+
- Transformer
|
16 |
+
- NeMo
|
17 |
+
- pytorch
|
18 |
+
model-index:
|
19 |
+
- name: /content/Model-hy-AM.nemo
|
20 |
+
results: []
|
21 |
+
|
22 |
+
---
|
23 |
+
|
24 |
+
|
25 |
+
## Model Overview
|
26 |
+
|
27 |
+
<DESCRIBE IN ONE LINE THE MODEL AND ITS USE>
|
28 |
+
|
29 |
+
## NVIDIA NeMo: Training
|
30 |
+
|
31 |
+
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.
|
32 |
+
```
|
33 |
+
pip install nemo_toolkit['all']
|
34 |
+
```
|
35 |
+
|
36 |
+
## How to Use this Model
|
37 |
+
|
38 |
+
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.
|
39 |
+
|
40 |
+
### Automatically instantiate the model
|
41 |
+
|
42 |
+
```python
|
43 |
+
import nemo.collections.asr as nemo_asr
|
44 |
+
asr_model = nemo_asr.models.ASRModel.from_pretrained("anah1tbaghdassarian//content/Model-hy-AM.nemo")
|
45 |
+
```
|
46 |
+
|
47 |
+
### Transcribing using Python
|
48 |
+
First, let's get a sample
|
49 |
+
```
|
50 |
+
wget https://dldata-public.s3.us-east-2.amazonaws.com/2086-149220-0033.wav
|
51 |
+
```
|
52 |
+
Then simply do:
|
53 |
+
```
|
54 |
+
asr_model.transcribe(['2086-149220-0033.wav'])
|
55 |
+
```
|
56 |
+
|
57 |
+
### Transcribing many audio files
|
58 |
+
|
59 |
+
```shell
|
60 |
+
python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py pretrained_name="anah1tbaghdassarian//content/Model-hy-AM.nemo" audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
|
61 |
+
```
|
62 |
+
|
63 |
+
### Input
|
64 |
+
|
65 |
+
This model accepts 16000 KHz Mono-channel Audio (wav files) as input.
|
66 |
+
|
67 |
+
### Output
|
68 |
+
|
69 |
+
This model provides transcribed speech as a string for a given audio sample.
|
70 |
+
|
71 |
+
## Model Architecture
|
72 |
+
|
73 |
+
<ADD SOME INFORMATION ABOUT THE ARCHITECTURE>
|
74 |
+
|
75 |
+
## Training
|
76 |
+
|
77 |
+
<ADD INFORMATION ABOUT HOW THE MODEL WAS TRAINED - HOW MANY EPOCHS, AMOUNT OF COMPUTE ETC>
|
78 |
+
|
79 |
+
### Datasets
|
80 |
+
|
81 |
+
<LIST THE NAME AND SPLITS OF DATASETS USED TO TRAIN THIS MODEL (ALONG WITH LANGUAGE AND ANY ADDITIONAL INFORMATION)>
|
82 |
+
|
83 |
+
## Performance
|
84 |
+
|
85 |
+
<LIST THE SCORES OF THE MODEL -
|
86 |
+
OR
|
87 |
+
USE THE Hugging Face Evaluate LiBRARY TO UPLOAD METRICS>
|
88 |
+
|
89 |
+
## Limitations
|
90 |
+
|
91 |
+
<DECLARE ANY POTENTIAL LIMITATIONS OF THE MODEL>
|
92 |
+
|
93 |
+
Eg:
|
94 |
+
Since this model was trained on publicly 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.
|
95 |
+
|
96 |
+
|
97 |
+
## References
|
98 |
+
|
99 |
+
<ADD ANY REFERENCES HERE AS NEEDED>
|
100 |
+
|
101 |
+
[1] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)
|
102 |
+
|