From aad580b9e080e630c9d1d3b4fe1ec7015e251e67 Mon Sep 17 00:00:00 2001 From: "kirill.sizov" Date: Fri, 16 Apr 2021 15:16:23 +0300 Subject: [PATCH] add image path in load annotations for cvat format --- cvat/apps/dataset_manager/formats/cvat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cvat/apps/dataset_manager/formats/cvat.py b/cvat/apps/dataset_manager/formats/cvat.py index aa1a0a5a..786a5025 100644 --- a/cvat/apps/dataset_manager/formats/cvat.py +++ b/cvat/apps/dataset_manager/formats/cvat.py @@ -442,7 +442,8 @@ def load(file_object, annotations): image_is_opened = True frame_id = annotations.abs_frame_id(match_dm_item( DatasetItem(id=osp.splitext(el.attrib['name'])[0], - attributes={'frame': el.attrib['id']} + attributes={'frame': el.attrib['id']}, + image=el.attrib['name'] ), task_data=annotations ))