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
Computing melspectrogram (so as some other features) hangs only with joblib(n_jobs >= 2) #381
Comments
Does joblib hang even without librosa (but with numpy)? It's a known problem that joblib can conflict with some blas (e.g. openblas) with multiprocessing. If you are using openblas, the following works for me:
|
Hm, I thought that was only if I use The test was on MacOS so far, but on ubuntu it's the same. :( |
Got the same problem last week. On MacOS The solution: Use
This will set the variable Have fun! |
That gives me a good reason to move from python2.7 to 3.4.. I'll try, thanks! |
Strange -- I've never had this problem, but thanks for reporting it here. |
I tried what @stefan-balke proposed - with python2.7 - on mac and it didn't work, haven't test on 3 yet. |
Sorry, no experience with Python 2.7 and |
@keunwoochoi I cannot really remember what caused the problems but I am using standard python multiprocessing instead of joblib since then. There I found that some problems are caused by pickling errors. Those can sometimes be solved by using dill |
Since this is a numpy/joblib issue, and not librosa, I'm closing this out. |
The original code is redundant, but it can be summarised as below.
I just checked out other librosa.feature functions.
chroma_*, spectral_*, tonnetz, zero crossing
: working wellmfcc, melspectrogram, poly_feature, tempogram
: hangsIs it a known problem (if it's a problem)? I tested it after
pip install librosa --upgrade
, i.e. version 0.4.3 .The text was updated successfully, but these errors were encountered: