Tensorflow-YoloV2
1、YOLOv2论文解读
2、tf2-yolov2代码实现
2.1 训练数据预处理
2.1.1 统一改变输入图片尺寸
2.1.2 解析XML文件
2.1.3 读取图片...(pool_size=(2,2))(x)
# unit2
# [256, 256, 32] => [256, 256, 64]
x = layers.Conv2D(64, (3,3), strides=...xmax2 = x2 + 0.5*w2
ymin2 = y2-0.5*w2
ymax2 = y2 +0.5*w2
# (xmin1,ymin1,xmax1,ymax1)真实值,...(xmin2,ymin2,xmax2,ymax2) 预测值
# 计算交并比
interw = np.minimum(xmax1, xmax2) - np.minimum(xmin1,..., matching_gt_boxes[..., 3]
#预测的位置 x2,y2,w2,h2
x2, y2, w2, h2 = pred_xy[..., 0], pred_xy[...,