From 63b2a6daf0d861da081899859abc1ad684ffbbbb Mon Sep 17 00:00:00 2001 From: Jenia Golbstein Date: Mon, 4 Feb 2019 17:06:14 +0200 Subject: [PATCH] bug with different image height and width opencv resize function accepts image shape format as (W, H) --- preprocessing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocessing.py b/preprocessing.py index a66453102..50db682bf 100644 --- a/preprocessing.py +++ b/preprocessing.py @@ -278,7 +278,7 @@ def aug_image(self, train_instance, jitter): image = self.aug_pipe.augment_image(image) # resize the image to standard size - image = cv2.resize(image, (self.config['IMAGE_H'], self.config['IMAGE_W'])) + image = cv2.resize(image, (self.config['IMAGE_W'], self.config['IMAGE_H'])) image = image[:,:,::-1] # fix object's position and size