myshell-ai / MeloTTS

High-quality multi-lingual text-to-speech library by MyShell.ai. Support English, Spanish, French, Chinese, Japanese and Korean.
MIT License
4.49k stars 561 forks source link

Training from Scratch Yielding Unusable Results #83

Open BankNatchapol opened 6 months ago

BankNatchapol commented 6 months ago

Hello. I've been working on training a model from scratch using approximately 300 hours of 22kHz audio data. However, I've encountered some problems. In my language, the phenomizer isn't stable, so I've made modifications to the training script to make it character-based instead. Despite these adjustments, the results of my training have been disappointing; the model only seems to produce random noise.

image

Below are the losses. If you've got any ideas or tips on how to rescue my poor model from its noisy fate, I'd be incredibly grateful.

image image image image
jeremy110 commented 6 months ago

If you only look at the loss/g/total curve(in my fine-tune case), it seems quite normal. Could you please provide your config.json and also mention what other modifications you have made in the program?

BankNatchapol commented 6 months ago

If you only look at the loss/g/total curve(in my fine-tune case), it seems quite normal. Could you please provide your config.json and also mention what other modifications you have made in the program?

Thanks for replying. Here's my config.json. I modified only on the text parts (g2p, symbols, bert). config_2.json

jeremy110 commented 6 months ago

I have seen the config.json file, and you didn't add num_languages and num_tones there? Actually, my fine-tuning process was similar to yours. I trained a new language using IPA, and there were some symbols not present in the original config.json, so like you, I replaced some of the symbols with my own. Additionally, I made a mistake initially by directly changing the symbols in config.json, but during training, it reads symbols.py, inference is reading config.json, causing inconsistency between the two. Consequently, the model couldn't understand the sounds properly.