Open pktiuk opened 1 year ago
Hi, could you please share a backup of the task? Please remove any images and other personal info from the archive.
Hi @zhiltsov-max
I work together with @pktiuk
Unluckily, I am not sure whether we can share full backup of selected task, because it may contain some sensitive informations for my company.
Could you tell us what we should focus on to debug this issue?
As you see, the check that fails has been added specifically to catch invalid tracks. It's one of the problems we're trying to reproduce, but could not do it reliably. I suppose there can be some unexpected frame sequence in the track annotations, so you should check the frame ids and the outside
property.
Thank you for your suggestion. I will try to prepare an full anonymized task (without sensitive informations) that reproduces the error. Indeed in our annotation tasks we use often outside property and we merge objects that changes object ids.
I was unable to reproduce the bug in the new task, so I will try to anonymize one of the existing tasks causing the error.
I am sending an example of anonymized two tasks in which an export error occurred.
Example 1: When you export annotations from a task to an xml file and then load them unchanged into the same task or new task, an error occurs when you try to export annotations. In the original task before the export of the annotations, the number of tracked objects is 540. Info -> Annotations Statistics -> Rectangle -> Total = 540 After reloading unchanged xml file into the task the number of tracked objects is 538. Info -> Annotations Statistics -> Rectangle -> Total = 538
Example 2: In this case, before exporting and after reloading the annotation to the task, the number of objects is the same 19. Info -> Annotations Statistics -> Rectangle -> Total = 19
@zhiltsov-max
Could you look at these backups?
I think this issue should also get a bug
label.
Hi,
Here's one way to reproduce an AssertionError in any cvat object tracking task:
The reason for the AssertionError when trying to export annotations is that the cvat in the originally exported file places tracks for objects where the outside property is checked on the first frame on which the object first appeared (or on all frames for a given object). After removing all such tracks (the object on the first frame, where it was created, is invisible, i.e. outside="1") from the annotations and uploading them into cvat, the problem with AssertionError disappears.
If anyone needs it, they can fix their xml annotations (format xml "Cvat for video 1.1") with a python3 script that I wrote. The script checks the annotations.xml input file for problematic tracks and removes them. It then reindex the tracks that are left and writes the results to the annotations-mod.xml file.
Hi, probably I've got some understanding about possible causes of the problem. There is the function _slice_track()
, which got several edits over time as the project evolved, and currently (for quite a time, though) it can potentially produce several shapes on the same frame, as it first just copies shapes related to the current segments, and then adds some interpolated shapes without checking if the frame of the added scoped shape is already included in segment_shapes
. Probably, in most cases the shapes are just duplicated this way (unless they were actually different in the saved/imported annotations). Later, this can lead to the failure in the interpolation code.
The problem can be obtained during annotation saving, import or export.
I think, the proper solution would be:
Hello, @Eldies , @zhiltsov-max , just wanted to clarify are there any estimations on when this is expected to be resolved? Thanks!
My actions before raising this issue
Steps to Reproduce (for bugs)
Some of our tasks cannot be exported,
Expected Behaviour
Export
Current Behaviour
when we try to export them we get an error 500:
AssertionError
Possible Solution
🤷
Context
Some of affected tasks could be downloaded 2 days ago, but now they cannot be exported.
I can still open them and watch their content.
Your Environment
git log -1
):docker version
(e.g. Docker 17.0.05):Selfhosted CVAT version
2.6.1