From 3f0848231d78e7cefe0f5b8fcdf92de7a6c05a82 Mon Sep 17 00:00:00 2001 From: Jingxuan He Date: Wed, 15 Jun 2022 15:04:28 +0200 Subject: [PATCH] Fix a potential variable misuse bug --- imgaug/augmenters/geometric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgaug/augmenters/geometric.py b/imgaug/augmenters/geometric.py index 743f5f117..24412b365 100644 --- a/imgaug/augmenters/geometric.py +++ b/imgaug/augmenters/geometric.py @@ -635,7 +635,7 @@ def invert_centerize(self, image_shape): # Added in 0.5.0. def translate(self, x_px, y_px): - if x_px < 1e-4 or x_px > 1e-4 or y_px < 1e-4 or x_px > 1e-4: + if x_px < 1e-4 or x_px > 1e-4 or y_px < 1e-4 or y_px > 1e-4: matrix = np.array([ [1, 0, x_px], [0, 1, y_px],