- 06 Aug 2024
- Print
- DarkLight
- PDF
Ontology - Labels and Attributes
- Updated On 06 Aug 2024
- Print
- DarkLight
- PDF
Labels
Add Labels
- Go to the Ontology section.
- Find and open the recipe.
- Add your labels in the Labels and Attributes tab and click Enter or click the + icon.
Label Color
When creating a label in the recipe, the label is given a default color. For all annotation tools except Semantic Segmentation, the label color will only affect the platform UI and is for the user’s convenience to differentiate between annotations of different labels over an image/video and other files.
For the Semantic Segmentation tool, the color of the label will be reflected in the masked item’s output. If your model already has its RGB for the masked output, make sure to set the label's colors accordingly.
- Changing the default color - The default color assigned t a label can be changed. Click the colored circle to select a color from the palette, or enter RGB values.
- Changing color for semantic segmentation - changing the color of the label used for semantic segmentation will impact only new annotations from that point onward. The color of existing annotations is saved on the mask in the item's JSON, and therefore won't affect all existing JSON files.
For more information about the Semantic Segmentation tool, click here.
Hierarchical/Nested Labels (sub-labels)
Labels in the recipe have a Dot Name Spacing (dot-separated structure), allowing you to create tree-like label descriptions (sub-labels that are in a hierarchy with other labels).
A well-defined labels hierarchy enables annotators to accurately classify annotations based on logical structure, with correlation with Dataloop advanced tools for labels-based search and filter on items and annotations level.
In New Label, enter the Parent label name + "." + "child" label, and click the plus icon. For example:
- car
car.window
- car.window.glass
Labels as Images (Thumbnails)
Add images to labels in the recipe, to enable label selection in annotation tasks based on the similarity of the image to the label’s thumbnail. Ideal for retail annotation tasks.
Click on the + icon next to the label and select the image from your computer directory.
Reordering Labels
Labels can be reordered differently than creation order, to allow prioritizing and displaying at the top of the list during labeling tasks. To reorder labels, drag and drop them to the desired position.
Attributes
Attributes are created separately and can be mapped to specific labels, e.g. determining for each attribute the labels it applies to. Attributes have the following fields:
- Scope: Where mapping to labels is done. The default applies any attribute to all labels, but individual selection can be done. By default, scoping a label applies the attribute automatically to all sub-labels.
- Mandatory: Enforce annotators to answer attributes in Studio 2.0 before clicking Done and moving to the next item. The feature is enabled from recipe instructions, and applies to any attribute set as ‘Mandatory’.
While working in the Studio, mandatory attributes skipped will show with a red flag icon, requiring annotators’ attention.
Mandatory attribute enforcement occurs only when working on a single item in the respective studio. Due to the nature of this work, mandatory attributes are not enforced when working in bulk from the Assignment Browser.
- Type - selection and representation type of the attribute:
- Checkbox: Multiple selection options
- Radio button: Single-choice type
- Slider: Selecting from a range of values (for example between 1 and 10)
- Yes/No: A shortcut for you to have a radio button-based yes/no attribute
- Free text: Allows an annotator to use free text to answer questions and provide information
- Subject: The guidance/question presented to the annotator, on how to fill this attribute.
- Section ID: Allows referring to this attribute via JSON exports and metadata. It’s auto-populated with a running number but can be edited to any value.
Add an Attribute
- Go to the Ontology section.
- Find and open the recipe.
- Click Create Section from the Labels & Attributes tab.
- Select the label from the list in which you need to add an attribute.
- Update required fields. Refer to the previous section for detailed information.
- Click Save to save the changes.
- Click the Save icon to save the recipe.
Delete an Attribute
- Go to the Ontology section.
- Find and open the recipe.
- Identify the attribute from the list on the Labels & Attributes tab.
- Click to expand it.
- Click Delete.
- Click Save to save the changes.
- Click the Save icon to save the recipe.