ai-agent

segment-anything-with-clip

Segment Anything combined with CLIP
353 stars27 forksPythonUpdated 2/19/2024100% free · open source
What it does

Lets you generate image masks by describing objects in natural language, combining SAM’s pixel‑accurate segmentation with CLIP’s text understanding.

When to use it
  • •You need to extract specific objects from photos without manually drawing masks.
  • •You want to build a product feature that lets users search images by object description and retrieve the corresponding region.
  • •You have a dataset of unlabeled images and want to auto‑segment items based on textual labels.
Ready-to-paste prompt
python demo.py --image_path ./my_photos/office.jpg --text "laptop on the desk"
Heads up: The SAM model requires a CUDA‑enabled PyTorch build; running on CPU will be extremely slow or may crash. Make sure you have the correct GPU drivers and install `torch` with the matching CUDA version before running the scripts.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/segment-anything-with-clip && curl -fsSL https://workflowstacks.com/api/skills/segment-anything-with-clip/claude-skill -o ~/.claude/skills/segment-anything-with-clip/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

Quick Actions
Details
Creator
Curt-Park
Language
Python
Category
ai-agent
Published
4/6/2023

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/segment-anything-with-clip.svg)](https://workflowstacks.com/skills/segment-anything-with-clip?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.