Skip to content

Data Preparation

Labeling images

Draw a box around every object, use AI-assisted labeling, and keep a healthy training and testing split.

Try it in Studio
On this page

Goal

By the end of this page every object in your images has a bounding box with the right label, and your images are split into training and testing sets.

Draw boxes

  1. Open Data labeling in Studio.
  2. Click an image to open it in the preview panel.
  3. Choose Select / Draw (S) and drag a rectangle around one object.
  4. Type the label (for example coffee_mug) and press Enter. Studio remembers the last label you used.
  5. Repeat for every object in the image.
Tool or keyWhat it does
Select / Draw (S)Draw new boxes, or click a box to select it
Pan / Hand (H)Move around a zoomed image
Zoom in / Zoom outZoom from 0.1× to 10×
Undo (Ctrl+Z) / Redo (Ctrl+Shift+Z)Step back or forward
Delete or BackspaceRemove the selected box

In grid view you can also turn on Inline edit bounding box labels to draw boxes directly on the grid cards.

Label many images quickly: the Labeling Queue

Select Labeling Queue at the top of Data labeling. It shows only images that have no labels yet, one at a time.

  • Ctrl/Cmd+S saves and moves to the next image (auto-advance is on).
  • ← and → move between images.
  • Skip for now leaves an image for later.

The button shows how many images are still unlabeled, for example Labeling Queue (12).

Let AI suggest boxes: AI Labeling

AI Labeling uses a model called OWL-ViT that can find objects from a text description.

  1. On Data labeling, select AI Labeling.
  2. Create a new action. Give it a Name, then fill in:
    • Prompt: the objects to look for, separated by commas, for example red cup, blue box.
    • Label Names: the labels to give them, in the same order, for example cup, box.
    • Model Type: Detection (OWL-ViT).
  3. Select Save.
  4. Under Run AI labeling on, choose All data or Data without labels.
  5. Select Label preview data to try the action on a few images. Check the suggested boxes.
  6. If they look right, select Label all data.
  7. Review the suggestions. Use Approve label to keep them, or reject the ones that are wrong.

Background images

An image with none of your objects in it is a background image. It teaches the model what "nothing" looks like and reduces false detections. Select images without objects, open the row actions and choose Background... → Mark as background.

Check the training and testing split

  • Select the split icon (Train / Test Split) to see your ratio. Studio suggests about 80 % training and 20 % testing.
  • To move images, use Move to... → Training, Testing or Post-processing in the row actions.

Result

Every image has boxes (or is marked as background), and you have images in both the training and the testing set.

What next?