TensorFlow2.0-Examples icon indicating copy to clipboard operation
TensorFlow2.0-Examples copied to clipboard

关于代码细节的请教

Open VectXmy opened this issue 5 years ago • 1 comments

iou = bbox_iou(pred_xywh[:, :, :, :, np.newaxis, :], bboxes[:, np.newaxis, np.newaxis, np.newaxis, :, :]) 计算预测框与真实框的iou是怎样扩展维度的? #bboxes shape (batch_size,max_bbox_per_scale,4)-->(batch_size,1,1,1,max_bbox_per_scale,4) #pred_xywh shape (batch_size,out_size,out_size,3,4)-->(batch_size,out_size,out_size,3,1,4) shape变化后是否如上所示,两个张量之间shape不匹配计算的过程是怎样的?例如left_up = tf.maximum(boxes1[..., :2], boxes2[..., :2])是怎样计算的?感谢作者

VectXmy avatar Aug 17 '19 02:08 VectXmy

numpy 的广播矩阵知识,怎么实现的你可以自己实践下

YunYang1994 avatar Aug 20 '19 11:08 YunYang1994