Remove duplicate result appending logic (#23218)
Signed-off-by: xusuyong <107761330+xusuyong@users.noreply.github.com> Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
83b8227417
commit
d9e9f318de
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user