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
>>> from essentia.standard import MusicExtractor
>>> extractor = MusicExtractor(highlevel=['/usr/share/essentia-extractor-svm_models/mood_acoustic.history'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.8/site-packages/essentia/standard.py", line 44, in __init__
self.configure(**kwargs)
File "/usr/lib64/python3.8/site-packages/essentia/standard.py", line 64, in configure
self.__configure__(**kwargs)
RuntimeError: Error while configuring MusicExtractor: Descriptor name 'highlevel.svm_models' of type std::vector<std::string> not found
I saw there's code in musicextractor.cpp to accept it but it does: options.add("highlevel.svm_models", svmModels); . I tested doing that in python and had this result:
Previously, specifying the highlevel parameter in the MusicExtractor constructor
raised a RuntimeError exception because the value of `highlevel.svm_models`
wasn't being set with the right type.
FixesMTG#1051
According to https://essentia.upf.edu/reference/std_MusicExtractor.html it's possible to use a "highlevel" parameter (of type list of strings) to specify the list of high-level classifier models to use. But this fails:
I saw there's code in musicextractor.cpp to accept it but it does:
options.add("highlevel.svm_models", svmModels);
. I tested doing that in python and had this result:Which as the error above said, it's not of type "vector of strings" but vector of vector of strings.
The text was updated successfully, but these errors were encountered: