You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Export as a dataset -> MS COCO, if a task has a frame_step not equal to 1, image filenames and annotations do not match up. In the exported file instances_default.json:
"images": "id" is incremented by 1, matching filenames (e.g. 0.jpg has id=0, 1.jpg has id=1, etc)
"annotations": "image_id" for each annotation is incremented by frame_step (e.g. for a task with frame_step=5, annotations for 0.jpg have image_id=0, but annotations for 1.jpg have image_id=5)
I notice in cvat/apps/annotation/annotation.py, the _export_... methods all follow this logic. E.g.
I'm not familiar enough with the codebase to know how essential this logic is. If it used elsewhere, the easiest method may be to change the exported filenames to increment by frame_step as well (though, it would not match how CVAT stores the files internally)..? E.g. 0.jpg, frame_step.jpg, 2*frame_step.jpg....
Attached is an exported dataset of an example task with frame_step=5
When using Export as a dataset -> MS COCO, if a task has a frame_step not equal to 1, image filenames and annotations do not match up. In the exported file instances_default.json:
I notice in cvat/apps/annotation/annotation.py, the _export_... methods all follow this logic. E.g.
I'm not familiar enough with the codebase to know how essential this logic is. If it used elsewhere, the easiest method may be to change the exported filenames to increment by frame_step as well (though, it would not match how CVAT stores the files internally)..? E.g. 0.jpg, frame_step.jpg, 2*frame_step.jpg....
Attached is an exported dataset of an example task with frame_step=5
task_yft_test_coco.zip
The text was updated successfully, but these errors were encountered: