Closed youyuge34 closed 1 year ago
Why they are not in alphabetical order?
@youyuge34 Hi, could you please share your label config?
@KonstantinKorotaev
<View>
<View style="display:flex;align-items:start;gap:8px;flex-direction:column-reverse">
<Image name="image" value="$url" zoom="true" zoomControl="true" width="400px"/>
<RectangleLabels name="label" toName="image" showInline="true">
<Label value="card" background="#FFA39E"/>
<Label value="card_img" background="#0d25d3"/>
<Label value="card_name" background="#FFC069"/>
<Label value="card_price" background="#03ad00"/>
<Label value="member" background="#ec0f04"/>
<Label value="discount" background="#f0cc19"/>
<Label value="list_describe" background="#da1fff"/>
</RectangleLabels>
</View>
</View>
@youyuge34 Could you please also share your version of label-studio-converter?
@KonstantinKorotaev I use label-studio v1.4 and label-studio-converter 0.0.36
label-studio-converter 0.0.36
Could you please update it to 0.0.40 and check one more time?
Hi, I'm facing the same issue. I think it is because set()
is used to filter duplicate elements in labels list, but set()
does not maintain order of the elements so it changes the tag order.
here is the line reference https://github.com/heartexlabs/label-studio-converter/blob/7918410c420d6ffe00991409db96798b6a610293/label_studio_converter/converter.py#L911
Hi @shafeeq07 Could you please share your label config?
Hi, I have the same problem. Latest label studio version used. After exporting my project to YOLOv5 the class order is like this:
head person
but I want to have it defined like this: person head
it is important for transfer learning where ID of classes are already defined.
I think the best solution would be to add an
Try adding category
to labels <Label category="123">
, e.g.:
<View>
<View style="display:flex;align-items:start;gap:8px;flex-direction:column-reverse">
<Image name="image" value="$url" zoom="true" zoomControl="true" width="400px"/>
<RectangleLabels name="label" toName="image" showInline="true">
<Label value="card" background="#FFA39E" category="1"/>
<Label value="card_img" background="#0d25d3" category="2"/>
<Label value="card_name" background="#FFC069" category="3"/>
<Label value="card_price" background="#03ad00" category="4"/>
<Label value="member" background="#ec0f04" category="5"/>
<Label value="discount" background="#f0cc19" category="6"/>
<Label value="list_describe" background="#da1fff" category="7"/>
</RectangleLabels>
</View>
</View>
When export the same tags of object detection in YOLO format, the tag order of two datasets are different:
What is the logic of the name order and how to fix the order between two Projects?