What problem does it solve? Segmenting objects in images traditionally requires task-specific training data and model fine-tuning. This Skill guides you through Meta AI's Segment Anything Model (SAM) to produce high-quality segmentation masks on any image domain without training, using simple point, box, or mask prompts. ## Core Features & Use Cases - Interactive Prompt-Based Segmentation: Segment objects with foreground/background points, bounding boxes, or previous masks using SamPredictor, with iterative refinement support. - Automatic Mask Generation: Produce all object masks in an image at once with SamAutomaticMaskGenerator, with tunable quality, stability, and density thresholds. - Deployment & Integration: Export to ONNX for browser and edge deployment, or use HuggingFace Transformers (SamModel/SamProcessor) for pipeline integration. - Use Case: Build an annotation tool where a user clicks on an object in an image, and SAM returns a precise binary mask with an IoU quality score, which is then exported as a COCO RLE annotation for training a downstream vision model. ## Quick Start Ask the agent to segment the object at a specific point in your image using SAM with the ViT-H checkpoint and return the best mask with its quality score.