Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError not enough values to unpack (expected 2 got 0) #66

Open
Xlikes opened this issue Dec 5, 2021 · 2 comments
Open

ValueError not enough values to unpack (expected 2 got 0) #66

Xlikes opened this issue Dec 5, 2021 · 2 comments

Comments

@Xlikes
Copy link

Xlikes commented Dec 5, 2021

I am new to TTS and have also worked very little with Phyton on Windows.

I get the following error with the python train_tacotron.py command:

Traceback (most recent call last):
File "C:\Users\PC\Desktop\ForwardTacotron-master\train_tacotron.py", line 192, in
trainer.train(model, optimizer)
File "C:\Users\PC\Desktop\ForwardTacotron-master\trainer\taco_trainer.py", line 42, in train
train_set, val_set = get_tts_datasets(
File "C:\Users\PC\Desktop\ForwardTacotron-master\utils\dataset.py", line 166, in get_tts_datasets
train_ids, train_lens = zip(*train_data)
ValueError: not enough values to unpack (expected 2, got 0)

With the files from LJSpeech this error does not come.
Now the question is where is the error?
The order structure should not be the problem
-wav
--0001
--....
--0021
-metadata.csv

As a test I have only 21 files/entries are these just too few?

@Xlikes Xlikes changed the title Valueerror not enough values to unpack (expected 2 got 0) ValueError not enough values to unpack (expected 2 got 0) Dec 5, 2021
@cschaefer26
Copy link

Hi, looks like the train set is empty, probably because with 21 files everything lands in the validation set (standard config for n_val=200). 21 files is surely not enough to really do anything to be honest, you would need at least 500 or so.

@Xlikes
Copy link
Author

Xlikes commented Dec 8, 2021

So it's not possible to get a halfway usable result with so few files? I was hoping I could teach the voice and then create/teach more files with the generated voice.

The 21 voices are spoken texts of a speaker from a game. The goal was to reproduce the voice as good as possible and to dub some dialogs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants