From cec84de3b676b5fdcd6c2f5dc30fe4b3571ed574 Mon Sep 17 00:00:00 2001 From: 游雁 <zhifu.gzf@alibaba-inc.com> Date: 星期三, 15 二月 2023 20:09:21 +0800 Subject: [PATCH] Merge branch 'main' of github.com:alibaba-damo-academy/FunASR add --- docs/installation.md | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 61d06b5..fb26913 100755 --- a/docs/installation.md +++ b/docs/installation.md @@ -1,35 +1,35 @@ # Installation -FunASR is easy to install, which is mainly based on python packages. +FunASR is easy to install. The detailed installation steps are as follows: -- Clone the repo -``` sh -git clone https://github.com/alibaba/FunASR.git -``` - -- Install Conda -``` sh +- Install Conda and create virtual environment: +```sh wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh sh Miniconda3-latest-Linux-x86_64.sh +source ~/.bashrc 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 | +```sh +pip install torch torchaudio +``` For more versions, please see [https://pytorch.org/get-started/locally](https://pytorch.org/get-started/locally) - Install ModelScope + +For users in China, you can configure the following mirror source to speed up the downloading: ``` sh +pip config set global.index-url https://mirror.sjtu.edu.cn/pypi/web/simple +``` +Install or update ModelScope +```sh pip install "modelscope[audio_asr]" --upgrade -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html ``` -- Install other packages +- Clone the repo and install other packages ``` sh +git clone https://github.com/alibaba/FunASR.git && cd FunASR pip install --editable ./ ``` \ No newline at end of file -- Gitblit v1.9.1