yolov7 4-mosaic 增强实现原理
发布时间
阅读量:
阅读量
yolov7原始代码资源地址 :GitHub - WongKinYiu/yolov7: Implementation of paper - YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors
一、4-mosaic增强的总体思想
1、构建一个画布
s = self.img_size
img4 = np.full((s * 2, s * 2, img.shape[2]), 114, dtype=np.uint8)
2、为该画布生成随机中心点
随机中心点的数值区间设定为:[img_size // 2, int(1.5*img_size )],具体而言,其下限为图像尺寸的一半,而
全部评论 (0)
还没有任何评论哟~
