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 StudioOn 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
- Open Data labeling in Studio.
- Click an image to open it in the preview panel.
- Choose Select / Draw (S) and drag a rectangle around one object.
- Type the label (for example
coffee_mug) and press Enter. Studio remembers the last label you used. - Repeat for every object in the image.
| Tool or key | What 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 out | Zoom from 0.1× to 10× |
| Undo (Ctrl+Z) / Redo (Ctrl+Shift+Z) | Step back or forward |
| Delete or Backspace | Remove 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.
- On Data labeling, select AI Labeling.
- 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).
- Prompt: the objects to look for, separated by commas, for example
- Select Save.
- Under Run AI labeling on, choose All data or Data without labels.
- Select Label preview data to try the action on a few images. Check the suggested boxes.
- If they look right, select Label all data.
- 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.