dastmard commited on
Commit
dd2e07e
1 Parent(s): 9d83d81

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +84 -0
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hf_model_name = f'{username}/{MODEL_NAME}'
2
+
3
+ TEMPLATE = f"""
4
+ ## Model Overview
5
+
6
+ <DESCRIBE IN ONE LINE THE MODEL AND ITS USE>
7
+
8
+ ## NVIDIA NeMo: Training
9
+
10
+ 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.
11
+ ```
12
+ pip install nemo_toolkit['all']
13
+ ```
14
+
15
+ ## How to Use this Model
16
+
17
+ 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.
18
+
19
+ ### Automatically instantiate the model
20
+
21
+ ```python
22
+ import nemo.collections.asr as nemo_asr
23
+ asr_model = nemo_asr.models.ASRModel.from_pretrained("{hf_model_name}")
24
+ ```
25
+
26
+ ### Transcribing using Python
27
+ First, let's get a sample
28
+ ```
29
+ wget https://dldata-public.s3.us-east-2.amazonaws.com/2086-149220-0033.wav
30
+ ```
31
+ Then simply do:
32
+ ```
33
+ asr_model.transcribe(['2086-149220-0033.wav'])
34
+ ```
35
+
36
+ ### Transcribing many audio files
37
+
38
+ ```shell
39
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py \
40
+ pretrained_name="{hf_model_name}" \
41
+ audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
42
+ ```
43
+
44
+ ### Input
45
+
46
+ This model accepts 16000 KHz Mono-channel Audio (wav files) as input.
47
+
48
+ ### Output
49
+
50
+ This model provides transcribed speech as a string for a given audio sample.
51
+
52
+ ## Model Architecture
53
+
54
+ <ADD SOME INFORMATION ABOUT THE ARCHITECTURE>
55
+
56
+ ## Training
57
+
58
+ <ADD INFORMATION ABOUT HOW THE MODEL WAS TRAINED - HOW MANY EPOCHS, AMOUNT OF COMPUTE ETC>
59
+
60
+ ### Datasets
61
+
62
+ <LIST THE NAME AND SPLITS OF DATASETS USED TO TRAIN THIS MODEL (ALONG WITH LANGUAGE AND ANY ADDITIONAL INFORMATION)>
63
+
64
+ ## Performance
65
+
66
+ <LIST THE SCORES OF THE MODEL -
67
+ OR
68
+ USE THE Hugging Face Evaluate LiBRARY TO UPLOAD METRICS>
69
+
70
+ ## Limitations
71
+
72
+ <DECLARE ANY POTENTIAL LIMITATIONS OF THE MODEL>
73
+
74
+ Eg:
75
+ 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.
76
+
77
+
78
+ ## References
79
+
80
+ <ADD ANY REFERENCES HERE AS NEEDED>
81
+
82
+ [1] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)
83
+
84
+ """