raph30370 commited on
Commit
7fb6aca
1 Parent(s): f2a8221

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -2
README.md CHANGED
@@ -31,9 +31,12 @@ Notable differences compared to the default PL-BERT checkpoint and config availa
31
 
32
  ## How do I train StyleTTS2 with this new PL-BERT checkpoint?
33
 
34
- * Simply create a new folder under `Utils` in your StyleTTS2 repository. Call it, for example, `PLBERT-all-languages`.
35
  * Copy paste into it `config.yml`, `step_1100000.t7` and `util.py`.
36
- * Then, in your StyleTTS2 config file, change `PLBERT_dir` to `Utils/PLBERT-all-languages`.
 
 
 
37
  * Now, you need to create train and validation files. You will need to use `espeak` to create a file in the same format as the ones that exist in the `Data` folder of the StyleTTS2 repository. Careful! You will need to change the `language` argument to phonemise your text if it's not in English. You can find the correct language codes [here](https://github.com/espeak-ng/espeak-ng/blob/master/docs/languages.md). For example, Latin American Spanish is `es-419`
38
 
39
  Voila, you can now train a multilingual StyleTTS2 model!
 
31
 
32
  ## How do I train StyleTTS2 with this new PL-BERT checkpoint?
33
 
34
+ * Simply create a new folder under `Utils` in your StyleTTS2 repository. Call it, for example, `PLBERT_all_languages`.
35
  * Copy paste into it `config.yml`, `step_1100000.t7` and `util.py`.
36
+ * Then, in your StyleTTS2 config file, change `PLBERT_dir` to `Utils/PLBERT_all_languages`. You will also need to change your import as such:
37
+ * Change `from Utils.PLBERT.util import load_plbert`
38
+ * To `from Utils.PLBERT_all_languages.util import load_plbert`
39
+ * Alternatively, you can just replace the relevant files in `Utils/PLBERT` and not have to change any code.
40
  * Now, you need to create train and validation files. You will need to use `espeak` to create a file in the same format as the ones that exist in the `Data` folder of the StyleTTS2 repository. Careful! You will need to change the `language` argument to phonemise your text if it's not in English. You can find the correct language codes [here](https://github.com/espeak-ng/espeak-ng/blob/master/docs/languages.md). For example, Latin American Spanish is `es-419`
41
 
42
  Voila, you can now train a multilingual StyleTTS2 model!