向Essentia MusicEx传递yaml配置文件时出错

2024-05-23 18:41:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图通过python从文档herehere中描述的yaml概要文件生成一个具有EssentiaMusicExtractor的特性集

我的代码段:

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.

看起来我并没有做错什么


Tags: 文件thename文档yamlherevalue代码段