Commit 2f6c23cd authored by dcuai's avatar dcuai
Browse files

Update README.md

parent 166b5ca6
......@@ -7,7 +7,7 @@ MooER模型是一个由摩尔线程开发的、基于大语言模型(Large Lan
![模型结构](images/model_structure.png)
## 算法原理
通过摩耳框架,可以基于大语言模型(Large Language Model,LLM),以端到端的方式,将输入语音自动转录为文本(即语音识别),并将其翻译为其它语言(即语音翻译)
通过摩耳框架,可以基于大语言模型(Large Language Model,LLM),以端到端的方式,将输入语音自动转录为文本(即语音识别),并将其翻译为其它语言(即语音翻译)
## 环境配置
### Docker(方法一)
......@@ -50,12 +50,6 @@ pip install -r requirements.txt
## 推理
1:下载预训练模型MooER-MTL-5K,推荐使用scnet快速下载链接[MooER-MTL-5K](),官方下载地址[ModelScope](https://modelscope.cn/models/MooreThreadsSpeech/MooER-MTL-5K)或者[HF-Mirror](https://hf-mirror.com/mtspeech/MooER-MTL-5K)。
```
# 使用ModelScope
git lfs clone https://modelscope.cn/models/MooreThreadsSpeech/MooER-MTL-5K
# 使用HF-Mirror
git lfs clone https://hf-mirror.com/mtspeech/MooER-MTL-5K
```
将下载后的文件放置在 `pretrained_models` 文件夹中。
```shell
cp MooER-MTL-5K/* pretrained_models
......@@ -122,7 +116,6 @@ export PYTHONPATH=$PWD/src:$PYTHONPATH
# 使用指定的音频文件
python inference.py --wav_path /path/to/your_audio_file
```
<br>
**指定语音识别模型,仅输出识别结果:**
```
python inference.py --task asr \
......@@ -133,7 +126,6 @@ python inference.py --task asr \
--lora_dir pretrained_models/asr/lora_weights \
--wav_path /path/to/your_audio_file
```
<br>
**指定语音翻译模型,仅输出中译英结果**
```
python inference.py --task ast \
......@@ -158,6 +150,7 @@ ASR: 欢迎使用由摩尔线程开发的基于大语言模型的语音识别及
```
AST: Welcome to use the voice recognition and voice translation system based on the large language model developed by Moore Threads.
```
### 精度
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment