ayymen commited on
Commit
2e9bca8
1 Parent(s): ec71136

Create README.md

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