executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
background-matting-v2Routes BackgroundMattingV2 tasks for background matting inference, export, and training workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.
references/repo-provenance.md when you need to check whether this skill
still matches the repository checkout.scripts/check_env.py first when you only need a quick import and tiny
forward smoke.references/workflows.md for the high-level route map and the decision
points between inference, export, and training.references/api-reference.md for verified model and dataset signatures.references/data-formats.md before touching data_path.py or paired
foreground/alpha/background directories.references/backend-compatibility.md before choosing PyTorch,
TorchScript, or ONNX paths.references/troubleshooting.md for cross-cutting install, import, and
backend issues.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 torchvisionkorniaopencv-pythononnxonnxruntimetensorboardtqdmA quick smoke is:
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.
Use sub-skills/inference-and-demo/ when the task is about:
inference_images.pyinference_video.pyinference_webcam.pyinference_speed_test.pyRead sub-skills/inference-and-demo/SKILL.md for the trigger terms and linked
workflow helpers.
Use sub-skills/export-and-backends/ when the task is about:
export_torchscript.pyexport_onnx.pyRead sub-skills/export-and-backends/SKILL.md when you need conversion steps or
backend troubleshooting.
Use sub-skills/training/ when the task is about:
train_base.pytrain_refine.pydata_path.pyRead sub-skills/training/SKILL.md before configuring data paths or starting a
training run.
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.
scripts/check_env.pysub-skills/inference-and-demo/scripts/smoke_forward.pysub-skills/export-and-backends/scripts/check_export_support.pysub-skills/training/scripts/check_data_layout.py