画像セグメンテーション: SAM3

SAM3モデルを使用して、写真や画像から主要な被写体やコンテンツをセグメント化し、特定のオブジェクトや領域を分離します。画像を入力すると、セグメント化されたマスク出力が得られます。

Input

The photo to cut from.

The thing to segment, named plainly: guitar, red mug, left shoe.

Advanced settings

Higher is stricter about what counts as the object.

Output
Output
Example

例を試す

このワークフローについて

SAM3 is prompted by a noun, not a box: type the thing you want — "guitar", "the red mug" — and the detector finds it, refines the boundary and hands back a mask. The template inverts that mask and joins it to the source as alpha, so the visible output is already the cut-out, ready for a composite or a background swap, while the raw mask stays available for a matte. `threshold` decides how sure the detector must be before it claims a pixel; `individual_masks` splits several instances instead of merging them into one region; `refine_iterations` sharpens the edge on hair, fur and thin geometry.

Graph: LoadImage + CLIPTextEncode (object name) -> SAM3_Detect (threshold 0.5, refine_iterations 2) -> InvertMask -> JoinImageWithAlpha, with a MaskPreview of the raw mask. One image and one noun in, one cut-out out.