-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Labels Out Of Order After Creating New Task #2636
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
Comments
Looks like there is an alphabetical sorting happens during task creation. BTW, labels can only be added after task creation, they can't be modified. |
Here is an easily reproduceable way to exhibit the problem (for me):
OK thanks for the tip about the labels. |
Is there any workaround for this? |
It is better now. But when I have created a task labels were in the reverse order. Looks like a bug. |
@ActiveChooN |
It seems the issue was fixed, feel free to reopen if not. |
@bsekachev Should all the labels be added in one go ? or the ordering is expected to work even if labels are added in batches. eg. I add 3 labels via constructor tab and save them. and then wait a while, and then add labels again. |
Sounds logically if order keeps even when you append labels later.. |
Exporting and importing can be used to reorder labels. The sort is done using the "newest". A simple rename can do this.
|
My actions before raising this issue
Expected Behaviour
I want to use the same Labels in the same order as I have used in all the other Tasks I have created. I copy them from an existing Task but when the new Task is created they are out of order. I expect that they should be in the same order I entered them.
Current Behaviour
I have previously annotated a number of images in tasks for an Object Recognition project. I want to be able to copy the Labels from an existing Task so when I start annotation of images they are in the same order, I am accustomed to the order of the Labels and I know where they are in the Labels list when I search for them. I have arranged them so that the most common are at the start of the list so I don't have to scroll to find them.
My other and more pressing concern is that with the Labels out of order, when I export to Yolo 1.1 format I might end up having different numbers representing the labels, which means they wont align with the Labels from the other Tasks. ie. Label1 might not correspond to '0' like it was for the other Tasks.
The problem is when I copy the Labels from a previous Task, and paste them into a new Task, or even when pasting in a manually generated list, they are out of order.
Possible Solution
Nothing I have tried will correct the order of the Labels.
Steps to Reproduce (for bugs)
I create a new Task and paste in JSON for the labels in the order I need them. Normally I would hit the Copy button from an existing Task but in this case I will just paste in the JSON from this file. (I tried to enter it as code in this fault report but it would not format properly)
Labels have been entered via RAW tab, all looks normal
I click on the Constructor tab and it looks normal there too, all 14 labels are in correct order

Then I click Submit and open the Task and suddenly all the labels are in the wrong order

If I click on RAW they are in the wrong order there too

So I copy the JSON again and paste it in the RAW tab and click Done.

No change on the Constructor or RAW tabs, still wrong order??

I did an Export As Dataset -> to CVAT for Images 1.1 and in the exported Zip the annotations file looks like this (the order is correct in the xml file)
I thought it might be a problem with the sort order but I added another Label called Label15 by copying and pasting a section into the RAW JSON and it just appeared at the end after all the others, so its not that. The edit took, so the JSON can apparently be edited but pasting in the raw JSON in the correct order again doesn't help at all.
Context
git log -1
):docker version
(e.g. Docker 17.0.05): Docker Engine Version v20.10.0CVAT About box details:
Server version: 1.2
Core version: 3.8.0
Canvas version: 2.1.3
UI version: 1.9.13
Any thoughts? This is driving me up the wall. Thanks for any advice.
Next steps
You may join our Gitter channel for community support.
The text was updated successfully, but these errors were encountered: