Open SzymonK1306 opened 7 months ago
❗ In case anyone ever experience problems with versions of Python libraries and the above instruction does not work - it is recommend to look into attached requirements (requirements_conda.txt or requirements_pip.txt) and install exactly the same versions of the conflicting/problematic libraries. In extreme cases, you can try to download repositories exactly under commits when it was tested.
conda
if neededwget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash [Miniconda3-latest-Linux-x86_64.sh](http://miniconda3-latest-linux-x86_64.sh/)
conda
environmentconda create --name taco2 python=3.6.8
conda activate taco2
tacotron2
git clone https://github.com/NVIDIA/tacotron2.git
cd tacotron2/
git submodule init && git submodule update
# Make sure you are in tacotron2/ dir
wget https://data.keithito.com/data/speech/LJSpeech-1.1.tar.bz2
tar -xvjf LJSpeech-1.1.tar.bz2
mv LJSpeech-1.1 ljs_dataset_folder
sed -i -- 's,DUMMY,ljs_dataset_folder/wavs,g' filelists/*.txt
tacotron2
pip install matplotlib tensorflow==1.15.2 numpy==1.19.4 inflect==0.2.5 librosa==0.6.0 scipy==1.5.4 Unidecode==1.0.22 pillow
torch
and some other modules (fixes)pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
pip install numba==0.48.0 future resampy==0.3.1
apex
# Make sure you are in tacotron2/ dir
git clone https://github.com/NVIDIA/apex.git
cd apex/
pip install -r requirements.txt
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --global-option="--cpp_ext" --global-option="--cuda_ext" ./
cd ../ # Returning back to tacotron2/ dir
python train.py --output_directory=outdir --log_directory=logdir
tensorboard
in another terminal sessiontensorboard --logdir=outdir/logdir
_Moved to branch add_tacotron2_docker_
Instruction step by step how to install and train Tacotron2