sort shapes in track before interpolating #499
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
My group is doing keypoint interpolation and we ran into a problem where half our tasks were failing to "Dump annotation" when the button on the cvat dashboard was used.
This was the error:
That is an assert in
TrackManager.get_interpolated_shapes
. The assert is in a loop where shapes of a track are being iterated through.Somehow the shapes were arriving at that part of the code out of order. I know this was the issue because I made a 1-line change to sort
track["shapes"]
before the loop and our dumps started succeeding.I'm sorry I dont have a repro. I suspect specific user activity causes the shapes to be stored out of order and they are not sorted upon retrieval? In any case, this code change is innocuous enough and should save future users some headache