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

Jobs frame is mismatch with upload order of image task #3877

Closed
2 tasks done
krismp opened this issue Nov 8, 2021 · 1 comment · Fixed by #3937
Closed
2 tasks done

Jobs frame is mismatch with upload order of image task #3877

krismp opened this issue Nov 8, 2021 · 1 comment · Fixed by #3937
Assignees
Labels
enhancement New feature or request

Comments

@krismp
Copy link

krismp commented Nov 8, 2021

My actions before raising this issue

How to use task annotation CVAT REST API correctly? I find it difficult to match the image frame with the annotation I try to send via REST API

Screen Shot 2021-11-08 at 11 31 47

In the documentation, I should provide the frame attribute in order to match the annotation to the frame we uploaded before using the upload image to task API:

Screen Shot 2021-11-08 at 11 32 52

but I have tried its value is not the same as the order of array index when we upload the image to task, for example when using remote_files, the order is:

{
    "image_quality": 70,
    "remote_files": [
        "/path/to/image/pic_1.jpeg",
        "/path/to/image/pic_2.jpeg",
        "/path/to/image/pic_3.jpeg"
    ]
}

But after it became jobs, the image frame is not the same, which makes it difficult to use annotation API, because the result will always be mismatched.

Expected Behaviour

I think it will be easier to make the order of the frame the same as the image array index when we upload the image to the task? But I'm to any suggestion

Current Behaviour

The frame is not the same as the array index, result in the annotation is always mismatched

Possible Solution

Steps to Reproduce (for bugs)

  1. Create a task (via API or UI is fine)
  2. Upload an image to the task using the below API:

Screen Shot 2021-11-08 at 11 32 52

  1. Annotate via task annotation rest API below:

Screen Shot 2021-11-08 at 11 31 47

Context

Your Environment

  • Git hash commit (git log -1):
  • Docker version docker version (e.g. Docker 17.0.05):
  • Deployed on VM
  • Operating System and version (e.g. Linux, Windows, MacOS): Linux, MacOS

Next steps

You may join our Gitter channel for community support.

@nmanovic
Copy link
Contributor

nmanovic commented Nov 8, 2021

@krismp , frames are sorted in lexicographical order at the moment. Probably we can preserve order by default or have special query parameters to change it.

@nmanovic nmanovic added the enhancement New feature or request label Nov 8, 2021
@Marishka17 Marishka17 mentioned this issue Nov 23, 2021
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants