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

Don't export outside frames in frame-based formats #2345

Merged
merged 2 commits into from Oct 23, 2020

Conversation

zhiltsov-max
Copy link
Contributor

@zhiltsov-max zhiltsov-max commented Oct 22, 2020

Motivation and context

Fixes the problem with CVAT for images export - first track frames marked outside were presented in the output files.
Closes #2339

How has this been tested?

Unit test, manual test.

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.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 60.613% when pulling 05ffe2e on zm/dont-export-ouside into df2dcc0 on develop.

@@ -268,6 +268,8 @@ def get_frame(idx):
for shape in sorted(anno_manager.to_shapes(self._db_task.data.size),
key=lambda shape: shape.get("z_order", 0)):
if 'track_id' in shape:
if shape['outside']:
Copy link
Contributor

Choose a reason for hiding this comment

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

@zhiltsov-max , will the code work correctly for the case when a user wants to dump annotations in CVAT for video format? Because the format has to include outside frames with explicit outside=1. Could you please remind me how the case will be handled?

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 function is not used in that format.

@nmanovic nmanovic merged commit e0afbaf into develop Oct 23, 2020
@nmanovic nmanovic deleted the zm/dont-export-ouside branch October 23, 2020 07:18
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.

Outside property not used for rectangle tracks at CVAT for Images 1.1
4 participants