From 2300cb964a343458d0727b81aea5500f2b03a899 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 8 Dec 2019 19:58:42 -0800 Subject: [PATCH] updates --- utils/datasets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/datasets.py b/utils/datasets.py index e5daa630..cf43d655 100755 --- a/utils/datasets.py +++ b/utils/datasets.py @@ -578,10 +578,10 @@ def load_mosaic(self, index): # Augment # 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, - degrees=self.hyp['degrees'], - translate=self.hyp['translate'], - scale=self.hyp['scale'], - shear=self.hyp['shear'], + degrees=self.hyp['degrees'] * 0, + translate=self.hyp['translate'] * 0, + scale=self.hyp['scale'] * 0, + shear=self.hyp['shear'] * 0, border=-s // 2) # border to remove return img4, labels4