You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
9 years ago | |
|---|---|---|
| .. | ||
| README.md | 9 years ago | |
| ctc_beam_search_decoder.cpp | 9 years ago | |
| ctc_beam_search_decoder.h | 9 years ago | |
| ctc_beam_search_decoder.i | 9 years ago | |
| decoder_setup.py | 9 years ago | |
| scorer.cpp | 9 years ago | |
| scorer.h | 9 years ago | |
| scorer.i | 9 years ago | |
| scorer_setup.py | 9 years ago | |
| setup.sh | 9 years ago | |
README.md
Installation
The setup of the decoder for deployment depends on the source code of kenlm, first clone it to current directory (i.e., deep_speech_2/deploy)
git clone https://github.com/kpu/kenlm.git
Then run the setup
sh setup.sh
After the installation succeeds, go back to the parent directory
cd ..
Deployment
For GPU deployment
CUDA_VISIBLE_DEVICES=0 python deploy.py
For CPU deployment
python deploy.py --use_gpu=False
More help for arguments
python deploy.py --help