From 6b98b8b9f4d3895a93e85d4cfed40b1ecbe6f181 Mon Sep 17 00:00:00 2001 From: lzr265946 <lzr265946@alibaba-inc.com> Date: 星期二, 17 一月 2023 13:04:46 +0800 Subject: [PATCH] remove </s> in token and fix output_dir in infer --- docs/installation.md | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/docs/installation.md b/docs/installation.md new file mode 100755 index 0000000..1eb813b --- /dev/null +++ b/docs/installation.md @@ -0,0 +1,35 @@ +# Installation +FunASR is easy to install, which is mainly based on python packages. + +- Clone the repo +``` sh +git clone https://github.com/alibaba/FunASR.git +``` + +- Install Conda +``` sh +wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh +sh Miniconda3-latest-Linux-x86_64.sh +conda create -n funasr python=3.7 +conda activate funasr +``` + +- Install Pytorch (version >= 1.7.0): + +| cuda | | +|:-----:| --- | +| 9.2 | conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=9.2 -c pytorch | +| 10.2 | conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=10.2 -c pytorch | +| 11.1 | conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch | + +For more versions, please see [https://pytorch.org/get-started/locally](https://pytorch.org/get-started/locally) + +- Install ModelScope +``` sh +pip install "modelscope[audio]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html +``` + +- Install other packages +``` sh +pip install --editable ./ +``` \ No newline at end of file -- Gitblit v1.9.1