fix: start id with 1 because 0 means no match

This commit is contained in:
Balthasar 2025-07-17 09:49:21 +02:00
parent 08226e9199
commit 0ddbcb2010
1 changed files with 1 additions and 1 deletions

View File

@ -1237,7 +1237,7 @@ class MeanAveragePrecision(Metric):
"image_id": image_id,
"bbox": xywh,
"category_id": category_id,
"id": len(annotations), # incrementally increase the id
"id": len(annotations) + 1, # incrementally increase the id
}
annotations.append(dict_annotation)
# Category list