fix: start id with 1 because 0 means no match
This commit is contained in:
1 parent
08226e9199
commit
0ddbcb2010
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user