-
Notifications
You must be signed in to change notification settings - Fork 49
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
Comments
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. |
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. |
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. |
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.
The text was updated successfully, but these errors were encountered: