← 返回 Skills 市场
274
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install segment-anything
功能描述
使用 SAM(Segment Anything Model)去除图像背景,将前景主体提取为透明 PNG。适用于去除背景、抠图、提取前景主体或图像分割等需求。
安全使用建议
This skill appears to do what it claims. Before installing, consider: (1) model weights can be large (vit_h ~2.5GB) — ensure you have bandwidth and disk space; (2) it will install Python packages (torch, torchvision, and may pip-install the segment_anything repo) which run code on your machine — if you run in a shared/production environment, prefer reviewing the segment_anything repository or running inside a contained environment (virtualenv/container); (3) downloads occur from GitHub and dl.fbaipublicfiles.com (official hosts), so network access is required; (4) no credentials are requested. If any of these behaviors are unacceptable, do not install or run without isolation.
功能分析
Type: OpenClaw Skill
Name: segment-anything
Version: 1.0.0
The skill bundle provides image segmentation using Meta's Segment Anything Model (SAM). It is classified as suspicious because scripts/segment.py uses os.system to automatically execute a 'pip install' from a remote Git repository and urllib.request to download large binary model weights (up to 2.5GB) from dl.fbaipublicfiles.com to the user's home directory (~/.cache/sam). While these actions are aligned with the stated purpose, the use of shell execution for package installation and the automatic downloading of large remote assets are high-risk behaviors that bypass standard package management and can lead to unintended side effects or supply chain risks.
能力评估
Purpose & Capability
Name/description (SAM-based background removal) matches the included script and requested packages (Pillow, numpy, torch, torchvision). The script downloads official SAM checkpoints and optionally installs the segment_anything package — all actions are coherent with the stated functionality.
Instruction Scope
SKILL.md instructs running the included script and explains behavior (prompt points, cache path ~/.cache/sam, automatic checkpoint download). Instructions do not ask to read unrelated files or exfiltrate data, but the runtime will auto-install the segment_anything package if missing and download large model weights.
Install Mechanism
Install spec lists PyPI packages (pillow, numpy, torch, torchvision) which are expected. The script also runs pip install git+https://github.com/facebookresearch/segment-anything.git at runtime if needed. Model checkpoints are downloaded from dl.fbaipublicfiles.com (Facebook's public host) — no suspicious shorteners or private domains.
Credentials
No environment variables, credentials, or config paths are requested. The script only writes to an application cache directory (~/.cache/sam) and the output locations provided by the user.
Persistence & Privilege
The skill does not request always:true and is user-invocable. It will install Python packages into the running environment and persist model files under ~/.cache/sam; this modifies the local environment but is expected for ML model usage.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install segment-anything - 安装完成后,直接呼叫该 Skill 的名称或使用
/segment-anything触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of segment-anything skill (sam-segmentation-zh).
- Provides image background removal using Meta’s Segment Anything Model (SAM), outputting transparent PNGs.
- Supports customizable models, foreground point hints, and advanced options for extracting multiple elements.
- Includes CLI usage instructions and detailed parameter explanations.
- Automatic handling of model downloads and dependency installation.
元数据
常见问题
Segment Anything 是什么?
使用 SAM(Segment Anything Model)去除图像背景,将前景主体提取为透明 PNG。适用于去除背景、抠图、提取前景主体或图像分割等需求。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 274 次。
如何安装 Segment Anything?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install segment-anything」即可一键安装,无需额外配置。
Segment Anything 是免费的吗?
是的,Segment Anything 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Segment Anything 支持哪些平台?
Segment Anything 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Segment Anything?
由 scikkk(@scikkk)开发并维护,当前版本 v1.0.0。
推荐 Skills