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

Problem with LJSpeechDataset #3

Open
melou-slr opened this issue Jun 16, 2021 · 5 comments
Open

Problem with LJSpeechDataset #3

melou-slr opened this issue Jun 16, 2021 · 5 comments

Comments

@melou-slr
Copy link

image

Hi @oleges1 ,
I have an error message when I launch 'train.py' with the LJSpeechDataset as config:
'LJSpeechDataset' object has no attribute '_walker'. Would you have any idea of ​​the problem, please?
Thanks a lot.

image

@oleges1
Copy link
Owner

oleges1 commented Jun 16, 2021

Hi!
Seems like problem is in torchaudio version. I suggest you to check older versions: 0.7 or 0.6. Sorry for not stating this in requirements. It will definitely help.

Nevertheless, if you don't want to downgrade torchaudio, the problem is in deprecated internal item "_walker" in torchaudio.datasets.LJSPEECH. Now it's called "_flist" in newer versions, as can be seen on screenshot below. You can try to simply replace "_walker" to "_flist".
image

Link to the source code of torchaudio: https://pytorch.org/audio/stable/_modules/torchaudio/datasets/ljspeech.html#LJSPEECH

Thank you for reporting this!

@nguyennhuttin
Copy link

Hi I have a problem ( could be related to ljspeech as well any suggestion on how to fix the problem

File "C:\Users\nntin\anaconda3\lib\site-packages\torchaudio\datasets\ljspeech.py", line 72, in _parse_filesystem
self._flist = list(flist)
File "C:\Users\nntin\anaconda3\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 1936: character maps to

@oleges1
Copy link
Owner

oleges1 commented Mar 7, 2023

Hi @nguyennhuttin , which version of torchaudio are you using?

@nguyennhuttin
Copy link

I am using

torch.version
'1.13.1'
torchaudio.version
'0.13.1'

@nguyennhuttin
Copy link

Hi, thank you but I think I manage to solve the issue by adding encoding='utf-8' to every with open csv file

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

3 participants