This commit is contained in:
Glenn Jocher 2019-12-08 19:58:42 -08:00
parent 37fa9afaff
commit 2300cb964a
1 changed files with 4 additions and 4 deletions

View File

@ -578,10 +578,10 @@ def load_mosaic(self, index):
# Augment # Augment
# img4 = img4[s // 2: int(s * 1.5), s // 2:int(s * 1.5)] # center crop (WARNING, requires box pruning) # img4 = img4[s // 2: int(s * 1.5), s // 2:int(s * 1.5)] # center crop (WARNING, requires box pruning)
img4, labels4 = random_affine(img4, labels4, img4, labels4 = random_affine(img4, labels4,
degrees=self.hyp['degrees'], degrees=self.hyp['degrees'] * 0,
translate=self.hyp['translate'], translate=self.hyp['translate'] * 0,
scale=self.hyp['scale'], scale=self.hyp['scale'] * 0,
shear=self.hyp['shear'], shear=self.hyp['shear'] * 0,
border=-s // 2) # border to remove border=-s // 2) # border to remove
return img4, labels4 return img4, labels4