diff --git a/ultralytics/engine/results.py b/ultralytics/engine/results.py index 09253268..d8d944f9 100644 --- a/ultralytics/engine/results.py +++ b/ultralytics/engine/results.py @@ -710,8 +710,8 @@ class OBB(BaseTensor): def xyxyxyxyn(self): """Return the boxes in xyxyxyxy format, (N, 4, 2).""" xyxyxyxyn = self.xyxyxyxy.clone() if isinstance(self.xyxyxyxy, torch.Tensor) else np.copy(self.xyxyxyxy) - xyxyxyxyn[..., 0] /= self.orig_shape[0] - xyxyxyxyn[..., 1] /= self.orig_shape[1] + xyxyxyxyn[..., 0] /= self.orig_shape[1] + xyxyxyxyn[..., 1] /= self.orig_shape[0] return xyxyxyxyn @property