Skip to content

Commit

Permalink
Merge pull request #1024 from DLR-RM/iss1022_coco_annotation_idx_fix
Browse files Browse the repository at this point in the history
fix(coco): Fixes skipping annotation indices when appending coco annotations
  • Loading branch information
cornerfarmer authored Dec 11, 2023
2 parents 2eea80d + 127adaf commit f34774b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blenderproc/python/writer/CocoWriterUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit f34774b

Please sign in to comment.