From d9e9f318dee84046fa330c9f6f3cbff513fdcb59 Mon Sep 17 00:00:00 2001 From: xusuyong <107761330+xusuyong@users.noreply.github.com> Date: Fri, 16 Jan 2026 04:26:07 +0800 Subject: [PATCH] Remove duplicate result appending logic (#23218) Signed-off-by: xusuyong <107761330+xusuyong@users.noreply.github.com> Signed-off-by: Glenn Jocher Co-authored-by: Glenn Jocher --- docs/en/datasets/detect/voc.md | 2 +- ultralytics/engine/results.py | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/en/datasets/detect/voc.md b/docs/en/datasets/detect/voc.md index a87a8a0c..4d67b083 100644 --- a/docs/en/datasets/detect/voc.md +++ b/docs/en/datasets/detect/voc.md @@ -32,7 +32,7 @@ The VOC dataset is split into three subsets: 1. **Train**: This subset contains images for training object detection, segmentation, and classification models. 2. **Validation**: This subset has images used for validation purposes during model training. -3. **Test**: This subset consists of images used for testing and benchmarking the trained models. Ground truth annotations for this subset are not publicly available, and the results are submitted to the [PASCAL VOC evaluation server](http://host.robots.ox.ac.uk:8080/leaderboard/displaylb.php) for performance evaluation. +3. **Test**: This subset consists of images used for testing and benchmarking the trained models. Ground truth annotations for this subset are not publicly available, and the results were historically submitted to the PASCAL VOC evaluation server for performance evaluation. ## Applications diff --git a/ultralytics/engine/results.py b/ultralytics/engine/results.py index 7c19d4c1..a8beba5f 100644 --- a/ultralytics/engine/results.py +++ b/ultralytics/engine/results.py @@ -782,13 +782,6 @@ class Results(SimpleClass, DataExportMixin): "confidence": round(conf, decimals), } ) - results.append( - { - "name": self.names[class_id], - "class": class_id, - "confidence": round(conf, decimals), - } - ) return results is_obb = self.obb is not None