util.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:ddc 作者: chrisdonahue 项目源码 文件源码
def find_pred_onsets(scores, window):
    if window.shape[0] > 0:
        onset_function = np.convolve(scores, window, mode='same')
    else:
        onset_function = scores
    # see page 592 of "Universal onset detection with bidirectional long short-term memory neural networks"
    maxima = argrelextrema(onset_function, np.greater_equal, order=1)[0]
    return set(list(maxima))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号