Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VisibleDeprecationWarning in downbeats.py - Creating an ndarray from ragged nested sequences is deprecated #517

Open
jhurliman opened this issue Jan 10, 2023 · 1 comment
Assignees

Comments

@jhurliman
Copy link

Expected behaviour

No deprecation warning

Actual behaviour

/usr/local/lib/python3.8/dist-packages/madmom/features/downbeats.py:287: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
best = np.argmax(np.asarray(results)[:, 1])

Steps needed to reproduce the behaviour

With Python 3.8:

import numpy as np
from madmom.features.downbeats import DBNDownBeatTrackingProcessor, RNNDownBeatProcessor

audio = np.random.rand(44100 * 10)
activations = RNNDownBeatProcessor()(audio)
beats_and_indices = DBNDownBeatTrackingProcessor(beats_per_bar=4, fps=100)(activations)

Information about installed software

>>> madmom.__version__
'0.16.1'
>>> np.__version__
'1.23.5'
>>> scipy.__version__
'1.10.0'
@qq-me
Copy link

qq-me commented Jan 31, 2023

same this is when i install madmom from github clone

@superbock superbock self-assigned this Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants