background-matting-v2
Routes BackgroundMattingV2 tasks for background matting inference, export, and training workflows.
Skill by VectorSpaceLab
Chalk Labs
Need help deploying background-matting-v2?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/vectorspacelab-background-matting-v2
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/background-matting-v2
What's inside
- Skill name
background-matting-v2- Description
- Routes BackgroundMattingV2 tasks for background matting inference, export, and training workflows.
- License
- MIT
- Metadata
- disco-role: operating
- Instructions
- 108 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (26)
- SKILL.md
- api-reference.md · references/
- backend-compatibility.md · references/
- data-formats.md · references/
- repo-provenance.md · references/
- repo-routing-metadata.json · references/
- troubleshooting.md · references/
- workflows.md · references/
- check_env.py · scripts/
- SKILL.md · sub-skills/export-and-backends/
- troubleshooting.md · sub-skills/export-and-backends/references/
- workflows.md · sub-skills/export-and-backends/references/
- check_export_support.py · sub-skills/export-and-backends/scripts/
- run_export_onnx.py · sub-skills/export-and-backends/scripts/
- run_export_torchscript.py · sub-skills/export-and-backends/scripts/
- SKILL.md · sub-skills/inference-and-demo/
- troubleshooting.md · sub-skills/inference-and-demo/references/
- workflows.md · sub-skills/inference-and-demo/references/
- run_inference_images.py · sub-skills/inference-and-demo/scripts/
- run_inference_video.py · sub-skills/inference-and-demo/scripts/
- smoke_forward.py · sub-skills/inference-and-demo/scripts/
- SKILL.md · sub-skills/training/
- troubleshooting.md · sub-skills/training/references/
- workflows.md · sub-skills/training/references/
- check_data_layout.py · sub-skills/training/scripts/
- run_training.py · sub-skills/training/scripts/
SKILL.md (first lines)
# BackgroundMattingV2 BackgroundMattingV2 is a computer-vision repo for high-resolution background matting with a source-image / background-image pair. Use this root skill as a router, not as a full manual. ## Start here - Read `references/repo-provenance.md` when you need to check whether this skill still matches the repository checkout. - Run `scripts/check_env.py` first when you only need a quick import and tiny forward smoke. - Read `references/workflows.md` for the high-level route map and the decision points between inference, export, and training. - Read `references/api-reference.md` for verified model and dataset signatures. - Read `references/data-formats.md` before touching `data_path.py` or paired foreground/alpha/background directories. - Read `references/backend-compatibility.md` before choosing PyTorch, TorchScript, or ONNX paths. - Read `references/troubleshooting.md` for cross-cutting install, import, and backend issues. ## Install and inspect This repo is source-tree based rather than a packaged wheel. For inspection, create an isolated Python environment, install the runtime stack used by the repo workflows, and then import the source modules from a checkout of this repo. The verified inspection stack used for this skill was Python 3.11 with: - `torch` + matching `torchvision` - `kornia` - `opencv-python` - `onnx` - `onnxruntime` - `tensorboard` - `tqdm` A quick smoke is: ```bash python scripts/check_env.py --repo-root <repo-checkout> --device cuda ``` Use `--device cpu` when you only need importability and tiny forward coverage. Add `onnx` when you want the ONNX smoke helper to validate export support. ## Route map ### Inference and demo Use `sub-skills/inference-and-demo/` when the task is about: - `inference_images.py` - `inference_video.py` - `inference_webcam.py` - `inference_speed_test.py` - choosing model type, backbone, refine mode, device, or output types - understanding source/background pairing and alignment behavior Read `sub-skills/inference-and-demo/SKILL.md` for the trigger terms and linked workflow helpers. ### Export and backend compatibility Use `sub-skills/export-and-backends/` when the task is about: - `export_torchscript.py` - `export_onnx.py` - TorchScript attribute hoisting - ONNX patch crop/replace compatibility choices - validating export/runtime combinations Read `sub-skills/export-and-backends/SKILL.md` when you need conversion steps or backend troubleshooting. ### Training and data setup Use `sub-skills/training/` when the task is about: - `train_base.py` - `train_refine.py` - `data_path.py` - paired foreground/alpha/background directory layout - training checkpoints, logs, and benchmark evaluation - CUDA/DDP assumptions and dataset-name selection Read `sub-skills/training/SKILL.md` before configuring data paths or starting a training run. ## Public surface summary The public source-root modules you are expected to know are `model`, `dataset`, `inference_utils`, and `data_path`. The primary classes are `MattingBase` and `MattingRefine`. The main inference CLIs work with source/background image or video pairs and can optionally apply homographic alignment. ## What not to do - Do not send future agents back to the original repo docs or scripts when a bundled reference or script exists here. - Do not assume training or webcam workflows are safe to run without the right hardware, data, and display devices. - Do not treat CPU importability as proof of CUDA readiness. ## Local entry points - `scripts/check_env.py` - `sub-skills/inference-and-demo/scripts/smoke_forward.py` - `sub-skills/export-and-backends/scripts/check_export_support.py` - `sub-skills/training/scripts/check_data_layout.py`
From VectorSpaceLab/AREX-Skill, MIT.
More from VectorSpaceLab/AREX-Skill
- 0.563score
data-designer-repo-skill
VectorSpaceLab
Use when you need to design DataDesigner configs, run preview/create/validate workflows, inspect the CLI or agent context, work with plugins or MCP tools, or…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
everos
VectorSpaceLab
Use this skill for EverOS local-first Markdown memory service setup, HTTP memory and knowledge APIs, cascade/OME operations, and observability integration.
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
bentoml
VectorSpaceLab
Use BentoML to author model-serving Services, build and containerize Bentos, run HTTP/gRPC servers and clients, manage models, operate the CLI and BentoCloud…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dash
VectorSpaceLab
Use when building, debugging, testing, or maintaining Plotly Dash applications, callbacks, server backends, component packages, renderer internals, and Dash…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
diffusers
VectorSpaceLab
Use this skill for Hugging Face Diffusers tasks: pipeline inference, schedulers, adapters/loaders, training recipes, modular pipelines, conversion helpers…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
espnet
VectorSpaceLab
Use when working with ESPnet speech AI toolkit: installation, ESPnet2 recipes and training, pretrained inference/model zoo, ESPnet3 stage workflows, and…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
alphafold3
VectorSpaceLab
Use this skill for AlphaFold 3 input preparation, prediction command planning, output interpretation, and Python API inspection.
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
autogen
VectorSpaceLab
Use this skill for maintaining, migrating, debugging, and safely operating Microsoft AutoGen Python 0.7.x applications, including AgentChat, Core runtimes…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
browser-use
VectorSpaceLab
Use this self-contained Browser Use repo skill for Python agents that automate websites, browser sessions, custom tools, LLM/provider setup, persistent CLI…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dagster
VectorSpaceLab
Use when working with Dagster OSS: assets, jobs, Definitions, config/resources, schedules/sensors, automation, CLI/local development, deployment operations…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
datasets
VectorSpaceLab
Use this skill when working with Hugging Face Datasets: loading local or Hub datasets, defining Features schemas, processing/streaming datasets, converting…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
geopandas
VectorSpaceLab
Use when working with GeoPandas GeoDataFrame and GeoSeries workflows, vector geospatial I/O, CRS-aware spatial operations, mapping, geocoding, and…
SkillBFreshness: B★ 341Claude Code +9
Signals
- Stars
- 341
- Forks
- 26
- Open issues
- 0
- Last commit (this folder)
- Aug 26, 2026 (2 months ago)
- Last release
- Sep 2, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/VectorSpaceLab/AREX-Skill
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from VectorSpaceLab
- 0.563score
alphafold3
VectorSpaceLab
Use this skill for AlphaFold 3 input preparation, prediction command planning, output interpretation, and Python API inspection.
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
autogen
VectorSpaceLab
Use this skill for maintaining, migrating, debugging, and safely operating Microsoft AutoGen Python 0.7.x applications, including AgentChat, Core runtimes…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
bentoml
VectorSpaceLab
Use BentoML to author model-serving Services, build and containerize Bentos, run HTTP/gRPC servers and clients, manage models, operate the CLI and BentoCloud…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
browser-use
VectorSpaceLab
Use this self-contained Browser Use repo skill for Python agents that automate websites, browser sessions, custom tools, LLM/provider setup, persistent CLI…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dagster
VectorSpaceLab
Use when working with Dagster OSS: assets, jobs, Definitions, config/resources, schedules/sensors, automation, CLI/local development, deployment operations…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dash
VectorSpaceLab
Use when building, debugging, testing, or maintaining Plotly Dash applications, callbacks, server backends, component packages, renderer internals, and Dash…
SkillBFreshness: B★ 341Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get background-matting-v2 running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
background-matting-v2 skill. Agent Mart. https://agentmart.dev/skills/vectorspacelab-background-matting-v2 (last updated 2026-10-24)