Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.15 KB

install.md

File metadata and controls

43 lines (31 loc) · 1.15 KB

Install

Install prebuilt python package

If you just want to use WeNet as a python package for speech recognition application, just install it by pip, please note python 3.6+ is required.

pip3 install wenetruntime

And please see doc for usage.

Install for training

  • Clone the repo
git clone https://github.com/wenet-e2e/wenet.git
conda create -n wenet python=3.8
conda activate wenet
pip install -r requirements.txt
conda install pytorch=1.10.0 torchvision torchaudio=0.10.0 cudatoolkit=11.1 -c pytorch -c conda-forge

Build for deployment

Optionally, if you want to use x86 runtime or language model(LM), you have to build the runtime as follows. Otherwise, you can just ignore this step.

# runtime build requires cmake 3.14 or above
cd runtime/libtorch
mkdir build && cd build && cmake -DGRAPH_TOOLS=ON .. && cmake --build .

Please see doc for building runtime on more platforms and OS.