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

Error while generating .npy file #85

Open
bsshruthi22 opened this issue Feb 6, 2020 · 0 comments
Open

Error while generating .npy file #85

bsshruthi22 opened this issue Feb 6, 2020 · 0 comments

Comments

@bsshruthi22
Copy link

Hi,
We are using TIMIT corpus to run SincNet. While generating TIMIT_labels.npy file, we are getting errors

Traceback (most recent call last):
File "test.py", line 11, in
a=open("labels.txt" ,'r') # labels.txt contains labels of form sentence id:speaker id ( {'TRAIN/DR5/FJXM0/SX311.WAV': 267,....}
np.save("TIMIT_labels",a)
File "/home/iiit_admin/.local/lib/python3.6/site-packages/numpy/lib/npyio.py", line 536, in save
pickle_kwargs=pickle_kwargs)
File "/home/iiit_admin/.local/lib/python3.6/site-packages/numpy/lib/format.py", line 629, in write_array
pickle.dump(array, fp, protocol=2, **pickle_kwargs)
TypeError: cannot serialize '_io.TextIOWrapper' object

Please let us know how to resolve this issue.

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

1 participant