keras_yolo.py 文件源码

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

项目:YAD2K 作者: allanzelener 项目源码 文件源码
def yolo_boxes_to_corners(box_xy, box_wh):
    """Convert YOLO box predictions to bounding box corners."""
    box_mins = box_xy - (box_wh / 2.)
    box_maxes = box_xy + (box_wh / 2.)

    return K.concatenate([
        box_mins[..., 1:2],  # y_min
        box_mins[..., 0:1],  # x_min
        box_maxes[..., 1:2],  # y_max
        box_maxes[..., 0:1]  # x_max
    ])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号