kaushal98b
commited on
Commit
•
642cf9f
1
Parent(s):
8f9527f
Update README.md
Browse files
README.md
CHANGED
@@ -1,91 +1,63 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
|
|
|
|
3 |
---
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
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 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
This model is a onformer-Large model, consisting of 120M parameters, as the encoder, with a hybrid CTC-RNNT decoder. The model has 17 conformer blocks with
|
61 |
-
512 as the model dimension.
|
62 |
-
|
63 |
-
## Training
|
64 |
-
|
65 |
-
<ADD INFORMATION ABOUT HOW THE MODEL WAS TRAINED - HOW MANY EPOCHS, AMOUNT OF COMPUTE ETC>
|
66 |
-
|
67 |
-
### Datasets
|
68 |
-
|
69 |
-
<LIST THE NAME AND SPLITS OF DATASETS USED TO TRAIN THIS MODEL (ALONG WITH LANGUAGE AND ANY ADDITIONAL INFORMATION)>
|
70 |
-
|
71 |
-
## Performance
|
72 |
-
|
73 |
-
<LIST THE SCORES OF THE MODEL -
|
74 |
-
OR
|
75 |
-
USE THE Hugging Face Evaluate LiBRARY TO UPLOAD METRICS>
|
76 |
-
|
77 |
-
## Limitations
|
78 |
-
|
79 |
-
<DECLARE ANY POTENTIAL LIMITATIONS OF THE MODEL>
|
80 |
-
|
81 |
-
Eg:
|
82 |
-
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.
|
83 |
-
|
84 |
-
|
85 |
-
## References
|
86 |
-
|
87 |
-
<ADD ANY REFERENCES HERE AS NEEDED>
|
88 |
-
|
89 |
-
[1] [AI4Bharat NeMo Toolkit](https://github.com/AI4Bharat/NeMo)
|
90 |
-
|
91 |
-
|
|
|
1 |
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- sd
|
5 |
+
pipeline_tag: automatic-speech-recognition
|
6 |
+
library_name: nemo
|
7 |
---
|
8 |
+
## IndicConformer
|
9 |
+
|
10 |
+
IndicConformer is a Hybrid RNNT conformer model built for Sindhi.
|
11 |
+
|
12 |
+
## AI4Bharat NeMo:
|
13 |
+
|
14 |
+
To load, train, fine-tune or play with the model you will need to install [AI4Bharat NeMo](https://github.com/AI4Bharat/NeMo). We recommend you install it using the command shown below
|
15 |
+
```
|
16 |
+
git clone https://github.com/AI4Bharat/NeMo.git && cd NeMo && git checkout nemo-v2 && bash reinstall.sh
|
17 |
+
```
|
18 |
+
|
19 |
+
## Usage
|
20 |
+
|
21 |
+
```bash
|
22 |
+
$ python inference.py --help
|
23 |
+
usage: inference.py [-h] -c CHECKPOINT -f AUDIO_FILEPATH -d (cpu,cuda) -l LANGUAGE_CODE
|
24 |
+
options:
|
25 |
+
-h, --help show this help message and exit
|
26 |
+
-c CHECKPOINT, --checkpoint CHECKPOINT
|
27 |
+
Path to .nemo file
|
28 |
+
-f AUDIO_FILEPATH, --audio_filepath AUDIO_FILEPATH
|
29 |
+
Audio filepath
|
30 |
+
-d (cpu,cuda), --device (cpu,cuda)
|
31 |
+
Device (cpu/gpu)
|
32 |
+
-l LANGUAGE_CODE, --language_code LANGUAGE_CODE
|
33 |
+
Language Code (eg. hi)
|
34 |
+
```
|
35 |
+
|
36 |
+
## Example command
|
37 |
+
```
|
38 |
+
python inference.py -c indicconformer_stt_sd_hybrid_rnnt_large.nemo -f hindi-16khz.wav -d cuda -l hi
|
39 |
+
```
|
40 |
+
Expected output -
|
41 |
+
|
42 |
+
```
|
43 |
+
Loading model..
|
44 |
+
...
|
45 |
+
Transcibing..
|
46 |
+
----------
|
47 |
+
Transcript:
|
48 |
+
Took ** seconds.
|
49 |
+
----------
|
50 |
+
```
|
51 |
+
|
52 |
+
### Input
|
53 |
+
|
54 |
+
This model accepts 16000 KHz Mono-channel Audio (wav files) as input.
|
55 |
+
|
56 |
+
### Output
|
57 |
+
|
58 |
+
This model provides transcribed speech as a string for a given audio sample.
|
59 |
+
|
60 |
+
## Model Architecture
|
61 |
+
|
62 |
+
This model is a conformer-Large model, consisting of 120M parameters, as the encoder, with a hybrid CTC-RNNT decoder. The model has 17 conformer blocks with
|
63 |
+
512 as the model dimension.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|