Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
deployment【部署与运维】Plan InternImage DCNv3, CUDA, TensorRT, and mmdeploy deployment workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about InternImage backend readiness, DCNv3 operator build diagnosis, ONNX/TensorRT export planning, mmdeploy custom operators, or CUDA/TensorRT compatibility across classification, detection, and segmentation.
Do not use this sub-skill for task-specific training, evaluation, model-family selection, dataset layout, or demo interpretation unless the blocker is deployment/backend related. Route classification model usage to the classification sub-skill, object/instance detection usage to the detection sub-skill, and semantic segmentation usage to the segmentation sub-skill.
Identify the workflow and export target:
classification-onnx: PyTorch classification checkpoint to ONNX.classification-trt: classification ONNX plus TensorRT engine and consistency check.detection-trt: MMDetection deployment through mmdeploy/TensorRT.segmentation-trt: MMSegmentation deployment through mmdeploy/TensorRT.Read references/environment-matrix.md for the minimum Python/CUDA/OpenMMLab/mmdeploy compatibility checklist.
Read references/tensorrt-and-dcnv3.md before any DCNv3 source build, prebuilt wheel choice, ONNX export, or TensorRT/mmdeploy plan.
Generate a safe dry-run command template with:
python sub-skills/deployment/scripts/build_export_command.py --help
python sub-skills/deployment/scripts/build_export_command.py detection-trt --model-name mask_rcnn_internimage_t_fpn_1x_coco
If anything fails or prerequisites are uncertain, use references/troubleshooting.md before recommending a build or export run.
mmdeploy::TRTDCNv3.<INTERNIMAGE_REPO>, <checkpoint.pth>, <MMDEPLOY_DIR>, <TENSORRT_DIR>, and <CUDNN_DIR> until the user provides concrete paths.references/tensorrt-and-dcnv3.md - DCNv3 operator surfaces, mmdeploy/TensorRT custom-op build sequence, source-script decisions, and export command semantics.references/environment-matrix.md - compatibility matrix for CPU guidance, CUDA runtime/toolkit, OpenMMLab pins, mmdeploy/TensorRT, and current verification limits.references/troubleshooting.md - failure-mode triage for missing nvcc, Cuda is not availabel, missing custom ops, import/version conflicts, ONNX/TensorRT errors, and export input mistakes.scripts/build_export_command.py - standalone dry-run command builder for classification ONNX, classification TensorRT, detection TensorRT, and segmentation TensorRT.