RuntimeError将Yaml配置文件传递给Essentia MusicExtractor

时间:2018-11-02 09:05:20

标签: python

我正尝试通过python从Essentia配置文件中生成MusicExtractor yaml的功能集,如文档herehere中所述。

我的代码段:

from essentia.standard import MusicExtractor

profile = "some_profile.yaml"
audio = "some_audio.mp3"

features, frames = MusicExtractor(profile=profile)(audio)

我的yaml个人资料:

enter image description here

这会产生以下错误:

RuntimeError:
  Error while configuring MusicExtractor:
  Pool: Cannot set/add/merge value to the pool under the name 'rhythm.stats'
  because that name already exists but contains a different data type than value.

看起来我做错了什么并不是真的。

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,并通过以下方式解决了该问题:

由此我可以得出一个有效的配置文件。