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

[Bug] Unable to initialize a LibriTTS Dataset with the Python Trainer API? #1380

Closed
stanleyshly opened this issue Mar 13, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@stanleyshly
Copy link

When setting up LibriTTS with dataset_config = BaseDatasetConfig(name="libri_tts", path=os.path.join(output_path, "../LibriTTS/train-clean-100/")), I get this error:

Traceback (most recent call last):
File "train_fast_speech.py", line 78, in
train_samples, eval_samples = load_tts_samples(dataset_config, eval_split=True)
File "/home/workstation/.local/lib/python3.8/site-packages/TTS/tts/datasets/init.py", line 111, in load_tts_samples
meta_data_train = formatter(root_path, meta_file_train, ignored_speakers=ignored_speakers)
File "/home/workstation/.local/lib/python3.8/site-packages/TTS/tts/datasets/formatters.py", line 249, in libri_tts
assert os.path.exists(item[1]), f" [!] wav files don't exist - {item[1]}"
KeyError: 1
I placed the LibriTTS folder on branch up of the trainer script(exit one folder, and placed the LibriTTS dataset folder there), so I am not sure why it is not working.

@stanleyshly stanleyshly added the bug Something isn't working label Mar 13, 2022
@stanleyshly
Copy link
Author

Opened a Pull Request with fix: #1386

erogol added a commit that referenced this issue Mar 16, 2022
@erogol erogol closed this as completed Mar 16, 2022
erogol added a commit that referenced this issue Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants