You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/vagrant/dossier/gsapi/memo/features/base.py", line 54, in mfcc
feat,energy = fbank(signal,samplerate,winlen,winstep,nfilt,nfft,lowfreq,highfreq,preemph)
File "/vagrant/dossier/gsapi/memo/features/base.py", line 80, in fbank
frames = sigproc.framesig(signal, winlen_samplerate, winstep_samplerate)
File "/vagrant/dossier/gsapi/memo/features/sigproc.py", line 55, in framesig
return frames*win
MemoryError
I am just calling it in batches for now to avoid this problem but might be something the library should better handle.
You can replace the line that ate your RAM: return frames*win
with return frames
This multiplication does nothing, just a wast of RAM. No one seems to use this window function. It is called once with only one argument - frame_len which is a parameter to the calling function. So there is no need for this to be a function.
Activity
philipperemy commentedon Nov 14, 2016
Are there any strong reasons why you cannot split this file into smaller files?
How big is your 22-minute file in MB?
Thanks
ainy commentedon Mar 1, 2017
You can replace the line that ate your RAM:
return frames*winwith
return framesThis multiplication does nothing, just a wast of RAM. No one seems to use this window function. It is called once with only one argument - frame_len which is a parameter to the calling function. So there is no need for this to be a function.
ainy commentedon Mar 1, 2017
It would be best to make the default value
winfunc=lambda frame_len, numframes: 1and the last lines:To use window function in old way you pass
winfunc=lambda frame_len, numframes: numpy.ones((numframes,frame_len))