From 127adaf3f07a95b289a204b83db3a7a20b75cb87 Mon Sep 17 00:00:00 2001 From: Dominik Winkelbauer Date: Mon, 11 Dec 2023 17:00:39 +0100 Subject: [PATCH] fix(coco): Fixes skipping annotation indices when appending coco annotations --- blenderproc/python/writer/CocoWriterUtility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blenderproc/python/writer/CocoWriterUtility.py b/blenderproc/python/writer/CocoWriterUtility.py index 95dcba6a7..d584a3605 100644 --- a/blenderproc/python/writer/CocoWriterUtility.py +++ b/blenderproc/python/writer/CocoWriterUtility.py @@ -275,7 +275,7 @@ def merge_coco_annotations(existing_coco_annotations, new_coco_annotations): # Concatenate annotations sections if len(existing_coco_annotations["annotations"]) > 0: - annotation_id_offset = max(annotation["id"] for annotation in existing_coco_annotations["annotations"]) + 1 + annotation_id_offset = max(annotation["id"] for annotation in existing_coco_annotations["annotations"]) else: annotation_id_offset = 0 for annotation in new_coco_annotations["annotations"]: