Labeling guide
Label and annotate your data with the open source data labeling tool, Label Studio. After you set up your project and labeling interface and import your data, you can start labeling and annotating your data.
- Open a project in Label Studio and optionally filter or sort the data.
- Click Label All Tasks to start labeling.
- Use keyboard shortcuts or your mouse to label the data and submit your annotations.
- Follow the project instructions for labeling and deciding whether to skip tasks.
You can also collaborate with other annotators to improve the quality of your labeled data.
Start labeling
Some labeling tasks can be complicated to perform, for example, labeling that includes text, image, and audio data objects as part of one dataset and labeling task, or creating relations between annotations on a labeling task. This section includes guidance on how to perform more complex labeling tasks, such as labeling with relations, overlapping regions, selected tasks, or changing labels.
Choose which tasks to label
From a project, click Label All Tasks to enter the labeling stream. The labeling stream will continuously serve tasks until all available tasks for the annotator have been completed. To label the tasks as they are filtered and sorted in the data manager, click the dropdown arrow and select Label Tasks As Displayed instead.
You can also label a specific task in the Quick View or Preview by clicking it from the project’s Data Manager view, but you will not automatically move to the next task in the labeling stream after submitting your annotations.
You can also select the checkboxes next to specific tasks and then click Label # Tasks to label the selected number of tasks. For example, select the checkboxes for 5 different tasks, then click Label 5 Tasks to label only those 5 tasks.
warning
Do not open the labeling stream (by clicking Label All Tasks) in multiple tabs or windows. This could result in you receiving the same task twice, which can circumvent project settings that address annotator overlap.
View the labeling interface
When labeling a task, annotation information is contained within multiple side panels. You can rearrange the position of these panels by dragging and dropping them to your desired location. You can also collapse individual panels or the entire group of panels with the Collapse and Collapse Group buttons.
Labeling interface example
Info
When an annotation region is selected, this panel displays the properties, metadata, and available actions. The properties displayed will depend on the type of region selected. The following details and actions are shown for all region types:
- Region ID
- Create relation between regions
- Edit selected region meta
- Hide selected region
- Delete selected region
Comments
This panel allows you to create and view comments within the annotation. Annotators and Reviewers can use comments to share additional context or request clarification directly within Label Studio.
History
A list of updates made to the annotation. This includes when an annotation is submitted, updated, reviewed, or when a draft is created. A draft is only visible to the user that created it. You can click an entry to see the state of the annotation at that time. This action does not overwrite the current state of the annotation.
View an annotation's history
Regions
This panel lists all regions created within the annotation. You can drag and drop regions to group them manually, or choose to group them by tool or label. You can also lock a region to prevent it from being edited or hide a region.
Regions created by a prediction are marked with a sparkle symbol.
Relations
Any relations created between regions appear here. Relations can be used to note a connection between two regions and you can apply a label to the relation when using the Relations tag.
You can toggle the visibility for relations by clicking the eye icon or delete a relation by selecting the trash can icon.
Label a region in the data
Annotate a section of the data by adding a region.
- Select the label you want to apply to the region. For some configurations, you can skip this step.
- Click the text, image, audio, or other data object to apply the label to the region. Your changes save to your draft automatically.
- Click Submit to submit the completed annotation and move on to the next task.
Label overlapping regions
When you label with bounding boxes and other image segmentation tasks, or when you’re highlighting text for NLP and NER labeling, you might want to label overlapping regions. To do this easily, you can hide a labeled region with the following steps:
- Select the label that you want to apply to the region.
- Draw the bounding box or highlight the text that you want to label.
- In the Regions panel, locate the region that you created and click the eye icon to hide the region.
- Select the next label that you want to apply to the overlapping region.
- Draw the bounding box or highlight the text that you want to label.
- Continue hiding and labeling regions until you’ve completed annotating the task. If you want, select the eye icon next to Regions to hide and then show all regions labeled on the task to confirm the end result.
- Click Submit to submit the completed annotation and move on to the next task.
For some configurations, you can also hold the ⌘ Command or Ctrl key before clicking and dragging to select a region. This allows you to start a new region instead of selecting the existing region.
Select multiple regions
You can select multiple regions while labeling to make changes to them together.
- After creating multiple regions, hold
⌘ CommandorCtrland click each region that you want to select in the Regions panel. - After selecting the regions you can apply a label to all selected regions or delete them.
- Click a selected region or press
Uto deselect it.
Duplicate regions
You can duplicate a region to create many identically-sized polygons, rectangles, or ellipses.
- Select the region that you want to duplicate.
- Press
ctrl + dto duplicate the region, or the sequence ofctrl + candctrl + vto copy and paste the region. Duplicated regions appear in the exact location as the region being duplicated. If you’re using a Mac keyboard, usecmdinstead ofctrl. - Click the arrow tool, then move and resize the newly-created region.
note
The hotkeys referenced above are the default setting. You can check your hotkey settings to see if these were changed.
Change a region’s label
You can change the label of an existing region.
- Select the labeled region, for example a span, bounding box, image segment, audio region, or other region, on the object or using the Regions panel.
- Select a new label. Your changes to the label save to your draft automatically.
- Click Submit to submit the completed annotation and move on to the next task.
Delete a region
You can delete regions, such as bounding boxes or text spans, if needed.
- Select the region on the object or in the Regions panel.
- Press the
Backspacekey or click the trash can icon in the Info panel.
If you delete the wrong region, you can click the Undo button to restore it if you have not reloaded the annotation after deletion.
Delete an annotation
You can delete a submitted annotation, if needed. Deleted annotations cannot be restored.
- Navigate to the project’s Data Manager view.
- Click the task containing the annotation to open the task in Quick View.
- Hover over the desired annotation tab and click the More Options icon when it appears.
- Select Delete Annotation.
- In the confirmation modal, click Delete.
For steps on deleting multiple annotations, please see Delete tasks or annotations.
Add relations between regions
You can create relations between two regions with both directions and labels. To add labels to directions, you must set up a labeling configuration with the relations tag. Read more about relations with labels in the Tags documentation.
- Select the region that you want to relate to another region. If you’re creating a direction-based relation, select the region that should be the initial region first.
- In the Info panel, click the Create Relation button.
- Select the second region for the annotation to complete the relation.
Add relations between regions
After you relate two annotation regions, you can modify the relation in the Relations panel.
- To change the direction of the relation, click the directional arrow between the two related regions.
- To add labels to the directional arrow indicating the relation between two regions, click the vertical ellipsis button next to the regions and select your label. These labels must be configured using the Relations tag to do this.
note
Relations do not support multi-level listings for regions.
Exit the labeling stream
When annotators want to submit their current annotation but would like to exit their labeling stream to, for example, pause the lead time calculation on their annotations, they can click the drop-down menu next to Submit and then select Submit and Exit (or Update and Exit). This will submit the current annotation and redirect them to the Projects page instead of the next task.
If they are not ready to submit their annotation, they can check to make sure their draft was saved in the History panel and then navigate to the Projects page to stop the lead time calculation from running.
Exit the labeling stream
Label with collaborators
You can label tasks with multiple annotators. When task assignment is automatic, tasks are locked while someone performs annotations so that work is not duplicated. After the initial annotator submits the task or the task lock expires, the task can appear in another annotator’s stream for labeling if the minimum annotations per task has not been reached.
note
By default, tasks only require a single annotation. You can set the number of annotations required per task in the project's Quality settings.
For manual assignment, annotators must be assigned a task in order to create an annotation. A task will remain in the Annotating state until all assigned annotators have submitted an annotation.
Users with access to the Data Manager view can manually create annotations regardless of assignment or Quality settings with the following steps:
- In Data Manager, click a task to open the quick labeling view.
- Click the
+icon next to the current annotation tabs to open a new annotation tab. - Label the task.
- Click Submit to save your annotation.
- Click the next task in the data manager to open the quick labeling view for that task and repeat steps 2-4.
Perform ML-assisted labeling with interactive preannotations
If you have a machine learning backend set up to get interactive preannotations, you can choose whether to use those predictions while you label.
- After you start labeling, you can enable Auto-Annotation to see and use the smart option to assign a label to draw a shape, mask, or assign a keypoint. After using the smart option to draw on an image, or label a text or HTML span, the ML backend returns predictions.
- For image labeling, you can choose whether to Auto accept annotation suggestions after you enable auto-annotation. If you automatically accept annotation suggestions, regions show up automatically and are immediately created. If you don’t automatically accept suggestions, the regions appear, but you can reject or approve them manually, either individually or all at once. Predicted text regions are automatically accepted.
Customize the labeling interface
Click the settings icon when labeling to configure the labeling interface to suit your use case.
For example, keep a label selected after creating a region, display labels on bounding boxes, polygons and other regions while labeling, and show line numbers for text labeling.
Customize the labeling interfaceYou can also change the position of the annotation tabs (for Quick View), hide or show various controls and buttons, and review hotkey settings.
Advanced image labeling
If you want to perform advanced image labeling, follow these examples and guidance for assistance.
Add multiple types of regions to image annotations
You can add multiple types of regions to image annotations. For example, you can add any of the following:
Create a custom template for your labeling interface using the following example:
<View>
<Image name="image" value="$image" />
<Rectangle name="rect" toName="image" />
<Ellipse name="ellipse" toName="image" />
<KeyPoint name="kp" toName="image" />
<Polygon name="polygon" toName="image" />
<Brush name="brush" toName="image" />
<Choices name="choices" toName="image">
<Choice value="yes"></Choice>
<Choice value="no"></Choice>
</Choices>
<Labels name="labels" toName="image" fillOpacity="0.5" strokeWidth="5">
<Label value="building" background="green"></Label>
<Label value="vehicle" background="blue"></Label>
</Labels>
</View>
This example makes rectangles, ellipses, polygons, keypoints, and brush masks available to the annotator, along with image classification choices of yes and no, and region labels of building and vehicle.
Faster image labeling
You can add a rectangle or an ellipse to your image with just two clicks, or double click to create a polygon, rectangle, or ellipse.
If you accidentally select a point on an image while creating a polygon, just double click to remove the erroneous point and continue creating the region. There must be at least three points on the polygon to remove a point.
Create regions and add labels
When you’re annotating images, you can create regions without applying labels immediately.
- Create a custom template using the example provided above under Add multiple types of regions to image annotations.
- Select which tool you want to use in the labeling toolbar.
- Create a region by double-clicking or clicking and dragging to create a bounding box, or click the points necessary to construct a polygon.
- Select the created region in the Regions panel or on the image.
- Select the label that you want to apply to the region.
- Repeat these steps for any regions that you want to create.
This can be helpful for two-step labeling, where you want one annotator to create regions and another annotator to label the regions.
Visit our Tags documentation for additional options.
Erase brush mask labels
If you make a mistake when labeling with the brush mask, you can erase it.
- Select the brush region in the Regions panel.
- Select the Eraser tool in the toolbar or press
E. - Erase the brush mask from the selected region as needed. The eraser will not erase unselected regions.
If you want to completely remove a region and start over, delete the region instead of erasing it. Fully erasing a region does not delete it.
How Label Studio saves results in annotations
Each annotation that you create when you label a task contains regions and results.
- Regions refer to the selected area of the data, whether a text span, image area, audio segment, or another entity.
- Results refer to the labels assigned to the region.
Each region has a unique ID for each annotation, formed as a string with the characters A-Za-z0-9_-. Each result ID is the same as the region ID that it applies to.
When a prediction is used to create an annotation, the result IDs stay the same in the annotation field. This allows you to track the regions generated by your machine learning model and compare them directly to the human-created and reviewed annotations.