commit | author | age | ||
71c082 | 1 | import transformers |
JK | 2 | |
3 | from config import LanguageModel | |
4 | ||
5 | for lang in LanguageModel: | |
6 | tokenizer = transformers.AutoTokenizer.from_pretrained('facebook/mms-tts-' + lang.name) | |
7 | tokenizer.save_pretrained('./data/tokenizer/facebook/mms-tts-' + lang.name) | |
8 | model = transformers.VitsModel.from_pretrained('facebook/mms-tts-' + lang.name) | |
9 | model.save_pretrained('./data/model/facebook/mms-tts-' + lang.name) |