error_heatmaps.py 文件源码

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

项目:evaluation-toolkit 作者: lightfield-analysis 项目源码 文件源码
def get_bad_count(scene, algorithms, thresh, percentage=False):
    bad_count = np.zeros(scene.get_shape())
    gt = scene.get_gt()

    for algorithm in algorithms:
        algo_result = misc.get_algo_result(algorithm, scene)
        abs_diffs = np.abs(gt - algo_result)

        with np.errstate(invalid="ignore"):
            bad = abs_diffs > thresh
            bad += misc.get_mask_invalid(abs_diffs)

        bad_count += bad

    if percentage:
        bad_count = misc.percentage(len(algorithms), bad_count)

    return bad_count
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号