> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/auto-labeling/segment-anything-sam.md).

# Segment Anything (SAM)&#x20;

In Unitlab Annotate, there are several auto-annotating tools such as [Magic Touch](#magic-touch) (a.k.a Segment Anything), [Batch Auto-Annotation](/auto-labeling/batch-auto-annotation.md) and [Crop Auto-Annotation](/auto-labeling/crop-auto-annotation.md)**.**&#x20;

{% hint style="success" %} <img src="/files/iJabLppBsPS8HcogZEjy" alt="" data-size="original">  The Magic Touch is available to all users and is free forever. [Start using it right now!](/project-management/setup-a-project.md)
{% endhint %}

### Magic Touch - Segment Anything (SAM) <a href="#magic-touch" id="magic-touch"></a>

[Magic-Touch](https://blog.unitlab.ai/unitlab-streamlined-data-annotation-platform-for-computer-vision/#Auto-Annotation-Tools), powered by [the Segment Anything (SAM) ](https://github.com/facebookresearch/segment-anything)model, offers auto-annotation capabilities that can annotate any object with outstanding precision, regardless of its structural complexity, ensuring pixel-perfect accuracy. It is available for the **Image Segmentation** and **Image Polygon** Annotation types in Unitlab Annotate.

### A quick Demo

**Example #1:** Vegetable and Fruit Instance Segmentation

{% embed url="<https://blog.unitlab.ai/content/media/2024/01/Area.mp4>" %}
Unitlab Annotate: Magic Touch demo - Vegetable and Fruit Instance Segmentation
{% endembed %}

### How to use?

To use Magic-Touch auto-annotation tool in Unitlab Annotate,  Click on <img src="/files/iJabLppBsPS8HcogZEjy" alt="" data-size="original"> Magic Touch located in the toolbar of Unitlab Annotate. It may take a couple of seconds to initialize the SAM model for your image data.

<figure><img src="/files/5igo8QsR48ckM6CO5moV" alt=""><figcaption><p>Unitlab Annotate: The Initialization of the SAM Model</p></figcaption></figure>

After initializing the SAM Model, it generates annotations in real-time based on your click prompt. Simply click where you want to annotate.

### Real-world examples

**Example #2:** X-Ray Image Instance Segmentation

{% embed url="<https://blog.unitlab.ai/content/media/2024/01/Area2.mp4>" %}
Unitlab Annotate: Magic Touch demo - X-Ray Image Instance Segmentation
{% endembed %}

**Example #3:** Dental Image Instance Segmentation

{% embed url="<https://blog.unitlab.ai/content/media/2024/01/Area3-3.mp4>" %}
Unitlab Annotate: Magic Touch demo - Dental Image Instance Segmentation
{% endembed %}
