diff --git a/ultralytics/data/augment.py b/ultralytics/data/augment.py index d092e3c370..bd821de28d 100644 --- a/ultralytics/data/augment.py +++ b/ultralytics/data/augment.py @@ -1591,7 +1591,7 @@ class LetterBox: labels["ratio_pad"] = (labels["ratio_pad"], (left, top)) # for evaluation if len(labels): - labels = self._update_labels(labels, ratio, dw, dh) + labels = self._update_labels(labels, ratio, left, top) labels["img"] = img labels["resized_shape"] = new_shape return labels