计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
detection【效率与协作】Object detection and instance segmentation with InternImage in MMDetection 2.x, including config selection, command templates, custom plugin registration, SAM-prompted masks, and troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user is working with InternImage object detection or instance segmentation on the repository's MMDetection 2.x stack: choosing COCO, LVIS, OpenImages, VOC, or CrowdHuman configs; building train/test/demo commands; diagnosing custom MMDetection registry issues; or planning SAM-prompted masks from detector boxes.
references/config-catalog.md; keep the dataset, detector head, backbone size, checkpoint, and evaluation metric aligned.scripts/build_detection_command.py instead of copying source launch snippets by hand. The helper prints commands only and never runs training, inference, downloads, or CUDA builds.references/workflows.md for environment, data, output, distributed, Slurm, and custom-plugin requirements.references/sam-integration.md before choosing a detector config or SAM checkpoint.references/troubleshooting.md first.mmcv_custom and mmdet_custom before model or dataset construction, and InternImage backbones import the local ops_dcnv3 package.# List distilled detection config keys.
python scripts/build_detection_command.py --list-configs
# Build a one-GPU COCO Mask R-CNN evaluation template.
python scripts/build_detection_command.py test \
--repo-root <INTERNIMAGE_REPO> \
--config-key coco/mask_rcnn_internimage_t_fpn_1x_coco \
--checkpoint checkpoints/mask_rcnn_internimage_t_fpn_1x_coco.pth \
--eval bbox segm
# Build a distributed DINO evaluation template.
python scripts/build_detection_command.py dist-test \
--repo-root <INTERNIMAGE_REPO> \
--config-key coco/dino_4scale_internimage_t_1x_coco_layer_wise_lr \
--checkpoint checkpoints/dino_4scale_internimage_t_1x_coco.pth \
--gpus 8 --eval bbox
# Build a single-image visualization template.
python scripts/build_detection_command.py image-demo \
--repo-root <INTERNIMAGE_REPO> \
--image images/example.jpg \
--config-key coco/mask_rcnn_internimage_t_fpn_1x_coco \
--checkpoint checkpoints/mask_rcnn_internimage_t_fpn_1x_coco.pth \
--device cuda:0 --palette coco --out demo
# Build a SAM-prompted mask-evaluation template.
python scripts/build_detection_command.py sam \
--repo-root <INTERNIMAGE_REPO> \
--config-key coco/mask_rcnn_internimage_t_fpn_1x_coco \
--checkpoint checkpoints/mask_rcnn_internimage_t_fpn_1x_coco.pth \
--sam-checkpoint checkpoints/sam_vit_b.pth \
--sam-type vit_b --eval segm --out sam_results.pkl
references/workflows.md - train/test/demo/distributed/Slurm workflows, output semantics, custom plugin registration, and export routing.references/config-catalog.md - distilled model/config families, dataset roots, metric choices, and checkpoint compatibility notes.references/sam-integration.md - detector plus Segment Anything route, requirements, command shape, and limitations.references/troubleshooting.md - detection-specific failure modes and fixes.scripts/build_detection_command.py - standalone dry-run command builder for train, dist-train, test, dist-test, image-demo, and sam modes.