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

Raised a MemoryError after called decompose.process #5

Closed
okideal opened this issue Jan 24, 2019 · 1 comment
Closed

Raised a MemoryError after called decompose.process #5

okideal opened this issue Jan 24, 2019 · 1 comment

Comments

@okideal
Copy link

okideal commented Jan 24, 2019

code:
(audio, fs) = sf.read('1.wav', always_2d=True) components = commonfate.decompose.process( audio, nb_components=10, ) sf.write( "comp_3.wav", components[2, ...], fs )
raise errors:
Traceback (most recent call last):
File "F:/py_project/independent-project.git/music_ctl_lettin/music_feature_engineering/process_music.py", line 190, in
nb_components=10,
File "C:\Users\Besitzer\AppData\Local\Programs\Python\Python36-32\lib\site-packages\commonfate\decompose.py", line 63, in process
n_hop,
File "C:\Users\Besitzer\AppData\Local\Programs\Python\Python36-32\lib\site-packages\commonfate\transform.py", line 325, in forward
stft = fftFunction(stft, frameShape, axes=range(len(frameShape)))
File "C:\Users\Besitzer\AppData\Local\Programs\Python\Python36-32\lib\site-packages\numpy\fft\fftpack.py", line 1099, in rfftn
a = rfft(a, s[-1], axes[-1], norm)
File "C:\Users\Besitzer\AppData\Local\Programs\Python\Python36-32\lib\site-packages\numpy\fft\fftpack.py", line 372, in rfft
_real_fft_cache)
File "C:\Users\Besitzer\AppData\Local\Programs\Python\Python36-32\lib\site-packages\numpy\fft\fftpack.py", line 83, in _raw_fft
r = work_function(a, wsave)
MemoryError

Any ideas?

@faroit
Copy link
Owner

faroit commented Jan 24, 2019

It's always the same error? What's the file size? Have you tried with smaller files and less components?

@okideal okideal closed this as completed Mar 20, 2024
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

2 participants