-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow import of single boxes in MOT format #1764
Conversation
Pull Request Test Coverage Report for Build 6061
💛 - Coveralls |
@@ -45,6 +45,17 @@ def _import(src_file, task_data): | |||
|
|||
track_id = ann.attributes.get('track_id') | |||
if track_id is None: | |||
# Extension. Import regular boxes: | |||
task_data.add_shape(task_data.LabeledShape( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't create a track with only one bounding box?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it any better? This would not preserve the original annotations, as all tracks are exported as tracks, even single-framed. We can, possibly, convert regular boxes to such tracks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MOT is for tracks only. Right? How are you going to dump a track which has two shapes:
- First with outside=False, frame=0
- Second with outside=True, frame=1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MOT is mostly for tracks, look here: https://motchallenge.net/instructions/. Almost every version has <[track] id>
field set (idx 2), but not MOT17det
, which contains just boxes and -1
as id
. So we can safely assume that bboxes are supported via this extension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
* Allow single boxes in MOT format * update changelog Co-authored-by: Nikita Manovich <[email protected]>
Implements the use case found in #1463
Motivation and context
Extends MOT format support with import of single boxes (without tracks). This is an extension for the original format, as it does not expect non-track annotations.
How has this been tested?
Unit test
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.