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

process_google.py MemoryError #122

Open
pushkalkatara opened this issue Aug 21, 2019 · 1 comment
Open

process_google.py MemoryError #122

pushkalkatara opened this issue Aug 21, 2019 · 1 comment

Comments

@pushkalkatara
Copy link
Contributor

The script process_google.py reads all the .wav in a numpy array which might cause a memory error on many systems.
Either use of disk storage through numpy.memmap or storing array as .HDF5 with PyTables or use of some library like Pandas might solve this issue.

@pushkalkatara
Copy link
Contributor Author

Error reproduction

Traceback (most recent call last):
  File "process_google.py", line 257, in <module>
    numFilt, samplerate, winlen, winstep)
  File "process_google.py", line 173, in extractFeatures
    allSamples = np.zeros((len(fileList), maxlen))
MemoryError

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