jaywalnut310 / vits

VITS: Conditional Variational Autoencoder with Adversarial Learning for End-to-End Text-to-Speech
https://jaywalnut310.github.io/vits-demo/index.html
MIT License
6.48k stars 1.21k forks source link

GPU multiprocess error #153

Open deryaguler95 opened 1 year ago

deryaguler95 commented 1 year ago

I got below error. raise ProcessRaisedException(msg, error_index, failed_process.pid) torch.multiprocessing.spawn.ProcessRaisedException: -- Process 1 terminated with the following error: raise exception KeyError: Caught KeyError in DataLoader worker process 0. Original Traceback (most recent call last): sequence = [_symbol_to_id[symbol] for symbol in cleaned_text] KeyError: '1'

O could not fix that. Are there any idea?

daniilrobnikov commented 1 year ago

It seems that your training dataset includes digits, "1" specifically.

''' Defines the set of symbols used in text input to the model. ''' pad = '' _punctuation = ';:,.!?¡¿—…"«»“” ' _letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' _letters_ipa = "ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛɦɧħɥʜɨɪʝɭɬɫɮʟɱɯɰŋɳɲɴøɵɸθœɶʘɹɺɾɻʀʁɽʂʃʈʧʉʊʋⱱʌɣɤʍχʎʏʑʐʒʔʡʕʢǀǁǂǃˈˌːˑʼʴʰʱʲʷˠˤ˞↓↑→↗↘'̩'ᵻ" _numbers = "1234567890"

Export all symbols:

symbols = [_pad] + list(_punctuation) + list(_letters) + list(_letters_ipa) + list(_numbers)

Special symbol ids

SPACE_ID = symbols.index(" ")