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 loss of rotation in CVAT format #5407

Merged
merged 11 commits into from
Dec 5, 2022
Merged

Fix loss of rotation in CVAT format #5407

merged 11 commits into from
Dec 5, 2022

Conversation

yasakova-anastasia
Copy link
Contributor

@yasakova-anastasia yasakova-anastasia commented Dec 1, 2022

Motivation and context

Fix #4378

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.

@bsekachev
Copy link
Member

I will look at this failed test with 3D..

@bsekachev
Copy link
Member

Okay, the test compares these two images and expect they the same, what actually true for eyes.

canvas3d_perspective_selected_opacty_100

canvas3d_perspective_opacty_100

But not for the algorithm:
image

Also:
comparison

That is just explanation why I am gonna to increase threshold..

response_data = self._test_get_annotations_from_task(username, tasks[1]["id"])
task2_rotation = response_data["shapes"][0]["rotation"]

assert task1_rotation == task2_rotation
Copy link
Contributor

@nmanovic nmanovic Dec 5, 2022

Choose a reason for hiding this comment

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

Does the check help us to prevent a regression?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this test fails without a fix.

@nmanovic nmanovic merged commit 3f9ab7c into develop Dec 5, 2022
@nmanovic nmanovic deleted the ay/fix-rotation-bug branch December 5, 2022 11:45
@nmanovic nmanovic mentioned this pull request Dec 12, 2022
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Jul 1, 2023
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.

Importing dataset in cvat format loses angle
3 participants