What problem does it solve? Segmenting objects in images traditionally requires training task-specific models on labeled datasets. This Skill provides guidance for using Meta's Segment Anything Model (SAM) to produce high-quality segmentation masks on any image domain without fine-tuning, using simple point, box, or mask prompts. ## Core Features & Use Cases - Interactive Prompt-Based Segmentation: Segment objects with foreground/background points, bounding boxes, or combined prompts, with iterative refinement using previous mask logits. - Automatic Mask Generation: Generate all object masks in an image at once with tunable quality, stability, and density thresholds. - Deployment & Integration: Export to ONNX for browser and edge deployment, or use HuggingFace Transformers with SamModel and SamProcessor. - Use Case: Build an annotation tool where a user clicks on an object in an image and SAM instantly returns a precise mask, accelerating training data creation for downstream vision models. ## Quick Start Load the SAM ViT-H checkpoint with SamPredictor, set an image, and predict a mask from a foreground point prompt at the object's center.