/ti-edgeai-skills:ti-edgeai-train-modelfrom ti-edgeai-skills
Plan 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.
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 references/model-design-for-tidl.md before choosing an architecture. Most deployment pain is
decided before training: architecture, activations, input size, resize policy and label quality. Then hand the checkpoint to
ti-edgeai-import-model. Platform facts: ti-edgeai-dev.
references/model-design-for-tidl.md.references/toolchains.md): prefer a TI-published "lite" model with a TI pretrained
checkpoint (ReLU, TIDL-supported ops): it deploys cleanly and fine-tunes fast. For YOLOX use TI-lite
(assets/exp_ti_lite_template.py, worked example references/yolox-ti-lite.md).references/dataset-prep.md): COCO json for detection, class folders for classification, index masks for
segmentation. Check label quality visually, not just by file validity, and keep the label type the user's task needs (do not turn
a segmentation task into detection, or the reverse, unless asked; if boxes must be derived from masks see
references/dataset-prep.md). Split by group (scene/recording/video), never by random frame.references/evaluation-protocol.md): same resize policy, channel order and score logic as the
board; validation for selection, a separate group-held-out test set for reporting; look at overlays.ti-edgeai-import-model/scripts/model_manifest.py init:
input HxW, channel order, resize policy, classes, thresholds, target SoC) -> ti-edgeai-import-model (Phase 1). If int8 loss is large the fix may be training-side (QAT, activations): references/toolchains.md.| Symptom | Check |
|---|---|
| Near-zero mAP, loss decreases | box size distribution at the training resolution: boxes a few pixels wide cannot be learned; revisit the labeling rule (merge fragments, minimum size) or raise input size |
| mAP fluctuates wildly epoch to epoch | high LR phase + small single-group validation set; wait for LR decay / no-aug epochs, select by smoothed metric, add validation groups |
| Great validation, poor test | validation shares scenes with training or was used for selection; split by group, report on a held-out group set |
| Good float, bad on board | resize/aspect mismatch between training and the no-padding pipeline; channel order; int8 loss (see import skill) |
| Boxes stretched on the board | trained with letterbox, deployed with plain resize (or the reverse) |
| File | Use when |
|---|---|
| references/model-design-for-tidl.md | operators, activations, input size and aspect for TIDL |
| references/toolchains.md | which TI/open-source training stack to use, QAT |
| references/dataset-prep.md | formats, label quality, group-wise splits |
| references/evaluation-protocol.md | validation vs test, deployment-matched evaluation |
| references/yolox-ti-lite.md | worked example: YOLOX-tiny TI-lite |
| references/lessons.md | general lessons from past training runs |
assets/exp_ti_lite_template.py: upstream-YOLOX experiment producing a TI-lite YOLOX-tiny (any class count, any input size via env vars).agents/openai.yaml (opens in a new tab)assets/exp_ti_lite_template.py (opens in a new tab)evals/evals.json (opens in a new tab)references/dataset-prep.md (opens in a new tab)references/evaluation-protocol.md (opens in a new tab)references/lessons.md (opens in a new tab)references/model-design-for-tidl.md (opens in a new tab)references/toolchains.md (opens in a new tab)references/yolox-ti-lite.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/ti-edgeai-devTexas 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.
/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".
npx claudepluginhub saeedahmadicp/ti-edgeai-skills --plugin ti-edgeai-skills