cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
12.48k stars 2.99k forks source link

Wrong annotation in the dumped file #2254

Closed azhavoro closed 1 year ago

azhavoro commented 4 years ago

My actions before raising this issue

Expected Behaviour

Annotation is dumped correctly

Current Behaviour

For a reason the dumped annotation for multi-job tasks may contain some extra shapes which don't exist in the database for this job. UI representation is correct: For example frame 86496 of 34372 job:

<image id="86496" name="336728.png" width="288" height="144">
    <box label="bad_quality" occluded="0" source="manual" xtl="0.00" ytl="0.00" xbr="288.00" ybr="144.00">
    </box>
    <box label="wrong_subject" occluded="0" source="manual" xtl="0.00" ytl="0.00" xbr="288.00" ybr="144.00">
    </box>
  </image>
>>> db_job = Job.objects.filter(id=34372)[0]
>>> db_shapes = db_job.labeledshape_set.filter(frame=86496)
>>> db_shapes.count()
1

Update: For some reason, other jobs contain annotations for this frame and this is causing the wrong shapes to appear in the dump file

>>> db_job = Job.objects.filter(id=34371)[0]
>>> db_shapes = db_job.labeledshape_set.filter(frame=86496)
>>> db_shapes.count()
1

Possible Solution

Steps to Reproduce (for bugs)

N/A

Context

Your Environment

Next steps

You may join our Gitter channel for community support.

yasakova-anastasia commented 1 year ago

I haven't been able to reproduce this issue. I will close this issue. Reopen it if you have this problem please.