> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/datasets/annotate/annotate/ai-labeling/smart-select.md).

# Smart Select

Click an object to draw a polygon or mask around it with Smart Select, powered by SAM 3.

{% hint style="info" %}
Smart Select is one of the [AI Labeling](https://docs.roboflow.com/datasets/annotate/annotate/ai-labeling.md) features. It uses [credits](https://docs.roboflow.com/platform/billing-and-plans#credits) at the rates listed on [roboflow.com/credits](https://roboflow.com/credits).
{% endhint %}

Smart Select draws a polygon or a pixel mask around an object from a few clicks, so you don't place each vertex by hand. It runs Segment Anything 3 (SAM 3) by default, and you can switch to SAM 2.

Use it to label instance segmentation and semantic segmentation projects, or to draw tight outlines on object detection projects. On an object detection project, polygons and masks train as boxes.

## Label an Object

1. Open an image in the annotation editor and click "Smart Select" in the toolbar, or press `S`. The "Smart Select" panel opens.
2. Hover over an object to preview the shape your first click makes.
3. Click the center of the object. For a large object, or one that a single click does not capture, drag a box around the whole object instead.
4. Fix the shape. Click outside it to add an area, or click inside it to remove an area that does not belong to the object. "Undo" and "Redo" in the panel step back and forth through your clicks.
5. Click "Finish" or press Enter, then choose a class.

To throw away the shape you are working on, click "Delete" in the panel.

<figure><img src="https://2252499186-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNVfRxNsvCh4GOyqrjmzX%2Fuploads%2Fgit-blob-3deb545416afc9753e602eb2c6e200b6a1d65530%2Fannotate-smart-select-tooltip.png?alt=media" alt="Smart Select tooltip with the credits icon and shortcut S: click the center of your object, then keep clicking to add or subtract areas"><figcaption><p>Smart Select (S) in the annotation toolbar</p></figcaption></figure>

## Choose the Model and Output

The "Smart Select" panel has these settings. The editor remembers your choices for the next image.

* "Model": "SAM3" (the default) or "SAM2".
* "Format": "Polygon" saves an outline whose vertices you can edit. "Pixels" saves a pixel mask, which follows fine or irregular edges (ex: hair, leaves) more closely. When a project accepts only one format, the panel shows that format without a toggle.
* "Simplify" (polygon only): drag toward "Simple" for fewer vertices, or toward "Complex" for an outline that follows the object more closely.

## Convert Existing Annotations

Right-click a box or polygon and choose "Convert to Smart Polygon" or "Convert to Smart Mask". Smart Select runs inside the annotation and replaces it with the shape it finds. This is a fast way to turn a box dataset into a segmentation dataset.
