mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
commit
a26818d69c
17
README.md
17
README.md
@ -23,7 +23,7 @@
|
||||
- FunASR supplies a easy-to-use pipeline to finetune pretrained models from [ModelScope](https://www.modelscope.cn/models?page=1&tasks=auto-speech-recognition)
|
||||
- Compared to [Espnet](https://github.com/espnet/espnet) framework, the training speed of large-scale datasets in FunASR is much faster owning to the optimized dataloader.
|
||||
|
||||
## Installation(Training and Developing)
|
||||
## Installation
|
||||
|
||||
- Install Conda:
|
||||
``` sh
|
||||
@ -40,16 +40,17 @@ pip3 install torch torchvision torchaudio
|
||||
```
|
||||
For more versions, please see [https://pytorch.org/get-started/locally](https://pytorch.org/get-started/locally)
|
||||
|
||||
- Install ModelScope:
|
||||
|
||||
If you are in the area of China, you could set the source to speed the downloading.
|
||||
If you are in the area of China, you could set the source to speedup the downloading.
|
||||
|
||||
``` sh
|
||||
pip config set global.index-url https://mirror.sjtu.edu.cn/pypi/web/simple
|
||||
```
|
||||
|
||||
- Install ModelScope:
|
||||
Install or upgrade modelscope.
|
||||
``` sh
|
||||
pip install "modelscope[audio]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html
|
||||
pip install "modelscope[audio]" --upgrade -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html
|
||||
```
|
||||
|
||||
For more details about modelscope, please see [modelscope installation](https://modelscope.cn/docs/%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85)
|
||||
@ -61,18 +62,14 @@ git clone https://github.com/alibaba/FunASR.git && cd FunASR
|
||||
pip install --editable ./
|
||||
```
|
||||
|
||||
## Pretrained Model Zoo
|
||||
|
||||
We have trained many academic and industrial models, [model hub](docs/modelscope_models.md)
|
||||
|
||||
## Contact
|
||||
|
||||
If you have any questions about FunASR, please contact us by
|
||||
|
||||
- email: [funasr@list.alibaba-inc.com](funasr@list.alibaba-inc.com)
|
||||
|
||||
- Dingding group:
|
||||
<div align="left"><img src="docs/images/dingding.jpg" width="250"/>!<img src="docs/images/wechat.png" width="222"/></div>
|
||||
- Dingding group and Wechat group:
|
||||
<div align="left"><img src="docs/images/dingding.jpg" width="250"/> <img src="docs/images/wechat.png" width="222"/></div>
|
||||
|
||||
|
||||
## Acknowledge
|
||||
|
||||
BIN
docs/images/.DS_Store
vendored
BIN
docs/images/.DS_Store
vendored
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 183 KiB |
@ -3,6 +3,7 @@ import argparse
|
||||
import logging
|
||||
import sys
|
||||
import time
|
||||
import json
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
from typing import Sequence
|
||||
@ -637,8 +638,9 @@ def inference_modelscope(
|
||||
postprocessed_result[2]
|
||||
if len(word_lists) > 0:
|
||||
text_postprocessed_punc, punc_id_list = text2punc(word_lists, 20)
|
||||
text_postprocessed_punc_time_stamp = "predictions: {} time_stamp: {}".format(
|
||||
text_postprocessed_punc, time_stamp_postprocessed)
|
||||
text_postprocessed_punc_time_stamp = json.dumps({"predictions": text_postprocessed_punc,
|
||||
"time_stamp": time_stamp_postprocessed},
|
||||
ensure_ascii=False)
|
||||
else:
|
||||
text_postprocessed_punc = ""
|
||||
punc_id_list = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user