Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 885 Bytes

File metadata and controls

29 lines (22 loc) · 885 Bytes

安装MASR环境

本人用的就是本地环境和使用Anaconda,并创建了Python3.11的虚拟环境,出现安装问题,随时提issue

  • 首先安装的是Pytorch 2.5.1 的GPU版本,如果已经安装过了,请跳过。
conda install pytorch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1  pytorch-cuda=11.8 -c pytorch -c nvidia
  • 安装MASR库。

使用pip安装,命令如下:

python -m pip install masr -U -i https://pypi.tuna.tsinghua.edu.cn/simple

建议源码安装,源码安装能保证使用最新代码。

git clone https://github.com/yeyupiaoling/MASR.git
cd MASR
pip install .
  • 推理时,使用文本逆标准化需要安装WeTextProcessing库。
conda install pynini==2.1.6 -c conda-forge
python -m pip install WeTextProcessing>=1.0.4.1