Skip to content

Commit

Permalink
Update sodad_split.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunyuan22 authored Aug 1, 2024
1 parent 2167eeb commit 45af342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/img_split/sodad_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 45af342

Please sign in to comment.