Skip to content

Commit

Permalink
fix(coco): Fixes skipping annotation indices when appending coco anno…
Browse files Browse the repository at this point in the history
…tations
  • Loading branch information
cornerfarmer committed Dec 11, 2023
1 parent 2eea80d commit 127adaf
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 127adaf

Please sign in to comment.