This commit is contained in:
Glenn Jocher 2019-03-22 14:56:43 +02:00
parent eafa2740db
commit 75d8cbdd5f
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing
nL = len(labels) nL = len(labels)
if nL > 0: if nL > 0:
# convert xyxy to xywh # convert xyxy to xywh
labels[:, 1:5] = xyxy2xywh(labels[:, 1:5].copy()) / self.img_size labels[:, 1:5] = xyxy2xywh(labels[:, 1:5]) / self.img_size
if self.augment: if self.augment:
# random left-right flip # random left-right flip