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: Cannot load file containing pickled data when allow_pickle=False #16

Open
kzchen95 opened this issue Jul 14, 2023 · 5 comments

Comments

@kzchen95
Copy link

Getting this error when trying to train the model. Runtime error when first epoch starts.
Changed the
melspec = torch.from_numpy(np.load(filename))
to
melspec = torch.from_numpy(np.load(filename, allow_pickle=True))
which still failed.

image

@KyKhaw
Copy link

KyKhaw commented Jul 19, 2023

Ok, this issue is related to the issue of transcripts not generating properly: #15

I just changed the file paths in the list.txt file from .wav to .npy and it was resolved for me.

@jooshwa
Copy link

jooshwa commented Aug 1, 2023

Ok, this issue is related to the issue of transcripts not generating properly: #15

I just changed the file paths in the list.txt file from .wav to .npy and it was resolved for me.

Stuck here too. Is that all you did, just change the list.txt file? I tried that and got FileNotFoundError. I tried changing the actual .wav files as well (renamed them all .npy instead of .wav) but that gives me the same pickled data issue.

@KyKhaw
Copy link

KyKhaw commented Aug 1, 2023

Your .wav file should already have the .npy versions along with it. Did you run cell 6 to convert .wav files into mel spectrograms? Also be sure to change ALL filepaths in the list.txt file to .npy

@guilhermeaddr
Copy link

Your .wav file should already have the .npy versions along with it. Did you run cell 6 to convert .wav files into mel spectrograms? Also be sure to change ALL filepaths in the list.txt file to .npy

Changing the list.txt to .npy in file paths fixed the problem for me.

@guilhermeaddr
Copy link

guilhermeaddr commented Aug 17, 2023

I just discovered something: changing .npy to .wav causes the list.txt file to be saved empty. This happens because the function checks if the file referring to that transcription exists before saving the line in list.txt and the .npy file is only generated a few steps further.

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

4 participants