> 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

Generate more precise polygons with SAM-powered Smart Select.

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

Roboflow offers a Smart Select experience powered by [Segment Anything (SAM)](https://blog.roboflow.com/segment-anything-breakdown/), a state-of-the-art image segmentation model. To use SAM, enable Smart Select in Roboflow Annotate from the annotation tool sidebar:

<figure><img src="https://2252499186-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNVfRxNsvCh4GOyqrjmzX%2Fuploads%2Fgit-blob-0f232ba1a499031fa01ba2f6fade27d9c3644242%2Fimage%20(109).png?alt=media" alt=""><figcaption></figcaption></figure>

Smart Select is now running SAM in the browser. You’ll notice you can hover over objects and see a preview of the mask that will be generated with your initial click. These previews help save time because you can see masks before you apply them and navigate the image to find the best initial mask to create.

{% embed url="<https://blog.roboflow.com/content/media/2023/04/Untitled--9-.mp4>" %}

When you create an initial mask, you'll be able to select the complexity of your polygon (toggle between them to see the difference!) and then accept the initial mask by pressing Enter.

You can interactively edit the initial mask by clicking outside of the mask to expand the mask, or click inside the mask where it may have included more than your desired object.

{% embed url="<https://blog.roboflow.com/content/media/2023/04/Untitled--15-.mp4>" %}

For larger objects or objects where masks aren’t created properly in one click, you can click and drag to draw a box around the full object. The method you use depends on your data so experiment with what works best for you.
