-
Notifications
You must be signed in to change notification settings - Fork 114
Installation
Soohwan Kim edited this page Jun 19, 2021
·
1 revision
This project recommends Python 3.7 or higher.
We recommend creating a new virtual environment for this project (using virtual env or conda).
- numpy:
pip install numpy
(Refer here for problem installing Numpy). - pytorch: Refer to PyTorch website to install the version w.r.t. your environment.
- librosa:
conda install -c conda-forge librosa
(Refer here for problem installing librosa) - torchaudio:
pip install torchaudio==0.6.0
(Refer here for problem installing torchaudio) - sentencepiece:
pip install sentencepiece
(Refer here for problem installing sentencepiece) - pytorch-lightning:
pip install pytorch-lightning
(Refer here for problem installing pytorch-lightning) - hydra:
pip install hydra-core --upgrade
(Refer here for problem installing hydra) - warp-rnnt: Refer to warp-rnnt page to install the library.
- ctcdecode: Refer to ctcdecode page to install the library.
You can install OpenSpeech with pypi.
pip install openspeech-core
Currently we only support installation from source code using setuptools. Checkout the source code and run the
following commands:
$ ./install.sh
For faster training install NVIDIA's apex library:
$ git clone https://github.com/NVIDIA/apex
$ cd apex
# ------------------------
# OPTIONAL: on your cluster you might need to load CUDA 10 or 9
# depending on how you installed PyTorch
# see available modules
module avail
# load correct CUDA before install
module load cuda-10.0
# ------------------------
# make sure you've loaded a cuda version > 4.0 and < 7.0
module load gcc-6.1.0
$ pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./