diff --git a/cvat/apps/dataset_manager/formats/cvat.py b/cvat/apps/dataset_manager/formats/cvat.py index 4f78e20d3706..d825dae0c651 100644 --- a/cvat/apps/dataset_manager/formats/cvat.py +++ b/cvat/apps/dataset_manager/formats/cvat.py @@ -13,7 +13,6 @@ from cvat.apps.dataset_manager.util import make_zip_archive from cvat.apps.engine.frame_provider import FrameProvider from datumaro.components.extractor import DatasetItem -from datumaro.util.image import save_image from .registry import exporter, importer @@ -441,8 +440,11 @@ def load(file_object, annotations): elif el.tag == 'image': image_is_opened = True frame_id = annotations.abs_frame_id(match_dm_item( - DatasetItem(id=el.attrib['id'], image=el.attrib['name']), - annotations)) + DatasetItem(id=el.attrib['name'], + attributes={'frame': el.attrib['id']} + ), + task_data=annotations + )) elif el.tag in supported_shapes and (track is not None or image_is_opened): attributes = [] shape = { diff --git a/cvat/requirements/base.txt b/cvat/requirements/base.txt index 6d0a26b9f6d0..4c031d422a45 100644 --- a/cvat/requirements/base.txt +++ b/cvat/requirements/base.txt @@ -45,4 +45,4 @@ tensorflow==2.4.0 # Optional requirement of Datumaro patool==1.12 diskcache==5.0.2 open3d==0.11.2 -git+https://github.com/openvinotoolkit/datumaro@v0.1.4 +datumaro==0.1.5.1 --no-binary=datumaro