writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
yolov7-d2Operate YOLOv7-d2, a Detectron2-based repository for YOLO-family, SparseInst, DETR-family training, inference, evaluation, and ONNX deployment workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when the task is about the yolov7_d2 / yolov7-d2 package or about a Detectron2-style YOLOv7-d2 checkout: choosing configs, training object detectors or instance segmenters, running demos/evaluation, exporting models, converting DETR checkpoints, or debugging this repository's dependency/config/runtime issues.
This skill is self-contained operating guidance distilled from the repository. It does not assume the construction checkout is available. When a task needs runnable project code, use the user's own YOLOv7-d2 checkout or installed package plus the bundled helper scripts and references here.
yolov7_d2, yolov7, Detectron2 configs from this repo, or repo-specific scripts such as train_det.py, demo.py, export.py, or DETR converters.yolov7, injects add_yolo_config, and optionally merges a user config.YOLOv7-d2 is built on Detectron2 and PyTorch. The repository metadata is minimal, so users usually need to install a compatible PyTorch/Detectron2 stack first, then install yolov7_d2 and the runtime packages used by their workflow.
Minimum import/config inspection typically needs:
python -m pip install torch torchvision
python -m pip install 'detectron2' # use the Detectron2 install command matching the user's torch/CUDA stack
python -m pip install yolov7-d2 timm nbnb omegaconf pycocotools scipy alfred-py wandb
python - <<'PY'
from detectron2.config import get_cfg
from yolov7.config import add_yolo_config
cfg = get_cfg(); add_yolo_config(cfg)
print(cfg.MODEL.YOLO.CLASSES, cfg.SOLVER.OPTIMIZER, cfg.MODEL.DETR.NUM_OBJECT_QUERIES)
PY
Use CUDA only when the user needs real GPU training/inference/export. CPU is enough for config inspection, command planning, and most preflight checks; it is not a substitute for GPU throughput, TensorRT, or long training validation.