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
inference-and-postprocessingRoute BiRefNet image/video inference, mask saving, foreground refinement, and output validation.
Independent GitHub snapshot · Automated classification · Original documentation governs
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