We share neural Net together. We borrowed a lot of code from ESPnet, and we refered to OpenTransformer for batch inference.
The main motivation of WeNet is to close the gap between research and production end-to-end (E2E) speech recognition models, to reduce the effort of productionizing E2E models, and to explore better E2E models for production.
- Unified solution for streaming and non-streaming ASR: WeNet implements Unified Two Pass (U2) framework to achieve accurate, fast and unified E2E model, which is favorable for industry adoption.
- Light weight: WeNet is designed specifically for E2E speech recognition, with clean and simple code. It is all based on PyTorch and its corresponding ecosystem. It has no dependency on Kaldi, which simplifies installation and usage.
- Production ready: The python code of WeNet meets the requirements of TorchScript, so the model trained by WeNet can be directly exported by Torch JIT and use LibTorch for inference. There is no gap between the research model and production model. Neither model conversion nor additional code is required for model inference.
- Portable runtime: Several demos will be provided to show how to host WeNet trained models on different platforms, including server (x86) and embedded (ARM in Android platforms).
Please see examples/$dataset/s0/README.md
for WeNet benchmark on different speech datasets.
You can visit Docs for WeNet Sphinx documentation. Or please read tutorials below:
- Clone the repo
git clone https://github.com/mobvoi/wenet.git
- Install Conda: please see https://docs.conda.io/en/latest/miniconda.html
- Create Conda env: (PyTorch 1.6.0 is recommended. We met some error on NCCL when using 1.7.0 on 2080 Ti.)
conda create -n wenet python=3.8
conda activate wenet
pip install -r requirements.txt
conda install pytorch==1.6.0 cudatoolkit=10.1 torchaudio -c pytorch
In addition to discussing in Github Issues, we created a WeChat group for better discussion and quicker response. Please scan the following QR code in WeChat to join the chat group. If it fails, please scan the personal QR code on the right with contact info like "wenet", and we will invite you to the chat group.