Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tao-run-deft-object-detection

БесплатноЗапускает вложенные скриптыНе проверен

Run the full DEFT smart-data-augmentation loop for NVIDIA TAO Grounding DINO object detection: zero-shot baseline inference, KPI analysis, per-class gap…

NVIDIAот NVIDIA★ 4 269 звёзд на GitHub

Об этом скилле

Skill: tao-run-deft-object-detection

Standalone install? If this session was not initialized by the TAO skill bank plugin, run the tao-setup skill first (host preflight, credentials, cross-skill discovery).

Execution Contract

Treat this as a disk-backed state machine, not as a prose recipe.

  1. Preserve every explicit user value. epoch 1 means train.num_epochs=1; a spec value or documented default applies only when the user did not supply that parameter. Show the source of every run parameter (user, spec, or default) in the Pre-Flight Summary.

  2. After the user approves the Summary, initialize deft_state.json once with scripts/init_deft_state.py. Never hand-author or reinitialize it on resume.

  3. Run every bundled or inline host-Python command through scripts/deft_python.sh. On startup, after context compaction, before every stage, and before any completion claim, run:

    <skill_root>/scripts/deft_python.sh \
      <skill_root>/scripts/audit_deft_run.py --results-dir "${RESULTS_DIR}"
    

    If it prints DEFT_RUN_STATUS=INVALID, stop and repair the listed disk inconsistency; do not launch another stage. Read the path printed as read_before_action before continuing.

  4. Invoke the mapped underlying skill after reading the DEFT overlay. Do not replace a missing or unread stage reference, or a failed skill call, with guessed shell commands, inline Python, a different output tree, or fabricated data.

  5. Commit every stage with scripts/commit_stage.py; it verifies artifacts, updates deft_state.json, appends exactly one ordered loop_log.jsonl event, and rolls back if its audit fails.

  6. Claim the loop complete only when this exits zero:

    <skill_root>/scripts/deft_python.sh \
      <skill_root>/scripts/audit_deft_run.py \
      --results-dir "${RESULTS_DIR}" --require-complete
    

Context Discipline

  • Load references just in time. Run the audit, read only its read_before_action file and the current stage's named section, then act. Never preload all references.
  • Redirect verbose train, inference, and Docker output to files. Inspect at most the final 40 lines or a one-line artifact check; never print a full spec, state file, or loop log into the conversation.
  • A Skill-tool call loads stage instructions; it does not start a background orchestrator. Continue the documented stage in the parent immediately after it returns.

When to Use This Skill

Use this skill when the user wants an agent to run the full smart-data-augmentation loop for a TAO Grounding DINO detection model: zero-shot baseline, gap analysis, mining, dataset growth, and retraining across N iterations.

  • "Run the DEFT OD loop"
  • "Run smart data augmentation for grounding dino"
  • "Mine more training data for my detection model and retrain"
  • "Improve detection mAP with gap analysis and unique-neighbor mining"

Also use it to prepare the source pool, which is a separate run that completes before the loop launches (see ## Two Invocations: Prep, Then Loop):

  • "Prep the source pool"
  • "Pseudo-label my unlabeled images for mining"
  • "Build the mining pool from these raw images"

Do not use this skill for a single standalone TAO training run, one-off inference, or gap analysis alone. Invoke the relevant leaf skill directly instead.

Scope: Grounding DINO + ODVG

This loop targets Grounding DINO with ODVG training annotations (tmm_odvg.jsonl + labelmap.json), matching the reference pipeline. dataset.train_data_sources is a list; each iteration appends one new ODVG source rather than rewriting a combined CSV. DINO and RT-DETR (COCO) are not supported by this workflow — use the leaf skills directly for those.

The loop does not train at baseline. It evaluates the supplied zero-shot / pretrained checkpoint as iteration 0 and only trains from iteration 1 onward, once mining has produced data to add.

Two Invocations: Prep, Then Loop

The source pool is prepared by its own run, before the loop launches. They are separate because a pool is prepped once and then serves many loop runs — coupling them would re-label and re-embed the same images on every launch.

Invocation Does Produces
"Prep the source pool" Co-DETR pseudo-labels raw pool images, folds to the target classes, converts KITTI→COCO→ODVG, verifies, embeds coco.json, odvg/, source_embeddings.parquet, pool_report.json
"Run the DEFT loop" baseline → iterations checkpoints, KPI, the mAP trend

Follow references/prep-source-pool.md for the first. The loop then takes those four paths as inputs; Pre-Flight validates them and init_deft_state.py pins them, so a run cannot reach mine with no corpus to search.

Launch Intake

Do not ask which platform to run on. This workflow supports one: every stage launches with docker run, and its compatibility line requires docker plus the nvidia-container-toolkit. The bank's rule in AGENTS.md is to

Полный SKILL.md на GitHub

Установить tao-run-deft-object-detection в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Skill
Bash
Write

Вложенные файлы

agents/reporter.mdassets/gap_analysis_object_detection.yamlassets/image_embeddings.yamlassets/overlays/coco_to_odvg.yamlassets/overlays/codetr_inference.yamlassets/overlays/grounding_dino_inference.yamlassets/overlays/kitti_to_coco.yamlassets/overlays/kpi_analyze.yamlassets/tmm_unique_neighbor_matching.yamlassets/train_grounding_dino.yamlevals/evals.jsonreferences/data-layout.mdreferences/example_classes_its.yamlreferences/grounding-dino.mdreferences/pipeline-and-state.mdreferences/preflight.mdreferences/prep-source-pool.mdreferences/scripts-and-agents.mdreferences/stage-mined-data.mdreferences/tao-analyze-detection-kpi.mdreferences/tao-analyze-gaps-od-map.mdreferences/tao-generate-image-embeddings.mdreferences/tao-mine-od-images.mdscripts/apply_spec_overrides.pyscripts/audit_deft_run.pyscripts/await_stage.pyscripts/commit_stage.pyscripts/deft_python.shscripts/deft_stages.pyscripts/emit_default_spec.pyscripts/fetch_codetr_checkpoint.pyscripts/fetch_gdino_checkpoint.pyscripts/init_deft_state.pyscripts/prepare_budget_for_mining.pyscripts/prepare_class_mappings_for_mining_data_prep.pyscripts/prepare_exclude_for_mining.pyscripts/prepare_input_for_image_embeddings.pyscripts/prepare_mapping_for_kpi_analyze.pyscripts/prepare_spec_for_train.pyscripts/prepare_thresholds_for_gap_analysis.py

FAQ

Что делает скилл tao-run-deft-object-detection?

Run the full DEFT smart-data-augmentation loop for NVIDIA TAO Grounding DINO object detection: zero-shot baseline inference, KPI analysis, per-class gap analysis, SigLIP embedding of weak images, unique-neighbor mining against a source pool, ODVG dataset staging, and retraining — repeated for a fixed number of iterations. Also prepares the source pool the loop mines from, as a separate run: Co-DETR pseudo-labeling, folding to the target classes, KITTI→COCO→ODVG conversion, and embedding. Use for prompts like "run the DEFT OD loop", "run smart data augmentation for grounding dino", "mine and retrain my detection model", "improve OD mAP with gap analysis and mining", "prep the source pool", or "pseudo-label my unlabeled images for mining"; do not use for standalone TAO training, one-off inference, or gap analysis alone.

Как установить скилл tao-run-deft-object-detection?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tao-run-deft-object-detection запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить tao-run-deft-object-detection с