FAQ

Frequently asked questions about setup and usage.

Image/audio/resource loading error while labeling

The most common mistake while resource loading is CORS (Cross-Origin Resource Sharing) problem or Cross Domain. When you are trying to fetch a picture from external hosting it could be blocked by security reasons. Go to browser console (Ctrl + Shift + i for Chrome) and check errors there. Typically, this problem is solved by the external host setup.







How to make pre-annotations & pre-labeling

You can import pre-annotated tasks into LS. Pre-annotations will be automatically shown on Labeling page. Prepare your tasks with predictions field which is very similar to completions and then import your tasks to LS. Read more about task format and predictions.

[{
  "data": {
    "my_text": "Opossum is great" 
  },

  "predictions": [{
    "result": [{
      "from_name": "sentiment_class",
      "to_name": "message",
      "type": "choices",
      "value": {
        "choices": ["Positive"]
      }
    }]
  }]
}]

How to display labels on bounding boxes, polygons and other regions

How to run LSB with external domain name

If you want to run LSB with some domain name you need to use Host, Protocol, Port parameters at LS run. They are responsible for correct URLs while a resource files import (images, audio, etc) and sample tasks generation.

There are several possible ways to do it:

  1. Replace these parameters inside of your project/config.json (or label_studio/utils/schema/default_config.json from LSB package directory).
  2. Specify these parameters at start: label-studio start --host label-studio.example.com --protocol http:// --port 8080.
  3. For docker usage: specify environment variables HOST, PROTOCOL, PORT while docker setup.

LSB web server always use 0.0.0.0 address for start. But if you really need to change it to localhost just set Host as localhost and web server will start at localhost.