数据增强之Mosaic和Cutmix的pytorch实现
Mosaic
def get_random_data_with_Mosaic(self, annotation_line, input_shape, hue=.1, sat=1.5, val=1.5):
h, w = input_shape
min_offset_x = 0.3
min_offset_y = 0.3
scale_low = 1 - min(min_offset_x, min_offset_y)
sc.
原创
2020-09-20 13:51:10 ·
1474 阅读 ·
3 评论