What problem does it solve? Manually labeling objects in images for segmentation tasks is slow and requires task-specific model training. This Skill provides zero-shot image segmentation using Meta's Segment Anything Model, letting you isolate any object with simple point or box prompts without fine-tuning. ## Core Features & Use Cases - Interactive Segmentation: Generate masks from point, bounding box, or combined prompts using SamPredictor, with support for iterative refinement via previous mask inputs. - 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 edge deployment, serve via FastAPI or Gradio, and extend with GroundingDINO for text-prompted segmentation or SAM 2 for video. - Use Case: Build an annotation tool where a user clicks an object in a photo and instantly receives a high-quality binary mask with IoU and stability scores, ready to export as COCO RLE for training a downstream vision model. ## Quick Start Load the SAM ViT-H checkpoint with SamPredictor, set your image, and segment the object at point coordinates (500, 375) to get its mask.