Closed rjkat closed 6 years ago
Librosa is used in the case_util
for audio file reading and feature extraction related functionality. dcase_util
should work with librosa version 0.5.1 in most use cases. There are only a few cases where 0.6.0 is required, e.g. RMSEnergyExtractor
parameter n_fft
would not work. However, I do not see any strong reason to downgrade librosa version requirement. I would not like to maintain different code/functionality depending on librosa version.
You could try to downgrade your librosa version to 0.5.1, and see can you import dcase_util
then.
Downgrading to 0.5.1 didn't help, I ended up having to go all the way back to 0.4.
librosa 0.4 doesn't have support for resizing user-supplied windows for the stft. I encountered this error:
librosa.util.exceptions.ParameterError: Size mismatch between n_fft and len(window)
I ended up changing n_fft
to 640 to make it match the length of the window. I imagine this will cause my feature extraction to be slower.
Is this an appropriate way of resolving this issue? Do you have any other advice?
Your extracted features might not match with the ones extracted with current librosa version. However, if you are not trying to recreate some system implemented on top of dcase_util this should not be a problem.
On which platform your are operating? Would using anaconda/miniconda type of python distribution help?
This issue was closed as there was no follow up from author for at least 4 weeks. Feel free to reopen issue if needed.
Description
The latest librosa depends on llvmlite, which is broken with LLVM 6.0.0, which means it's not possible to import dcase_util when installing from source. This is necessary when working on a platform which doesn't have precompiled binaries. Please consider downgrading librosa.
LLVM issue references: https://bugs.llvm.org/show_bug.cgi?id=35947 https://reviews.llvm.org/D44140
Steps/Code to Reproduce
Install dcase_util from source:
Expected Results
Should be able to import dcase_util.
Actual Results
Versions
NumPy 1.11.0 SciPy 1.1.0 Matplotlib 1.5.1 librosa 0.6.0