Skip to content
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

Fix: visibility and ignored information fail to be loaded (MOT dataset format) #5270

Merged
merged 7 commits into from
Nov 16, 2022

Conversation

yasakova-anastasia
Copy link
Contributor

@yasakova-anastasia yasakova-anastasia commented Nov 10, 2022

Motivation and context

Fix #5231

How has this been tested?

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@yasakova-anastasia yasakova-anastasia changed the title Fix: the visibility and ignored information fail to be loaded (MOT dataset format) Fix: visibility and ignored information fail to be loaded (MOT dataset format) Nov 10, 2022
continue

track_id = ann.attributes.get('track_id')
occluded = dm.util.cast(ann.attributes.pop('occluded', None), bool) is True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bool casting can be too wide - e.g. bool('hello') is True. I'd suggest to compare with the expected value directly, i.e. pop(..., False) is True instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

outside=False,
keyframe=True,
z_order=ann.z_order,
frame=frame_number,
attributes=[],
attributes=attributes,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assignment might need to take into account the mutable property of an attribute.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This happens later in the _import_attribute function

@nmanovic nmanovic merged commit 10baa5f into develop Nov 16, 2022
@nmanovic nmanovic deleted the ay/fix-mot-attrs branch November 16, 2022 11:08
@nmanovic nmanovic mentioned this pull request Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

upload mot1.1 annotation file, the visibility and ignored information fail to be loaded。
4 participants