common.py 文件源码

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

项目:tf-openpose 作者: ildoonet 项目源码 文件源码
def non_max_suppression(np_input, window_size=3, threshold=NMS_Threshold):
    under_threshold_indices = np_input < threshold
    np_input[under_threshold_indices] = 0
    return np_input*(np_input == maximum_filter(np_input, footprint=np.ones((window_size, window_size))))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号