csukuangfj
commited on
Commit
•
ec2e5f7
1
Parent(s):
e8ad466
update readme
Browse files
README.md
CHANGED
@@ -10,29 +10,38 @@ The inference framework is <https://github.com/k2-fsa/sherpa-ncnn>
|
|
10 |
|
11 |
```bash
|
12 |
sudo apt-get install git-lfs
|
13 |
-
git lfs install
|
14 |
-
|
15 |
-
git clone https://huggingface.co/csukuangfj/sherpa-ncnn-2022-09-05
|
16 |
|
17 |
git clone https://github.com/k2-fsa/sherpa-ncnn
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
cd sherpa-ncnn/build
|
23 |
cmake ..
|
24 |
-
make -
|
|
|
25 |
|
26 |
-
|
27 |
|
28 |
-
|
|
|
29 |
|
30 |
-
./bin/sherpa-ncnn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
```
|
32 |
|
33 |
If you have any issues, please ask at
|
34 |
<https://github.com/k2-fsa/sherpa-ncnn/issues>
|
35 |
|
|
|
|
|
|
|
|
|
36 |
[pnnx]: https://github.com/Tencent/ncnn/tree/master/tools/pnnx
|
37 |
[ncnn]: https://github.com/tencent/ncnn
|
38 |
[icefall]: https://github.com/k2-fsa/icefall
|
|
|
10 |
|
11 |
```bash
|
12 |
sudo apt-get install git-lfs
|
|
|
|
|
|
|
13 |
|
14 |
git clone https://github.com/k2-fsa/sherpa-ncnn
|
15 |
+
cd sherpa-ncnn
|
16 |
+
mkdir build
|
17 |
+
cd build
|
|
|
|
|
18 |
cmake ..
|
19 |
+
make -j6
|
20 |
+
cd ..
|
21 |
|
22 |
+
# Now download the pretrained model
|
23 |
|
24 |
+
git lfs install
|
25 |
+
git clone https://huggingface.co/csukuangfj/sherpa-ncnn-2022-09-05
|
26 |
|
27 |
+
./build/bin/sherpa-ncnn \
|
28 |
+
./sherpa-ncnn-2022-09-05/tokens.txt \
|
29 |
+
./sherpa-ncnn-2022-09-05/bar/encoder_jit_trace-iter-468000-avg-16-pnnx.ncnn.param \
|
30 |
+
./sherpa-ncnn-2022-09-05/bar/encoder_jit_trace-iter-468000-avg-16-pnnx.ncnn.bin \
|
31 |
+
./sherpa-ncnn-2022-09-05/bar/decoder_jit_trace-iter-468000-avg-16-pnnx.ncnn.param \
|
32 |
+
./sherpa-ncnn-2022-09-05/bar/decoder_jit_trace-iter-468000-avg-16-pnnx.ncnn.bin \
|
33 |
+
./sherpa-ncnn-2022-09-05/bar/joiner_jit_trace-iter-468000-avg-16-pnnx.ncnn.param \
|
34 |
+
./sherpa-ncnn-2022-09-05/bar/joiner_jit_trace-iter-468000-avg-16-pnnx.ncnn.bin \
|
35 |
+
./sherpa-ncnn-2022-09-05/test_wavs/1089-134686-0001.wav
|
36 |
```
|
37 |
|
38 |
If you have any issues, please ask at
|
39 |
<https://github.com/k2-fsa/sherpa-ncnn/issues>
|
40 |
|
41 |
+
Please see
|
42 |
+
<https://k2-fsa.github.io/icefall/recipes/librispeech/lstm_pruned_stateless_transducer.html>
|
43 |
+
for how the model is trained and exported to ncnn if you are interested.
|
44 |
+
|
45 |
[pnnx]: https://github.com/Tencent/ncnn/tree/master/tools/pnnx
|
46 |
[ncnn]: https://github.com/tencent/ncnn
|
47 |
[icefall]: https://github.com/k2-fsa/icefall
|