/ti-edgeai-skills:ti-edgeai-devfrom ti-edgeai-skills
Texas Instruments Edge AI SDK development for Jacinto 7 / AM6xA processors with a C7x DSP + MMA deep-learning accelerator (TDA4VM, AM68A, AM69A, AM67A, AM62A): TIDL model compilation with edgeai-tidl-tools, the on-board runtime (ONNX Runtime with the TIDL execution provider), edgeai-gst-apps configs and tiovx* GStreamer plugins, model folders and param.yaml, tools-to-SDK version matching, and troubleshooting. Use this skill whenever the user mentions TIDL, C7x, MMA, TDA4VM, J721E, AM68A, AM69A, AM67A, AM62A, edgeai-tidl-tools, edgeai-gst-apps, /opt/model_zoo, tiovxmultiscaler, "TI edge NPU/accelerator", or asks how to run, deploy, debug or speed up a neural network on a TI Jacinto/Sitara board - even if they never say "skill". Start here, then hand off to ti-edgeai-import-model, ti-edgeai-generate-config, ti-edgeai-profile-pipeline or ti-edgeai-train-model.
Ships in ti-edgeai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
When this skill is active, read the relevant reference document before answering or generating commands. Option names, SoC keys and version pairings are exact; the references hold them. Do not rely on memory.
| Where | Component | Role |
|---|---|---|
| PC (x86, Docker) | edgeai-tidl-tools | TIDL compile + int8 calibration, host emulation, accuracy checks |
| Board | Edge AI SDK Linux image | kernel, C7x firmware, TI GStreamer plugins, /opt/model_zoo |
| Board | edgeai-gst-apps (apps_python, optiflow, C++) | config-driven camera/video -> inference -> display/stream apps |
| Board | ONNX Runtime + TIDL execution provider (TFLite, TVM also exist) | runs the compiled model on the C7x/MMA; unsupported operators fall back to ARM |
Models are compiled offline on the PC into TIDL artifacts, then run on the board. Use a tools release that TI's compatibility table lists for the board's SDK (usually the tag of the same release line; some releases need a firmware patch on the board).
PC: ONNX --(TIDL compile + int8 calibration, tools release compatible with the board SDK)--> artifacts/ --> package --> /opt/model_zoo/<model>/
Board: Source -> [Decode] -> Scaler -> DL preprocess -> Inference (ONNX RT + TIDL on C7x) -> Post-process -> Overlay -> Sink
| Stage | Element(s) | Notes |
|---|---|---|
| Source | v4l2src, filesrc, RTSP | camera / file / stream |
| Decode | v4l2h264dec, v4l2h265dec | hardware decoder |
| Scaler | tiovxmultiscaler | plain resize, no padding; no odd sizes |
| DL preprocess | tiovxdlpreproc | writes the model's input tensor from param.yaml |
| Inference | ONNX Runtime + TIDL (Python app) | not a GStreamer element in the Python app |
| Post-process / overlay | app code, tiovxmosaic | boxes, labels, mosaic of several flows |
| Sink | kmssink (display), jpegenc/v4l2h264enc (file), RTSP/UDP |
Same SDK, different names and options: references/platforms.md is the lookup table (tools SOC, gst-apps SOC, quantization,
--target-device). Identify the SoC from the board before choosing values.
env | grep -i -E "EDGEAI|SDK"),
look up the SoC's column of edgeai-tidl-tools docs/version_compatibility_table.md (references/sdk-versions.md), and prefer
the same release line. TI also lists older-SDK compatibility for some tags, but those rows need a firmware update on the target.
Check compiled artifacts with ti-edgeai-import-model/scripts/check_artifacts_version.py: an incompatible artifact compiles
fine and only fails on the board (TIVX_CMD_NODE_CREATE failed).app_edgeai.py (export SOC=<key>, references/platforms.md). Without it the
app silently builds an ARM-only pipeline (plain videoscale, no tiovx*): much slower and different preprocessing.tiovxmultiscaler squashes the frame to the model input size. Export the model
near the camera aspect (e.g. 640x352 for 16:9) and train/calibrate with the same plain resize, otherwise boxes are stretched.resize/crop in param.yaml are [height, width]. The app reverses them; the wrong order shows as
Got invalid dimensions for input.references/platforms.md). Default int8 PTQ costs a few AP points on detectors; mixed precision or QAT are the levers.onnxsim before compiling; otherwise the importer reports
Unknown input dimension, not supported by TIDL for every layer.object_detection:meta_arch_type + a prototxt): decode + NMS run on the C7x and
the model returns dets/labels like TI's zoo models.Bus error; run with --shm-size=4g.edgeai-init.service) and the app run as a systemd unit, because background
children of an ssh session are killed at logout. Stopping the GUI is a board-state change: get authorization first, record the
original state, restore it afterwards (ti-edgeai-generate-config, references/board-and-services.md).Subgraph Compiled Successfully, board log
Offloaded Nodes - N, Total Nodes - N, no VX_ZONE_ERROR. State exactly which of these you saw./opt/model_zoo is fine, but never overwrite or delete an existing one (deploy_to_board.sh refuses without REPLACE=1).| Path | What |
|---|---|
/opt/edgeai-gst-apps/apps_python/app_edgeai.py | Python app (configs in ../configs/*.yaml) |
/opt/edgeai-gst-apps/optiflow/ | OpTIFlow: pure-GStreamer variant (no app code) |
/opt/edgeai-gst-apps/configs/{app_config_template,gst_plugins_map}.yaml | full option list; SoC -> plugin map |
/opt/model_zoo/<model>/{model,artifacts,param.yaml,dataset.yaml} | deployable models |
/opt/edgeai-test-data/{images,videos,output} | sample inputs / default output dir |
/opt/vx_app_arm_remote_log.out | C7x/MCU remote log reader (/opt/vision_apps/vision_apps_init.sh) |
k3conf, /opt/edgeai-gst-apps/scripts/{perf_stats,gst_tracers} | clocks, load, per-element latency |
IMPORTANT: read the one that matches the task.
| File | Use when |
|---|---|
| references/platforms.md | choosing SoC-dependent values: tools SOC, gst SOC, quantization, target device |
| references/sdk-versions.md | choosing/verifying the tools tag, firmware patch notes, version stamp |
| references/board-and-services.md | board access, services, display, cameras, logs |
| references/gst-apps-and-plugins.md | app config schema, pipeline anatomy, tiovx plugins, model folder contract |
| references/tidl-ops-and-limits.md | which ONNX ops run on C7x, meta-architectures, quantization options |
| references/troubleshooting.md | longer symptom -> cause -> fix list, debug-level recipes |
| references/sources.md | TI documentation links, and what has been run vs only read |
| Symptom | Cause -> fix |
|---|---|
TIVX_CMD_NODE_CREATE failed ... Create state function failed | artifact/firmware version mismatch -> rebuild with the matching tools tag |
Got invalid dimensions for input: images ... Expected: 352 | param.yaml resize/crop order -> [H, W] |
SOC env var not specified. Defaulting target to arm | forgot export SOC=<key> |
Flow output resolution can not be greater than input resolution | config output size > input size |
setupterm: could not find terminal / cbreak() returned ERR | the status screen needs a tty: TERM=xterm, or script/systemd-run |
Compile: Unknown input dimension | run onnxsim / shape inference first |
Compile: Bus error, libcgraph.so.6 missing | --shm-size=4g, install graphviz in the image |
No /dev/video* camera after boot, usbN-portM: Cannot enable | USB hub failed at boot: power-cycle with the camera attached |
| Boxes stretched/offset, no errors | ARM-only pipeline (no SOC) or letterbox-trained model on a squashing pipeline |
More in references/troubleshooting.md.
agents/openai.yaml (opens in a new tab)evals/evals.json (opens in a new tab)references/board-and-services.md (opens in a new tab)references/gst-apps-and-plugins.md (opens in a new tab)references/platforms.md (opens in a new tab)references/sdk-versions.md (opens in a new tab)references/sources.md (opens in a new tab)references/tidl-ops-and-limits.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/ti-edgeai-generate-configBuild, validate and run edgeai-gst-apps YAML configs (inputs, models, outputs, flows) on TI Edge AI boards with a C7x/MMA accelerator (TDA4VM, AM68A, AM69A, AM67A, AM62A): video file, image sequence, USB webcam, CSI camera, RTSP or test-pattern input; one or several models; display with FPS overlay, saved video/images, network stream or fakesink; mosaic layouts. Use this skill whenever the user wants to "run my model on the TI board", show live results on a display, use a webcam or camera with the TI demo app, record annotated video, stream detections, write an app_config / edgeai-gst-apps yaml, or asks how the TI GStreamer pipeline (tiovxmultiscaler, tiovxdlpreproc, kmssink) is assembled - even if they never say "config".
/ti-edgeai-import-modelGet a trained neural network that exports to a static-shape ONNX (a classifier, a segmentation model, or a detector with a TIDL meta-architecture such as YOLOX/SSD/YOLOv5-style) running on a TI Edge AI board's C7x/MMA accelerator (TDA4VM, AM68A, AM69A, AM67A, AM62A): preflight the ONNX, fold input normalisation, compile and int8-calibrate with edgeai-tidl-tools in Docker (tools tag matched to the board SDK), verify offload and accuracy in host emulation, check board-vs-host outputs, package model/ artifacts/ param.yaml dataset.yaml, deploy to /opt/model_zoo and smoke-test with edgeai-gst-apps. Use this skill whenever the user wants to deploy, convert, compile, quantize, port or "put my model on" a TI Jacinto/AM6xA board, mentions TIDL compilation, artifacts, tidl_net.bin, meta_arch_type, a prototxt, calibration images, int8 accuracy loss on the TI device, or asks why a compiled model fails on the board - for any architecture within those contracts, and even if they only say "deploy to the TI device".
/ti-edgeai-profile-pipelineMeasure and improve inference speed on TI Edge AI boards with a C7x/MMA accelerator (TDA4VM, AM68A, AM69A, AM67A, AM62A): model-only latency, per-layer C7x cycle hotspots, per-element GStreamer latency and FPS of the edgeai-gst-apps pipeline, system load, and the levers that trade accuracy for speed (input size, 16-bit layers, frame rate, output size). Use this skill whenever the user asks how fast a model runs on the TI board, wants FPS, latency, "why is it slow", per-layer timings, which stage is the bottleneck, whether the pipeline can keep 30 fps, or how much a precision/size change costs - even if they only say "benchmark it on the TI device".
/ti-edgeai-train-modelPlan and run training/fine-tuning so a vision model (detector, classifier, segmenter) deploys well on TI Edge AI processors with a C7x/MMA accelerator (TDA4VM, AM68A, AM69A, AM67A, AM62A): pick a TIDL-friendly architecture and input size, choose TI's toolchain (edgeai-modelmaker, edgeai-yolox, edgeai-mmdetection, edgeai-torchvision, plain PyTorch), build datasets and leakage-safe splits, train with quantization-friendly settings, and evaluate with the same preprocessing the board uses before handing the checkpoint to ti-edgeai-import-model. Use this skill whenever the user wants to train, fine-tune, label, split or evaluate a model "for the TI board / edge NPU / C7x", asks which architecture or input size to use, why their detector scores near zero, how to make a model quantization-friendly, or how to prepare labels so the model is learnable - even before any deployment question comes up.
npx claudepluginhub saeedahmadicp/ti-edgeai-skills --plugin ti-edgeai-skills