You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make `XTTS_v2` GPT encoder training easier for beginner users we did a gradio demo that implements the whole fine-tuning pipeline. The gradio demo enables the user to easily do the following steps:
271
+
272
+
- Preprocessing of the uploaded audio or audio files in 🐸 TTS coqui formatter
273
+
- Train the XTTS GPT encoder with the processed data
274
+
- Inference support using the fine-tuned model
275
+
276
+
The user can run this gradio demo locally or remotely using a Colab Notebook.
277
+
278
+
##### Run demo on Colab
279
+
To make the `XTTS_v2` fine-tuning more accessible for users that do not have good GPUs available we did a Google Colab Notebook.
280
+
281
+
The Colab Notebook is available [here](https://colab.research.google.com/drive/1GiI4_X724M8q2W-zZ-jXo7cWTV7RfaH-?usp=sharing).
282
+
283
+
To learn how to use this Colab Notebook please check the [XTTS fine-tuning video]().
284
+
285
+
If you are not able to acess the video you need to follow the steps:
286
+
287
+
1. Open the Colab notebook and start the demo by runining the first two cells (ignore pip install errors in the first one).
288
+
2. Click on the link "Running on public URL:" on the second cell output.
289
+
3. On the first Tab (1 - Data processing) you need to select the audio file or files, wait for upload, and then click on the button "Step 1 - Create dataset" and then wait until the dataset processing is done.
290
+
4. Soon as the dataset processing is done you need to go to the second Tab (2 - Fine-tuning XTTS Encoder) and press the button "Step 2 - Run the training" and then wait until the training is finished. Note that it can take up to 40 minutes.
291
+
5. Soon the training is done you can go to the third Tab (3 - Inference) and then click on the button "Step 3 - Load Fine-tuned XTTS model" and wait until the fine-tuned model is loaded. Then you can do the inference on the model by clicking on the button "Step 4 - Inference".
292
+
293
+
294
+
##### Run demo locally
295
+
296
+
To run the demo locally you need to do the following steps:
297
+
1. Install 🐸 TTS following the instructions available [here](https://tts.readthedocs.io/en/dev/installation.html#installation).
298
+
2. Install the Gradio demo requirements with the command `python3 -m pip install -r TTS/demos/xtts_ft_demo/requirements.txt`
299
+
3. Run the Gradio demo using the command `python3 TTS/demos/xtts_ft_demo/xtts_demo.py`
300
+
4. Follow the steps presented in the [tutorial video](https://www.youtube.com/watch?v=8tpDiiouGxc&feature=youtu.be) to be able to fine-tune and test the fine-tuned model.
301
+
302
+
303
+
If you are not able to access the video, here is what you need to do:
304
+
305
+
1. On the first Tab (1 - Data processing) select the audio file or files, wait for upload
306
+
2. Click on the button "Step 1 - Create dataset" and then wait until the dataset processing is done.
307
+
3. Go to the second Tab (2 - Fine-tuning XTTS Encoder) and press the button "Step 2 - Run the training" and then wait until the training is finished. it will take some time.
308
+
4. Go to the third Tab (3 - Inference) and then click on the button "Step 3 - Load Fine-tuned XTTS model" and wait until the fine-tuned model is loaded.
309
+
5. Now you can run inference with the model by clicking on the button "Step 4 - Inference".
310
+
311
+
#### Advanced training
312
+
313
+
A recipe for `XTTS_v2` GPT encoder training using `LJSpeech` dataset is available at https://github.com/coqui-ai/TTS/tree/dev/recipes/ljspeech/xtts_v1/train_gpt_xtts.py
314
+
315
+
You need to change the fields of the `BaseDatasetConfig` to match your dataset and then update `GPTArgs` and `GPTTrainerConfig` fields as you need. By default, it will use the same parameters that XTTS v1.1 model was trained with. To speed up the model convergence, as default, it will also download the XTTS v1.1 checkpoint and load it.
316
+
317
+
After training you can do inference following the code bellow.
0 commit comments