Open omareldeeb opened 2 years ago
If no valid path could be decoded using the Viterbi algorithm, an empty array should be returned.
If self.correct == True, an IndexError is thrown in line 301 of downbeats.py, due to beat_range being empty.
self.correct == True
downbeats.py
beat_range
import madmom import numpy as np import scipy beat_tracker = madmom.features.downbeats.DBNDownBeatTrackingProcessor(fps=100.0, correct=True, beats_per_bar=4) beat_activation = np.random.uniform(0, 1, 100) downbeat_activation = np.random.uniform(0, 1, 100) beat_decoder.process(np.dstack((beat_activation, downbeat_activation))[0])
Please provide some information about installed software.
madmom.version == '0.16.1' np.version == '1.19.5' scipy.version == '1.7.2'
Thanks for pointing this out, will release a fix soon. I can't merge yours, since it actually has undesired side-effects.
Expected behaviour
If no valid path could be decoded using the Viterbi algorithm, an empty array should be returned.
Actual behaviour
If
self.correct == True
, an IndexError is thrown in line 301 ofdownbeats.py
, due tobeat_range
being empty.Steps needed to reproduce the behaviour
Information about installed software
Please provide some information about installed software.
madmom.version == '0.16.1' np.version == '1.19.5' scipy.version == '1.7.2'