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

Unable to use the Inventory Tracking template #3131

Closed
bdeng3 opened this issue Oct 24, 2022 · 2 comments
Closed

Unable to use the Inventory Tracking template #3131

bdeng3 opened this issue Oct 24, 2022 · 2 comments
Assignees
Labels
configuration problem bug or something isn't working

Comments

@bdeng3
Copy link

bdeng3 commented Oct 24, 2022

Describe the bug
This template works perfectly in the UI preview section.

However, for a real annotation section, no "CocaCola" or "RedBull" small icon image is shown for annotation. Only the image to be annotated is shown on the screen.

To Reproduce
Just try the inventory tracking system and upload a sample image, you'll see all those icon label are not being shown.

Expected behavior
I was expecting those small icon images are displayed to the annotators, so that the annotators can select the icon image and draw a bounding box on the given image (if he/she spot a CocaCola in the image, he/she should be able to spot and label it)

Screenshots
image

Environment (please complete the following information):

  • MacOS 12.6
  • Label Studio 1.6.0
@makseq
Copy link
Member

makseq commented Oct 25, 2022

Most likely you are using wrong input task. It should be like this:

{
  "data": {
    "image": "https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/shelf.jpeg",
    "objects": [{
      "value": "CocaCola",
      "html": "<img width='100' src='https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/cocacola.png'/>"
    }, {
      "value": "RedBull",
      "html": "<img width='100' src='https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/redbull.png'/>"
    }, {
      "value": "Burn",
      "html": "<img width='100' src='https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/burn.png'/>"
    }, {
      "value": "Breezer",
      "html": "<img width='100' src='https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/breezer.png'/>"
    }, {
      "value": "Monster",
      "html": "<img width='100' src='https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/monster.png'/>"
    }]
  }
}

Try to insert this labeling config to your project:

<View>
  <View style="display:flex;justify-content:center">
    <PolygonLabels name="objects" toName="image" value="$objects"/>
  </View>
  <Image name="image" value="$image"/>
</View>

<!-- {
  "data": {
    "image": "https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/shelf.jpeg",
    "objects": [{
      "value": "CocaCola",
      "html": "<img width='100' src='https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/cocacola.png'/>"
    }, {
      "value": "RedBull",
      "html": "<img width='100' src='https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/redbull.png'/>"
    }, {
      "value": "Burn",
      "html": "<img width='100' src='https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/burn.png'/>"
    }, {
      "value": "Breezer",
      "html": "<img width='100' src='https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/breezer.png'/>"
    }, {
      "value": "Monster",
      "html": "<img width='100' src='https://htx-pub.s3.amazonaws.com/templates/inventory-tracking/monster.png'/>"
    }]
  }
} -->

image

@makseq makseq closed this as completed Oct 25, 2022
@makseq makseq added problem bug or something isn't working configuration labels Oct 25, 2022
@bdeng3
Copy link
Author

bdeng3 commented Oct 25, 2022

I see, that helps. Those little icons' image URLs should also be uploaded via "data insert", which solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration problem bug or something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants