(Suggestion) Python == 3.11
git clone https://github.com/ouor/vits.git- Fill "text_cleaners" in config.json
- Edit text/symbols.py
- Text cleaner is korean by default
- Remove unnecessary imports from text/cleaners.py
python3.XX-dev is required for building monotonic alignment search. If you have multiple python versions, install the required version.
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.11-dev python3.11-venvconda create -n vits python=3.11
conda activate vits
conda install conda-forge::uvuv pip install -r requirements.txt"n_speakers" should be 0 in config.json
path/to/XXX.wav|transcript
- Example
trains/korean/datasets/train/001.wav|안녕하세요.
...
trains/korean/datasets/val/001.wav|안녕하세요.
Speaker id should start from 0
path/to/XXX.wav|speaker id|transcript
- Example
trains/korean/datasets/train/001.wav|0|안녕하세요.
...
trains/korean/datasets/val/001.wav|0|안녕하세요.
If you have done this, set "cleaned_text" to true in config.json
# Single speaker
python preprocess.py --text_index 1 --filelists trains/sample/filelist_train.txt trains/sample/filelist_val.txt
# Mutiple speakers
python preprocess.py --text_index 2 --filelists trains/sample/filelist_train.txt trains/sample/filelist_val.txtcd monotonic_align
mkdir monotonic_align
python setup.py build_ext --inplace
cd ..# Single speaker
python train.py -c trains/sample/config.json -m trains/sample/models
# Mutiple speakers
python train_ms.py -c trains/sample/config.json -m trains/sample/modelsPlace pre-trained models in "trains/sample/models". Like "trains/sample/models/G_0.pth" and "trains/sample/models/D_0.pth"
tensorboard --logdir=trains/sample/modelsSee inference.ipynb
docker run -itd --gpus all --name "Container name" -e NVIDIA_DRIVER_CAPABILITIES=compute,utility -e NVIDIA_VISIBLE_DEVICES=all "Image name"