jordipons / musicnn

Pronounced as "musician", musicnn is a set of pre-trained deep convolutional neural networks for music audio tagging.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extractor value error from call as per README

martindisley opened this issue · comments

Hey Jordi

When I run extractor as per the readme:
taggram, tags = extractor(<path>, model='MTT_musicnn')
I get a value error:
File "<stdin>", line 1, in <module> ValueError: too many values to unpack (expected 2)

works fine if run it as per the tagging_example.ipynb:
taggram, tags = extractor(<path>, model='MTT_musicnn', extract_features=False)

Error:

>>> taggram, tags = extractor('Bounce08.wav', model='MTT_musicnn')
Computing spectrogram (w/ librosa) and tags (w/ tensorflow).. done!
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: too many values to unpack (expected 2)
>>> taggram, tags = extractor('Bounce08.wav', model='MTT_musicnn', extract_features=False)
Computing spectrogram (w/ librosa) and tags (w/ tensorflow).. done!
>>>

Edit: installed with PyPi