You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError: module 'TTS.tts.datasets' has no attribute '' #775
Hello! I'm trying to train a tts model with my own voice and I've set up the config and metadata, recorded voicelines etc., but when I try to use compute_statistics.py to generate a scale_stats.py, I get this error:
Traceback (most recent call last):
File "C:\Python311\Lib\site-packages\TTS\bin\compute_statistics.py", line 96, in <module>
main()
File "C:\Python311\Lib\site-packages\TTS\bin\compute_statistics.py", line 44, in main
dataset_items = load_tts_samples(CONFIG.datasets)[0] # take only train data
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\TTS\tts\datasets\__init__.py", line 118, in load_tts_samples
formatter = _get_formatter_by_name(formatter_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\TTS\tts\datasets\__init__.py", line 166, in _get_formatter_by_name
return getattr(thismodule, name.lower())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'TTS.tts.datasets' has no attribute ''
I don't know, what the error is here, because I have defined a dataset in the config and I don't know, if it has something to do with the config or any other file that this process relies on.
Reacted by Tsai Meng-Ting, Nosson Weissman, Pranav Banuru, connectzaib, mpdaza, zhangdaipeng, xtraa and Ewald Bos
@hulamo I'm not really sure, since it has been more than a year. But yeah, I think I found a workaround, and it was another file in a subfolder or something
Activity
xtraa commentedon Jan 11, 2025
Yep same. tried with different formatters. It sucks
hulamo commentedon Mar 1, 2025
Hello have you resolved this ? Thank You
franzrichter-dev commentedon Mar 1, 2025
@hulamo I'm not really sure, since it has been more than a year. But yeah, I think I found a workaround, and it was another file in a subfolder or something
franzrichter-dev commentedon Mar 1, 2025
I'm going to try to find out, but I think I used some sort of workaround (I'm mainly writing this since I accidentally closed the issue previously)
GoodDay360 commentedon Jan 24, 2026
Incorrect config?
try sth similar to this.