# 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](https://docs.unitlab.ai/auto-labeling/batch-auto-annotation) and [Crop Auto-Annotation](https://docs.unitlab.ai/auto-labeling/crop-auto-annotation)**.**&#x20;

{% hint style="success" %} <img src="https://1366014570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVY6yJqW9wWHP6u0XYu5Q%2Fuploads%2FSkRhLmuVzM9sJnjlqBMI%2Fmagic%20(2).svg?alt=media&#x26;token=f999c652-c1b6-4b51-8cc0-d2d899b6f634" alt="" data-size="original">  The Magic Touch is available to all users and is free forever. [Start using it right now!](https://docs.unitlab.ai/project-management/setup-a-project)
{% 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="https://1366014570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVY6yJqW9wWHP6u0XYu5Q%2Fuploads%2FSkRhLmuVzM9sJnjlqBMI%2Fmagic%20(2).svg?alt=media&#x26;token=f999c652-c1b6-4b51-8cc0-d2d899b6f634" 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="https://1366014570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVY6yJqW9wWHP6u0XYu5Q%2Fuploads%2FBE0eJmRgOyoUomzGakKr%2Finit.webp?alt=media&#x26;token=f33249a0-273f-4827-b5f8-a353e1ba421f" 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 %}
