Closed omareldeeb closed 2 years ago
The observations (including the observations for non-beat states) have to be a probability density function in order to work with DBNDownBeatTrackingProcessor
. Thus your observations are not suitable for DBNDownBeatTrackingProcessor
. I will update the documentation to be more clear about that.
Expected behaviour
Log densities of the observations should be valid, non-inf, and non-nan floating-point numbers.
Actual behaviour
If
np.sum(observations, axis=1)
is greater than 1, the log of a negative number is attempted to be calculated in line 629 ofbeats_hmm.py
, causing anan
to be stored inlog_densities
. This behavior causes the viterbi algorithm to potentially fail.Steps needed to reproduce the behaviour
Information about installed software
madmom version: '0.16.1' numpy version: '1.19.5' scipy version: '1.7.2'