计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
ops-and-detection【效率与协作】Use torchvision.ops for boxes, NMS, ROI pooling/alignment, detection helper concepts, and extension-dependent troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task needs low-level torchvision.ops APIs, detection box utilities, ROI/NMS behavior, detection postprocessing concepts, or diagnosis of missing custom C++ operators.
torchvision.ops.nms, batched_nms, box IoU/conversion/clipping/filtering, masks_to_boxes, roi_align, roi_pool, MultiScaleRoIAlign, FPN helpers, losses, and operator availability errors.../models-and-weights/ for choosing or constructing high-level detection models and pretrained weights.../training-references/ for official detection training/evaluation command patterns.../transforms-and-tv-tensors/ for annotation-aware transform pipelines, TVTensor metadata, and bounding-box transform migration.xyxy boxes with shape [N, 4] and coordinates ordered x1 <= x2, y1 <= y2.torchvision.ops.box_convert before IoU/NMS; do not mix xyxy, xywh, and center formats in the same tensor.boxes, scores, labels, feature maps, and ROI tensors on compatible devices and dtypes; device mismatches are common when CUDA tensors meet CPU boxes.[N, C, H, W], box format, batch indices, output_size, spatial_scale, and featmap_names before debugging model heads.operator torchvision::nms does not exist or a custom-ops loading error, diagnose install/build compatibility before rewriting model code.references/box-and-roi-ops.md: box formats, IoU variants, NMS, masks, ROI Align/Pool, FPN, and layers/losses.references/detection-helpers.md: detection model helper concepts, postprocessing knobs, output structures, and boundaries.references/troubleshooting.md: extension, version, device, coordinate, nondeterminism, and ROI-shape failures.Run the tiny CPU smoke script to verify that import, boxes, IoU, NMS, and ROI Align work without downloads or large tensors:
python sub-skills/ops-and-detection/scripts/smoke_ops.py
If the script reports missing compiled ops, follow references/troubleshooting.md rather than treating it as a model-definition issue.