[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7964SKZZJ2K2KZPPQ1FQQD5":3,"skill-same:01M7964SKZZJ2K2KZPPQ1FQQD5":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":45},"01M7964SKZZJ2K2KZPPQ1FQQD5","detection-inference",null,"Run and troubleshoot the repository's TensorRT YOLOv3\u002FYOLOv4 and UFF SSD object-detection demos across files, streams, cameras, asynchronous pipelines, visualization, and MJPEG output.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"MIT","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Ftensorrt-demos\u002Fsub-skills\u002Fdetection-inference\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"detection-inference\"\ndescription: \"Run and troubleshoot the repository's TensorRT YOLOv3\u002FYOLOv4 and\n  UFF SSD object-detection demos across files, streams, cameras, asynchronous\n  pipelines, visualization, and MJPEG output.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# TensorRT detection inference\n\nUse this skill when the task is to run, adapt, or diagnose the repository's\nYOLOv3\u002FYOLOv4 or UFF SSD inference examples. It covers the inference and\npresentation path only; engine conversion, model downloads, training, and mAP\nevaluation are outside this skill. Keep experiment logs and review artifacts\noutside this runtime skill directory.\n\n## Applicability and hard gates\n\n- **YOLO:** `TrtYOLO` consumes a serialized engine named by the model under the\n  runtime's `yolo\u002F` artifact directory and loads the `yolo_layer` TensorRT\n  plugin before constructing CUDA buffers. The model string describes a\n  YOLOv3\u002FYOLOv4 family and input size, for example `yolov4-416` or\n  `yolov3-tiny-288`; custom names are possible if their engine and class count\n  match. The plugin is not bundled here and must be built\u002Fprovided by the\n  runtime owner.\n- **SSD:** `TrtSSD` consumes a serialized UFF-derived engine under the runtime's\n  `ssd\u002F` artifact directory. The demo's supported model names are\n  `ssd_mobilenet_v1_coco`, `ssd_mobilenet_v1_egohands`,\n  `ssd_mobilenet_v2_coco`, `ssd_mobilenet_v2_egohands`,\n  `ssd_inception_v2_coco`, and `ssdlite_mobilenet_v2_coco`.\n- Both paths require a working TensorRT Python API, CUDA\u002FPyCUDA context, and\n  OpenCV. An input parser or this skill's argument checker cannot prove that an\n  engine, plugin, camera, decoder, or CUDA device is usable.\n- The evidence is historical repository behavior. The README reports YOLO\n  inference with the custom plugin from TensorRT 6+ and UFF SSD with the\n  TensorRT Python API from TensorRT 5.x+; it also reports tested Jetson Nano,\n  TX2, Xavier NX, and selected x86 NVIDIA systems. Do not infer modern-stack\n  compatibility from those claims.\n- Stop and preserve the exact error when a modern TensorRT\u002FPyCUDA\u002FOpenCV stack\n  cannot deserialize a legacy engine or load its plugin. Do not copy a binary,\n  installer, engine, or shared library into this skill.\n\n## Fast routing\n\n1. Identify the detector and its engine artifact before choosing an input.\n2. Validate exactly one input mode with the bundled dependency-free checker:\n\n   ```bash\n   python3 scripts\u002Fvalidate-input-mode.py --detector yolo \\\n     --model yolov4-416 --image \u002Fpath\u002Fto\u002Fimage.jpg\n   ```\n\n   The checker validates only command arguments; it does not read the image,\n   open a device, import TensorRT, or check an engine\u002Fplugin.\n3. Run the matching native demo from its normal demo runtime environment. The\n   native entrypoints import CUDA\u002FTensorRT before argparse help can execute, so\n   `--help` is a dependency smoke check rather than a pure parser check.\n4. If the display is not needed, use a video-writer or MJPEG variant rather\n   than removing inference code. Record detector, model, input mode, input\n   dimensions, confidence threshold, letterbox mode, and TensorRT version.\n\nSee [references\u002Fworkflows.md](references\u002Fworkflows.md) for complete recipes,\n[references\u002Fapi-reference.md](references\u002Fapi-reference.md) for contracts, and\n[references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for failure\nclassification.\n\n## Native entrypoints and detector contracts\n\n### YOLOv3\u002FYOLOv4 — `TrtYOLO`\n\n- The interactive entrypoint accepts `--model` (required), `--category_num`\n  (default 80), `--conf_thresh` (default 0.3), and `--letter_box`.\n- `TrtYOLO.detect(img, conf_th=0.3, letter_box=None)` accepts a BGR `uint8`\n  image shaped `(height, width, 3)` and returns `(boxes, scores, classes)`.\n  Boxes are integer `(x1, y1, x2, y2)` corners clipped to the original image;\n  scores are confidence products; classes are numeric class IDs.\n- Preprocessing resizes to the engine input, converts BGR to RGB, transposes\n  to CHW, and scales to `[0, 1]`. Letterbox mode preserves aspect ratio with\n  gray padding and reverses the offset during postprocessing; use it only when\n  the engine\u002Ftask expects that behavior.\n- Postprocessing concatenates the plugin outputs, filters on\n  `box_confidence * class_probability >= conf_th`, applies per-class NMS at\n  IoU 0.5, maps coordinates back to the source image, and clips them. A\n  non-positive category count is rejected by the interactive entrypoint.\n- The code selects `execute_async` for TensorRT versions before 7 and\n  `execute_async_v2` for TensorRT 7+, while buffer allocation distinguishes\n  implicit and explicit batch dimensions. This is a compatibility clue, not a\n  guarantee for current TensorRT APIs.\n\n### UFF SSD — `TrtSSD`\n\n- `trt_ssd.py` selects one of the six model names above and uses a fixed\n  `(300, 300)` input. Its interactive loop uses confidence `0.3`; the class API\n  exposes `detect(img, conf_th=0.3)` for another threshold.\n- SSD preprocessing resizes BGR to 300x300, converts to RGB, changes HWC to\n  CHW, scales to `[-1, 1]`, and runs the serialized UFF\u002FTensorRT engine.\n- SSD postprocessing reads seven-value detection records, ignores records\n  below `conf_th`, scales normalized `(xmin, ymin, xmax, ymax)` to the original\n  image, and returns corner boxes, confidences, and integer classes.\n- The loader registers TensorRT plugins and, for TensorRT versions before 7,\n  loads the legacy FlattenConcat shared library. A warning such as\n  `Could not register plugin creator: FlattenConcat_TRT` is a known historical\n  TensorRT 6-era observation in the README; treat it as a compatibility\n  signal and verify actual deserialization\u002Finference rather than suppressing\n  it.\n\n## Input modes and frame ownership\n\nThe shared camera layer supports these modes. Pass one, not several; its\nimplementation resolves them in this order: image, video, RTSP, USB, custom\nGStreamer, onboard camera.\n\n| Mode | Native arguments | Behavior and important options |\n|---|---|---|\n| Image | `--image FILE` | Reads one image and repeats a copy on every `read()`. `--do_resize` resizes it to `--width`\u002F`--height`. |\n| Video | `--video FILE` | Reads sequentially with OpenCV. `--video_looping` reopens it at EOF; `--do_resize` resizes frames. |\n| RTSP | `--rtsp URI` | Builds an H.264 GStreamer pipeline, with `--rtsp_latency` in milliseconds (default 200). Requires an available `omxh264dec` or `avdec_h264`. |\n| USB | `--usb N` | Opens `\u002Fdev\u002FvideoN`; the historical default uses a GStreamer `v4l2src` pipeline at the requested `--width`\u002F`--height`. |\n| GStreamer | `--gstr STRING` | Opens a caller-supplied GStreamer string and formats `{width}` and `{height}` placeholders. |\n| Onboard | `--onboard N` | Opens the Jetson onboard camera via the available legacy `nvcamerasrc` or `nvarguscamerasrc` pipeline; the selector value is not used to choose a sensor in this implementation. |\n\n`--width` and `--height` default to 640x480. For RTSP, USB, GStreamer, and\nonboard sources they become pipeline dimensions; for image\u002Fvideo they affect\nresizing only when `--do_resize` is set. Live sources use a background grab\nthread. `Camera.read()` returns a shared live frame by default, so detection\ncode that draws in place can feed its overlay back into the next inference.\nUse `--copy_frame` for live sources when inference\u002Fdisplay can outpace frame\narrival or when the frame is modified in place. Image reads are already copied.\n\n## Async pipeline and CUDA context\n\n`trt_ssd_async.py` is a producer\u002Fconsumer pipeline, not a generic async API:\n\n1. The main thread opens `Camera`, initializes the PyCUDA driver, and creates a\n   condition variable.\n2. A child `TrtThread` creates its CUDA context **inside the child thread**,\n   constructs `TrtSSD`, reads frames, calls `detect`, stores the latest image\n   and result tuple in shared variables, and notifies the main thread.\n3. The main thread waits up to 20 seconds, draws boxes\u002FFPS, displays the frame,\n   and stops\u002Fjoin the child on exit.\n\nPreserve this context ownership rule when adapting the pipeline. A timeout is\nan actionable capture\u002Finference\u002FCUDA-thread failure, not an empty detection.\nThe shared-slot design favors the newest result and can drop intermediate\nframes; it does not provide ordered delivery or backpressure. The YOLO\ninteractive and MJPEG examples are synchronous loops. `trt_yolo_cv.py` is a\nsynchronous file-to-file writer and uses a fixed 0.3 confidence threshold.\n\n## Visualization and network output\n\n`BBoxVisualization.draw_bboxes(img, boxes, confs, clss)` draws each corner box\nin a deterministic per-class color and labels it with the class name and\nconfidence to two decimal places. `show_fps` overlays an exponentially\nsmoothed FPS value in the interactive loops. `open_window` creates a resizable\nOpenCV window; ESC exits and F toggles fullscreen. Drawing mutates the image\nin place, which is why `--copy_frame` matters for live camera sources.\n\n`trt_yolo_mjpeg.py` uses the same YOLO detector and camera arguments, draws\nboxes\u002FFPS, and sends each frame to `MjpegServer` (default port 8080). The\nserver publishes multipart JPEG at `\u002Fmjpg` or `\u002F`, keeps a queue of at most two\nframes, and drops a frame when the queue is full. It is an unauthenticated\nHTTP stream: bind it only on a trusted interface\u002Fnetwork, choose a permitted\nport, and shut it down in `finally`. A disconnected client can produce a\nbroken-pipe path that the handler intentionally ignores.\n\n## Evidence basis\n\nThis operating contract is distilled from `README.md`, the `trt_yolo.py`,\n`trt_yolo_cv.py`, `trt_yolo_mjpeg.py`, `trt_ssd.py`, and `trt_ssd_async.py`\nentrypoints, and the implementation modules `utils\u002Fcamera.py`,\n`utils\u002Fdisplay.py`, `utils\u002Fvisualization.py`, `utils\u002Fyolo_with_plugins.py`,\n`utils\u002Fssd.py`, and `utils\u002Fmjpeg.py`. The README's Jetson\u002FTensorRT version\nnotes and benchmark values are historical observations; source behavior and\nlimits take precedence over undocumented assumptions. No source checkout path,\nengine, plugin, model, binary, or installer is part of this skill.\n\n## Verification and limits\n\nUse the bundled checker first, then run native help candidates and record\nwhether the failure is parser, dependency, backend, plugin, artifact, or input:\n\n```bash\npython3 scripts\u002Fvalidate-input-mode.py --help\npython3 scripts\u002Fvalidate-input-mode.py --detector yolo --model yolov4-416 \\\n  --image \u002Fpath\u002Fto\u002Fimage.jpg\npython3 scripts\u002Fvalidate-input-mode.py --detector ssd \\\n  --model ssd_mobilenet_v1_coco --video \u002Fpath\u002Fto\u002Fvideo.mp4\n```\n\nThe planned native candidates are `trt_yolo.py --help` and `trt_ssd.py --help`.\nOn a host without PyCUDA, they fail before argparse with `ModuleNotFoundError`;\nthat is an environment gate, not evidence that the flags are invalid. On a\nhost with imports but without the legacy plugin, YOLO can fail while importing\n`yolo_with_plugins.py`. The observed repository limits include TensorRT 6+\nfor the YOLO plugin, TensorRT 5.x+ and legacy UFF\u002FTensorFlow-era tooling for\nSSD, and a README-reported TensorRT 6 FlattenConcat plugin registration issue.\nModern TensorRT, CUDA, Python, GStreamer, or OpenCV behavior must be verified\non the target rather than extrapolated from historical JetPack results.\n","# TensorRT detection inference\n\nUse this skill when the task is to run, adapt, or diagnose the repository's\nYOLOv3\u002FYOLOv4 or UFF SSD inference examples. It covers the inference and\npresentation path only; engine conversion, model downloads, training, and mAP\nevaluation are outside this skill. Keep experiment logs and review artifacts\noutside this runtime skill directory.\n\n## Applicability and hard gates\n\n- **YOLO:** `TrtYOLO` consumes a serialized engine named by the model under the\n  runtime's `yolo\u002F` artifact directory and loads the `yolo_layer` TensorRT\n  plugin before constructing CUDA buffers. The model string describes a\n  YOLOv3\u002FYOLOv4 family and input size, for example `yolov4-416` or\n  `yolov3-tiny-288`; custom names are possible if their engine and class count\n  match. The plugin is not bundled here and must be built\u002Fprovided by the\n  runtime owner.\n- **SSD:** `TrtSSD` consumes a serialized UFF-derived engine under the runtime's\n  `ssd\u002F` artifact directory. The demo's supported model names are\n  `ssd_mobilenet_v1_coco`, `ssd_mobilenet_v1_egohands`,\n  `ssd_mobilenet_v2_coco`, `ssd_mobilenet_v2_egohands`,\n  `ssd_inception_v2_coco`, and `ssdlite_mobilenet_v2_coco`.\n- Both paths require a working TensorRT Python API, CUDA\u002FPyCUDA context, and\n  OpenCV. An input parser or this skill's argument checker cannot prove that an\n  engine, plugin, camera, decoder, or CUDA device is usable.\n- The evidence is historical repository behavior. The README reports YOLO\n  inference with the custom plugin from TensorRT 6+ and UFF SSD with the\n  TensorRT Python API from TensorRT 5.x+; it also reports tested Jetson Nano,\n  TX2, Xavier NX, and selected x86 NVIDIA systems. Do not infer modern-stack\n  compatibility from those claims.\n- Stop and preserve the exact error when a modern TensorRT\u002FPyCUDA\u002FOpenCV stack\n  cannot deserialize a legacy engine or load its plugin. Do not copy a binary,\n  installer, engine, or shared library into this skill.\n\n## Fast routing\n\n1. Identify the detector and its engine artifact before choosing an input.\n2. Validate exactly one input mode with the bundled dependency-free checker:\n\n   ```bash\n   python3 scripts\u002Fvalidate-input-mode.py --detector yolo \\\n     --model yolov4-416 --image \u002Fpath\u002Fto\u002Fimage.jpg\n   ```\n\n   The checker validates only command arguments; it does not read the image,\n   open a device, import TensorRT, or check an engine\u002Fplugin.\n3. Run the matching native demo from its normal demo runtime environment. The\n   native entrypoints import CUDA\u002FTensorRT before argparse help can execute, so\n   `--help` is a dependency smoke check rather than a pure parser check.\n4. If the display is not needed, use a video-writer or MJPEG variant rather\n   than removing inference code. Record detector, model, input mode, input\n   dimensions, confidence threshold, letterbox mode, and TensorRT version.\n\nSee [references\u002Fworkflows.md](references\u002Fworkflows.md) for complete recipes,\n[references\u002Fapi-reference.md](references\u002Fapi-reference.md) for contracts, and\n[references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for failure\nclassification.\n\n## Native entrypoints and detector contracts\n\n### YOLOv3\u002FYOLOv4 — `TrtYOLO`\n\n- The interactive entrypoint accepts `--model` (required), `--category_num`\n  (default 80), `--conf_thresh` (default 0.3), and `--letter_box`.\n- `TrtYOLO.detect(img, conf_th=0.3, letter_box=None)` accepts a BGR `uint8`\n  image shaped `(height, width, 3)` and returns `(boxes, scores, classes)`.\n  Boxes are integer `(x1, y1, x2, y2)` corners clipped to the original image;\n  scores are confidence products; classes are numeric class IDs.\n- Preprocessing resizes to the engine input, converts BGR to RGB, transposes\n  to CHW, and scales to `[0, 1]`. Letterbox mode preserves aspect ratio with\n  gray padding and reverses the offset during postprocessing; use it only when\n  the engine\u002Ftask expects that behavior.\n- Postprocessing concatenates the plugin outputs, filters on\n  `box_confidence * class_probability >= conf_th`, applies per-class NMS at\n  IoU 0.5, maps coordinates back to the source image, and clips them. A\n  non-positive category count is rejected by the interactive entrypoint.\n- The code selects `execute_async` for TensorRT versions before 7 and\n  `execute_async_v2` for TensorRT 7+, while buffer allocation distinguishes\n  implicit and explicit batch dimensions. This is a compatibility clue, not a\n  guarantee for current TensorRT APIs.\n\n### UFF SSD — `TrtSSD`\n\n- `trt_ssd.py` selects one of the six model names above and uses a fixed\n  `(300, 300)` input. Its interactive loop uses confidence `0.3`; the class API\n  exposes `detect(img, conf_th=0.3)` for another threshold.\n- SSD preprocessing resizes BGR to 300x300, converts to RGB, changes HWC to\n  CHW, scales to `[-1, 1]`, and runs the serialized UFF\u002FTensorRT engine.\n- SSD postprocessing reads seven-value detection records, ignores records\n  below `conf_th`, scales normalized `(xmin, ymin, xmax, ymax)` to the original\n  image, and returns corner boxes, confidences, and integer classes.\n- The loader registers TensorRT plugins and, for TensorRT versions before 7,\n  loads the legacy FlattenConcat shared library. A warning such as\n  `Could not register plugin creator: FlattenConcat_TRT` is a known historical\n  TensorRT 6-era observation in the README; treat it as a compatibility\n  signal and verify actual deserialization\u002Finference rather than suppressing\n  it.\n\n## Input modes and frame ownership\n\nThe shared camera layer supports these modes. Pass one, not several; its\nimplementation resolves them in this order: image, video, RTSP, USB, custom\nGStreamer, onboard camera.\n\n| Mode | Native arguments | Behavior and important options |\n|---|---|---|\n| Image | `--image FILE` | Reads one image and repeats a copy on every `read()`. `--do_resize` resizes it to `--width`\u002F`--height`. |\n| Video | `--video FILE` | Reads sequentially with OpenCV. `--video_looping` reopens it at EOF; `--do_resize` resizes frames. |\n| RTSP | `--rtsp URI` | Builds an H.264 GStreamer pipeline, with `--rtsp_latency` in milliseconds (default 200). Requires an available `omxh264dec` or `avdec_h264`. |\n| USB | `--usb N` | Opens `\u002Fdev\u002FvideoN`; the historical default uses a GStreamer `v4l2src` pipeline at the requested `--width`\u002F`--height`. |\n| GStreamer | `--gstr STRING` | Opens a caller-supplied GStreamer string and formats `{width}` and `{height}` placeholders. |\n| Onboard | `--onboard N` | Opens the Jetson onboard camera via the available legacy `nvcamerasrc` or `nvarguscamerasrc` pipeline; the selector value is not used to choose a sensor in this implementation. |\n\n`--width` and `--height` default to 640x480. For RTSP, USB, GStreamer, and\nonboard sources they become pipeline dimensions; for image\u002Fvideo they affect\nresizing only when `--do_resize` is set. Live sources use a background grab\nthread. `Camera.read()` returns a shared live frame by default, so detection\ncode that draws in place can feed its overlay back into the next inference.\nUse `--copy_frame` for live sources when inference\u002Fdisplay can outpace frame\narrival or when the frame is modified in place. Image reads are already copied.\n\n## Async pipeline and CUDA context\n\n`trt_ssd_async.py` is a producer\u002Fconsumer pipeline, not a generic async API:\n\n1. The main thread opens `Camera`, initializes the PyCUDA driver, and creates a\n   condition variable.\n2. A child `TrtThread` creates its CUDA context **inside the child thread**,\n   constructs `TrtSSD`, reads frames, calls `detect`, stores the latest image\n   and result tuple in shared variables, and notifies the main thread.\n3. The main thread waits up to 20 seconds, draws boxes\u002FFPS, displays the frame,\n   and stops\u002Fjoin the child on exit.\n\nPreserve this context ownership rule when adapting the pipeline. A timeout is\nan actionable capture\u002Finference\u002FCUDA-thread failure, not an empty detection.\nThe shared-slot design favors the newest result and can drop intermediate\nframes; it does not provide ordered delivery or backpressure. The YOLO\ninteractive and MJPEG examples are synchronous loops. `trt_yolo_cv.py` is a\nsynchronous file-to-file writer and uses a fixed 0.3 confidence threshold.\n\n## Visualization and network output\n\n`BBoxVisualization.draw_bboxes(img, boxes, confs, clss)` draws each corner box\nin a deterministic per-class color and labels it with the class name and\nconfidence to two decimal places. `show_fps` overlays an exponentially\nsmoothed FPS value in the interactive loops. `open_window` creates a resizable\nOpenCV window; ESC exits and F toggles fullscreen. Drawing mutates the image\nin place, which is why `--copy_frame` matters for live camera sources.\n\n`trt_yolo_mjpeg.py` uses the same YOLO detector and camera arguments, draws\nboxes\u002FFPS, and sends each frame to `MjpegServer` (default port 8080). The\nserver publishes multipart JPEG at `\u002Fmjpg` or `\u002F`, keeps a queue of at most two\nframes, and drops a frame when the queue is full. It is an unauthenticated\nHTTP stream: bind it only on a trusted interface\u002Fnetwork, choose a permitted\nport, and shut it down in `finally`. A disconnected client can produce a\nbroken-pipe path that the handler intentionally ignores.\n\n## Evidence basis\n\nThis operating contract is distilled from `README.md`, the `trt_yolo.py`,\n`trt_yolo_cv.py`, `trt_yolo_mjpeg.py`, `trt_ssd.py`, and `trt_ssd_async.py`\nentrypoints, and the implementation modules `utils\u002Fcamera.py`,\n`utils\u002Fdisplay.py`, `utils\u002Fvisualization.py`, `utils\u002Fyolo_with_plugins.py`,\n`utils\u002Fssd.py`, and `utils\u002Fmjpeg.py`. The README's Jetson\u002FTensorRT version\nnotes and benchmark values are historical observations; source behavior and\nlimits take precedence over undocumented assumptions. No source checkout path,\nengine, plugin, model, binary, or installer is part of this skill.\n\n## Verification and limits\n\nUse the bundled checker first, then run native help candidates and record\nwhether the failure is parser, dependency, backend, plugin, artifact, or input:\n\n```bash\npython3 scripts\u002Fvalidate-input-mode.py --help\npython3 scripts\u002Fvalidate-input-mode.py --detector yolo --model yolov4-416 \\\n  --image \u002Fpath\u002Fto\u002Fimage.jpg\npython3 scripts\u002Fvalidate-input-mode.py --detector ssd \\\n  --model ssd_mobilenet_v1_coco --video \u002Fpath\u002Fto\u002Fvideo.mp4\n```\n\nThe planned native candidates are `trt_yolo.py --help` and `trt_ssd.py --help`.\nOn a host without PyCUDA, they fail before argparse with `ModuleNotFoundError`;\nthat is an environment gate, not evidence that the flags are invalid. On a\nhost with imports but without the legacy plugin, YOLO can fail while importing\n`yolo_with_plugins.py`. The observed repository limits include TensorRT 6+\nfor the YOLO plugin, TensorRT 5.x+ and legacy UFF\u002FTensorFlow-era tooling for\nSSD, and a README-reported TensorRT 6 FlattenConcat plugin registration issue.\nModern TensorRT, CUDA, Python, GStreamer, or OpenCV behavior must be verified\non the target rather than extrapolated from historical JetPack results.\n",{"name":5,"license":14,"metadata":23,"description":7,"disable-model-invocation":25},{"disco-role":24},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Ftensorrt-demos\u002Fsub-skills\u002Fdetection-inference",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":25},[35,38,41],{"tool":36,"command":37},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill detection-inference",{"tool":39,"command":40},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill detection-inference",{"tool":42,"command":43},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill detection-inference","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Ftensorrt-demos\u002Fsub-skills\u002Fdetection-inference\u002FSKILL.md",[46,52,56,60],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fapi-reference.md","REFERENCE","参考文档",5740,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Ftensorrt-demos\u002Fsub-skills\u002Fdetection-inference\u002Freferences\u002Fapi-reference.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Ftroubleshooting.md",7141,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Ftensorrt-demos\u002Fsub-skills\u002Fdetection-inference\u002Freferences\u002Ftroubleshooting.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fworkflows.md",6653,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Ftensorrt-demos\u002Fsub-skills\u002Fdetection-inference\u002Freferences\u002Fworkflows.md",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fvalidate-input-mode.py","SCRIPT","脚本",4808,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Ftensorrt-demos\u002Fsub-skills\u002Fdetection-inference\u002Fscripts\u002Fvalidate-input-mode.py",[67,75,82,89,96,103],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","passnet-solve","END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","passnet-pattern-fusion","Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]