|
|
|
|
@ -13,7 +13,6 @@ from cvat.apps.dataset_manager.bindings import match_dm_item
|
|
|
|
|
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 = {
|
|
|
|
|
|