# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.unitlab.ai/auto-labeling/segment-anything-sam.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
