From 45af342276e883aaacd49e280dba641331786603 Mon Sep 17 00:00:00 2001 From: Shaun Yuan <18829043330@163.com> Date: Thu, 1 Aug 2024 21:17:15 +0800 Subject: [PATCH] Update sodad_split.py --- tools/img_split/sodad_split.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/img_split/sodad_split.py b/tools/img_split/sodad_split.py index f94a499..e6a4232 100644 --- a/tools/img_split/sodad_split.py +++ b/tools/img_split/sodad_split.py @@ -366,7 +366,7 @@ def _getImgExAnn(self, anns): bbox = [int(b) for b in ann['bbox']] xmin, ymin, width, height = bbox xMin = min(xMin, xmin) - yMin = max(yMin, ymin) + yMin = min(yMin, ymin) xMax = max(xMax, xmin+width) yMax = max(yMax, ymin+height) return [xMin, yMin, xMax, yMax]