技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
robust-video-matting【数据与研究】Use for RobustVideoMatting human video matting workflows: MattingNetwork APIs, inference conversion, training data setup, and RVM evaluation metrics.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves Robust Video Matting (RVM), the repository for robust human video matting with temporal guidance. RVM predicts foreground RGB and alpha mattes from ordinary human videos, recycles recurrent states over time, and provides source-checkout/TorchHub workflows for PyTorch inference, training, and evaluation.
MattingNetwork, mobilenetv3 vs resnet50, refiners, tensor shapes,
recurrent states, segmentation_pass, or safe synthetic forward checks.convert_video, running
image/video conversion, choosing output alpha/foreground/composition, or
using TorchScript, ONNX, TensorFlow, TensorFlow.js, and CoreML artifacts.DATA_PATHS; augmentations/losses; and the official four-stage training
commands.This repository snapshot is not a normal pip-installable distribution. It has
no setup.py or pyproject.toml; local source workflows import modules such as
model, inference, dataset, and evaluation from a checkout root. TorchHub
is also supported for model and converter loading when network/cache behavior is
acceptable.
For source-checkout workflows, make the checkout importable and install the needed dependencies for the chosen route:
# Historical repo requirement files exist for inference and training, but may
# need Python/PyTorch-version adjustment on modern systems.
pip install torch torchvision tqdm pillow
pip install av pims # video file IO / converter video workflows
pip install opencv-python-headless xlsxwriter kornia # evaluation workflows
pip install easing_functions tensorboard # training workflows
Minimal source import and model smoke check:
python scripts/check_rvm_environment.py --repo-root /path/to/RobustVideoMatting --device cpu
The helper validates imports, signatures, and a tiny synthetic forward pass. It is not a quality test, paper reproduction, GPU speed benchmark, or full training check.
references/repo-routing-metadata.json contains structured router metadata
for managed repo-skill import.pretrained_backbone=True, official weights, and datasets may download
external artifacts.train.py uses GPU count,
multiprocessing, NCCL, DDP, SyncBatchNorm, AMP, and large datasets.rvm_convert_image_sequence.py wrapper with a local checkpoint.[B,3,H,W] or
[B,T,3,H,W], and run rvm_model_smoke.py.fgr/pha and
background roots, then adapt the stage commands.