计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
inference-and-postprocessing【效率与协作】Route BiRefNet image/video inference, mask saving, foreground refinement, and output validation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill for BiRefNet inference tasks that need:
.pth checkpointUse the bundled references and scripts when the task is about:
Resize + ToTensor + ImageNet normalizationbirefnet(input)[-1].sigmoid() in eval modeinference.py output layout../model-architecture/SKILL.md../configuration-and-data/SKILL.md../training-and-evaluation/SKILL.mdreferences/inference-workflows.mdreferences/video-workflows.mdreferences/troubleshooting.mdscripts/birefnet_image_infer.pyscripts/birefnet_refine_smoke.py--help or --dry-run.--repo-root explicitly so imports stay anchored to the intended checkout.--model-source local for a checkpoint file or --model-source hf for hub weights.--device auto, cpu, or cuda based on the available backend.--foreground-refine and --save-comparison enabled when you need matting-style outputs.check_state_dict before loading; the helper does this for you.scripts/birefnet_refine_smoke.py --device cpu if the user only needs postprocessing/backend sanity before loading model weights.scripts/birefnet_image_infer.py --dry-run with the intended image directory, output directory, model source, device, and resolution before a real inference run.../model-architecture/SKILL.md.../training-and-evaluation/SKILL.md expects..pth checkpoint.masks/foregrounds/comparisons/--input is preserved