GithubHelp home page GithubHelp logo

Comments (10)

youyuge34 avatar youyuge34 commented on May 27, 2024

Why they are not in alphabetical order?

from label-studio-converter.

KonstantinKorotaev avatar KonstantinKorotaev commented on May 27, 2024

@youyuge34 Hi, could you please share your label config?

from label-studio-converter.

youyuge34 avatar youyuge34 commented on May 27, 2024

@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>


from label-studio-converter.

KonstantinKorotaev avatar KonstantinKorotaev commented on May 27, 2024

@youyuge34
Could you please also share your version of label-studio-converter?

from label-studio-converter.

youyuge34 avatar youyuge34 commented on May 27, 2024

@KonstantinKorotaev I use label-studio v1.4 and label-studio-converter 0.0.36

from label-studio-converter.

KonstantinKorotaev avatar KonstantinKorotaev commented on May 27, 2024

label-studio-converter 0.0.36

Could you please update it to 0.0.40 and check one more time?

from label-studio-converter.

shafeeq07 avatar shafeeq07 commented on May 27, 2024

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

from label-studio-converter.

KonstantinKorotaev avatar KonstantinKorotaev commented on May 27, 2024

Hi @shafeeq07
Could you please share your label config?

from label-studio-converter.

TrueWodzu avatar TrueWodzu commented on May 27, 2024

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 tag or or whatever name you chose to labelling interface.

from label-studio-converter.

makseq avatar makseq commented on May 27, 2024

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>

How it works:
https://github.com/heartexlabs/label-studio-converter/pull/50/files#diff-322ce95b5aa5f02fb330c7f62be1ea0066c01829b564db0644872e09338a3ddfR745

from label-studio-converter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.