forked from wenet-e2e/wenet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] move install to docs folder (wenet-e2e#1730)
- Loading branch information
Showing
2 changed files
with
45 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# 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. | ||
``` sh | ||
pip3 install wenetruntime | ||
``` | ||
|
||
And please see [doc](https://github.com/wenet-e2e/wenet/tree/main/runtime/binding/python) for usage. | ||
|
||
|
||
## Install for training | ||
|
||
- Clone the repo | ||
``` sh | ||
git clone https://github.com/wenet-e2e/wenet.git | ||
``` | ||
|
||
- Install Conda: please see https://docs.conda.io/en/latest/miniconda.html | ||
- Create Conda env: | ||
|
||
``` sh | ||
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. | ||
|
||
``` sh | ||
# runtime build requires cmake 3.14 or above | ||
cd runtime/libtorch | ||
mkdir build && cd build && cmake -DGRAPH_TOOLS=ON .. && cmake --build . | ||
``` | ||
|
||
Please see [doc](https://github.com/wenet-e2e/wenet/tree/main/runtime) for building | ||
runtime on more platforms and OS. |