Mask Prompter 3

Workflow

You create mattes by specifying so-called prompts for the current frame. Depending on the selected model, prompts can be points, rectangle masks around objects, or textual descriptions of the objects you want to isolate.

SAM 3 also supports concept-based prompting, allowing you to detect multiple instances of an object based on a textual description or a visual example.

Premiere Pro

Mask Prompter supports Premiere Pro, except for rectangle-based prompts. Use point prompts or text prompts instead.

When using SAM 3 in Premiere Pro, only text prompts are available.

Text prompts are entered via the prompt input dialog.

Parameters

Points (except SAM 3)

Set the number of include points using “Number Of Include Points”. Enable “Active” and position the point inside the object you want to isolate.

By keyframing the point positions, you can follow moving objects over time.

Boxes (except SAM 3)

Create rectangle masks on the layer and assign them to one of the prompt slots. This creates a matte for the object contained within the rectangle.

Use “Number Of Box Prompts” to specify the number of available slots.

For best results, draw the rectangle closely around the object you want to isolate.

Only available in After Effects.

Text Prompts

Describe the objects you want to isolate using textual descriptions.

In After Effects, click “Add Text Input”, rename the newly created mask to your desired description (e.g. “a horse”), and assign it to one of the prompt slots.

In Premiere Pro, enter the description via the prompt input dialog.

Use “Number Of Text Prompts” to specify the number of available slots.

Finding the right description may require some trial and error. Try alternative words or more specific descriptions if the results are not as expected.

With models other than SAM 3, you can detect multiple types of objects by separating words or phrases with periods. For example, “horse. red car.” detects both horses and red cars.

When using SAM 3, use a separate text prompt for each concept you want to detect.

Multiple

When enabled, all objects matching the prompt can be detected. Otherwise, only the object with the highest similarity score is returned.

Enabled by default. Not available when using SAM 3.

Detection Threshold (except SAM 3)

Controls the confidence threshold for text-based object detection.

Lower values allow more objects to be detected, at the cost of potentially more false positives. Higher values make detection more selective but may cause some objects to be missed.

The default value is 25%.

Scale Rectangles

Increases the size of the bounding boxes generated by the text detection model before passing them to the keying model.

This provides the keying model with more surrounding image context and can influence the resulting matte.

A value of 1.0 leaves the detected rectangles unchanged.

Not available when using SAM 3.

Positive Concepts (SAM 3 only)

Create rectangle masks on the layer and assign them to one of the slots in the “Box Prompts” section.

Unlike conventional box prompts, these rectangles serve as visual examples of the objects you want to detect. SAM 3 can create mattes for both the specified objects and other objects matching the same visual concept.

For example, drawing a rectangle around one car can also detect other cars in the image.

Only available in After Effects.

Exclude Points

Mark objects or regions in the image that you want to exclude from the matte.

Set the number of exclude points using “Number Of Exclude Points”, enable “Active”, and position the points inside the unwanted objects or regions.

Exclude point positions can also be keyframed.

Not available when using SAM 3.

Detection Threshold

Controls the confidence threshold for both text prompts and concept-based box prompts when using SAM 3.

Lower values allow more objects to be detected, at the cost of potentially more false positives. Higher values make detection more selective.

The default value is 50%.

Only available when using SAM 3.

Models

Select the keying and object detection models.

“Keying Model” determines which model is used to generate the matte. Different models offer different trade-offs between processing speed, segmentation quality, and memory consumption.

“Text Model” determines which object detection model is used to detect objects matching your text prompts.

SAM 3 handles text prompts directly and therefore does not require a separate text model.

Matte Refinement

Set this parameter to “HQ” to apply an additional AI-based matte refinement model.

Matte refinement can improve edge quality and recover fine details, such as hair and fur.

Set this parameter to “Off” to use the matte generated by the keying model without additional refinement.

Filter Width

Controls the width of the region around the matte edges processed by the refinement model.

Use smaller values for minor edge corrections and larger values for complex or irregular edges (e.g. hair blowing in the wind).

Only available when Matte Refinement is set to “HQ”.

High Resolution

Runs matte refinement at a higher resolution to improve fine edge details. This increases memory consumption (VRAM) and may increase processing time.

Only available when Matte Refinement is set to “HQ”.

Output

Select how the result is displayed.

  • “Overlay”: Displays the matte as a white overlay on top of the original image. Adjust its strength using “Overlay Strength”.

  • “Matte”: Outputs a grayscale matte, where white represents foreground, black represents background, and intermediate values represent partial transparency.

  • “On Transparent”: Outputs the isolated objects with the generated matte applied as an alpha channel.

  • “Detection Boxes”: Displays the detected bounding boxes on top of the original image without displaying the matte.

  • “Detection Boxes On Transparent”: Displays only the detected bounding boxes on a transparent background.

Detection boxes are generated by text prompts and, when using SAM 3, concept-based box prompts.

Draw Rectangles

Draws bounding boxes around detected objects in addition to the selected output.

Available in the “Overlay”, “Matte”, and “On Transparent” output modes.

Bounding boxes are displayed automatically in the dedicated detection box output modes.

Color (only if rectangles are drawn)

Controls the color of the bounding box outlines.

Thickness (only if rectangles are drawn)

Controls the thickness of the bounding box outlines.

Tips & Tricks

If you use the “On Transparent” output mode, the resulting matte can be further processed using built-in After Effects effects such as “Refine Soft Matte”.

If text prompts produce unwanted detections, try increasing the detection threshold or using a more specific description.

If objects are not detected, try lowering the detection threshold or rephrasing the text prompt.

Use SAM 3 to detect multiple instances of the same object or visual concept. Use point prompts or conventional box prompts with other models to isolate specific objects.

Backend & Performance

Hardware Acceleration

Run calculations on the GPU. This will give massive speedups compared to CPU mode, especially on CUDA. On Windows with non-NVIDIA GPUs the speedup is still significant, but not all models are supported. Please check the product sites for notes about which models are supported.

Lower Precision

Compute with reduced precision if possible. This can save up to half of the memory and give you some speedups at the cost of sometimes slightly reduced quality.

Allow CPU Fallback

Run computation on the CPU if model cannot be executed on the GPU.

CUDA Memory Sharing (on CUDA machines only)

Try to keep frames data on the GPU for rendering. This is faster, especially on larger resolutions like 4k. Might not work on some NVIDIA driver versions (e.g. 476.x) so keep your drivers updated.

Model Offloading

Enabling this will make sure only the AI model parts which are needed for computation are kept on the GPU. This might lower VRAM usage under some settings at the cost of moving AI models in and out of GPU memory. Options are:

  • No offloading: Keep all models on the GPUs VRAM.

  • CPU: Move unneeded models to the RAM and back if needed. This will occupy RAM.

  • Full Unload: Completely unload models if not needed. This saves both VRAM and RAM but might be much slower, as the models have to be loaded again for every request.

Timeout

The maximum time a frame can be processed before the computation times out.

Samples (not available for all settings)

The number of ai samples to calculate. This will improve the models accuracy.

Parallel (only available if Samples > 2)

This will render all samples at the same time (faster), if disabled computation might be slower but require less VRAM.

Computation Tiles (not available for all settings)

Split the computation into several tiles. This can help if you run out of memory.

Deactivate Prerendering (Premiere only)

Will not render the effect during preview playback, only on stopped frames. Enable this for increased interactivity.

Stop Processing

Cancels a long-running frame computation immediately.

Restart

If a frame was canceled with “Stop Processing”, trigger a rerender.