From d5aff5cc0cedad9e0fc773395ed2df29a0fbacc4 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 22 May 2024 21:46:18 +0200 Subject: [PATCH] Fix `det.summary()` bug for `ultralytics>=8.2.10` (#13024) Co-authored-by: UltralyticsAssistant Co-authored-by: Glenn Jocher Co-authored-by: hdnh2006 --- ultralytics/engine/results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultralytics/engine/results.py b/ultralytics/engine/results.py index 0c2161b4..32342172 100644 --- a/ultralytics/engine/results.py +++ b/ultralytics/engine/results.py @@ -402,8 +402,8 @@ class Results(SimpleClass): ) return results - data = self.boxes or self.obb is_obb = self.obb is not None + data = self.obb if is_obb else self.boxes h, w = self.orig_shape if normalize else (1, 1) for i, row in enumerate(data): # xyxy, track_id if tracking, conf, class_id class_id, conf = int(row.cls), round(row.conf.item(), decimals)