diff --git a/cvat/apps/tf_annotation/views.py b/cvat/apps/tf_annotation/views.py index 7ff93125..4f5bbade 100644 --- a/cvat/apps/tf_annotation/views.py +++ b/cvat/apps/tf_annotation/views.py @@ -123,9 +123,11 @@ def convert_to_cvat_format(data): 'delete': create_anno_container(), 'pre_erase': True, } + + client_idx = 0 for label in data: boxes = data[label] - for i, box in enumerate(boxes): + for box in boxes: result['create']['boxes'].append({ "label_id": label, "frame": box[0], @@ -137,9 +139,11 @@ def convert_to_cvat_format(data): "group_id": 0, "occluded": False, "attributes": [], - "client_id": i, + "client_id": client_idx, }) + client_idx += 1 + return result def create_thread(id, labels_mapping):