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
inferenceRun DAMO-YOLO image, video, and camera inference with Torch, ONNX, or TensorRT engines.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is to run or troubleshoot DAMO-YOLO demo inference on images, videos, or a live camera, or when the user needs to choose between Torch, ONNX, and TensorRT runtime engines.
.pth/.pt, .onnx, or .trt inference and explaining required optional runtimes.--device, --infer_size, --conf, --end2end, output/visualization behavior, and class labels.Replace the config, engine, and media paths with user-owned files. Use the resolved path to the bundled scripts/damo_yolo_safe_demo.py helper. Keep the config matched to the engine checkpoint/export; if the config reads relative TinyNAS structure files, run from the directory that contains those config-relative assets or make paths absolute in the config.
# Torch checkpoint on an image; falls back to CPU if CUDA is unavailable.
python sub-skills/inference/scripts/damo_yolo_safe_demo.py image \
-f /path/to/damoyolo_config.py \
--engine /path/to/damoyolo_checkpoint.pth \
--path /path/to/example.jpg \
--infer-size 640 640 --device cuda --conf 0.6 --output-dir demo
# ONNX engine on a video; requires onnxruntime.
python sub-skills/inference/scripts/damo_yolo_safe_demo.py video \
-f /path/to/damoyolo_config.py \
--engine /path/to/damoyolo.onnx \
--path /path/to/input.mp4 \
--infer-size 640 640 --device cuda --conf 0.6 --output-dir demo
# TensorRT engine from a camera; requires TensorRT + CUDA Python and usually CUDA.
python sub-skills/inference/scripts/damo_yolo_safe_demo.py camera \
-f /path/to/damoyolo_config.py \
--engine /path/to/damoyolo_end2end_fp16_bs1.trt \
--camid 0 --infer-size 640 640 --device cuda --conf 0.6 --end2end --output-dir demo
--conf is the visualization/display threshold. NMS thresholds come from the config (model.head.nms_conf_thre, model.head.nms_iou_thre).--infer_size H W is the resize/pad target used by Torch and TensorRT engines. ONNX engines may derive the target from the ONNX input shape.--end2end is only for TensorRT engines exported with NMS included; using it on the wrong .trt layout changes the expected output tensors.--save_result saves visualizations by default. The bundled helper also supports --no-save-result and only opens GUI windows when --show-window is explicit.