tao-train-codetr
БесплатноБез исполняемых скриптовНе проверенCo-DETR (CoDINO) for object detection. A DETR-family detector with collaborative hybrid assignment — auxiliary one-to-many heads supervise the encoder during…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
Co-DETR
Standalone install? If this session was not initialized by the TAO skill bank plugin, run the
tao-setupskill first (host preflight, credentials, cross-skill discovery).
Co-DETR trains a DETR detector alongside auxiliary one-to-many assignment heads (num_co_heads), which supervise the encoder more densely than DETR's one-to-one matching alone. The auxiliary heads exist only during training; inference runs the primary DETR head. Backbones are large by default — vit_large_codetr for training, swin_large_patch4_window7_224 for the reference inference/eval configs — so this is an accuracy-first model, not a latency-first one.
Availability — probe, then fall back to the module
The codetr console script is not registered in the TAO PyTorch images checked so far
(including 7.0.1-pyt), even though the module itself
ships. So a bare codetr invocation fails while the network is perfectly usable.
Probe in two steps and use whichever works:
# 1. console script (preferred when present)
docker run --rm "$TAO_PYT_IMAGE" codetr --help >/dev/null 2>&1 && CODETR="codetr"
# 2. module fallback — works whenever the package is installed
[ -z "${CODETR:-}" ] && docker run --rm --entrypoint sh "$TAO_PYT_IMAGE" \
-c 'python3 -c "import nvidia_tao_pytorch.cv.codetr"' >/dev/null 2>&1 \
&& CODETR="python3 -m nvidia_tao_pytorch.cv.codetr.entrypoint.codetr"
[ -z "${CODETR:-}" ] && { echo "FATAL: Co-DETR not available in $TAO_PYT_IMAGE"; exit 1; }
Both forms take identical arguments — the module entrypoint reports itself as codetr and
exposes the same {train, evaluate, inference, default_specs} subtasks. Substitute $CODETR
wherever this document writes codetr.
Only if both probes fail does this image genuinely lack Co-DETR. Then stop and ask which image to use — do not silently substitute another detector.
Dataclass Schemas
Generated TAO Core schemas are not yet packaged for this model, so schemas/<action>.schema.json and references/spec_template_<action>.yaml are absent except for the hand-written references/spec_template_inference.yaml. Read spec keys from the upstream experiment specs in nvidia_tao_pytorch/cv/codetr/experiment_specs/ (train.yaml, eval.yaml, inference.yaml, export.yaml) until a maintainer regenerates them. AutoML is therefore not runnable for this model.
Train Action Policy
This model is not AutoML-enabled (automl_enabled: false in references/skill_info.yaml). Run train directly; do not route through nvidia-tao-toolkit:tao-run-automl. Never add an automl_policy or workflow: key to the spec — TAO's Hydra ExperimentConfig schema rejects unknown top-level keys at config-merge time.
Supported Actions
The packaged Co-DETR CLI exposes train, evaluate, and inference. This skill exposes all three. export and TensorRT deploy flows are not available for this model.
Every action follows the standard TAO form, where anything after the spec is a Hydra override:
$CODETR <action> -e /absolute/path/spec.yaml [key=value ...]
results_dir auto-appends the action name: passing results_dir=X writes to X/train/, X/evaluate/, or X/inference/. Never append the subdirectory yourself.
Training Requirements
- Dataset type: object_detection
- Formats: coco (train/evaluate), image directory + classmap (inference)
- Monitoring metric: mAP50
Per-Action Dataset Requirements
| Action | Spec Key | Files |
|---|---|---|
| train | dataset.train_data_sources |
image_dir, json_file (COCO) |
| train | dataset.val_data_sources |
image_dir, json_file (COCO) |
| evaluate | dataset.test_data_sources |
image_dir, json_file (COCO) |
| inference | dataset.infer_data_sources.image_dir |
directory of images |
| inference | dataset.infer_data_sources.classmap |
newline-separated class list, one name per line |
dataset.num_classes is required for every action and must match both the classmap length and the checkpoint head.
Typical Spec Overrides
# $CODETR is either `codetr` or the module form — see ## Availability
$CODETR inference -e "$SPEC" \
inference.checkpoint=/abs/codetr.pth \
dataset.infer_data_sources.image_dir=/abs/images \
dataset.infer_data_sources.classmap=/abs/classmap.txt \
results_dir=/abs/results \
inference.conf_threshold=0.3 \
inference.num_gpus=8
references/spec_template_inference.yaml is a starting point.
Getting Weights
Two fields control where training starts:
| Field | Holds |
|---|---|
model.pretrained_backbone_path |
a backbone-only checkpoint initialising model.backbone |
train.pretrained_model_path |
a full Co-DETR (or compatible DETR-family) checkpoint to fine-tune from |
Prefer train.pretrained_model_path with the COCO detector below. It carries a trained
backbone and trained detection heads, so it is the better starting point for fine-tuning on a
new class set, and it is the checkpoint
Установить tao-train-codetr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashВложенные файлы
FAQ
Что делает скилл tao-train-codetr?
Co-DETR (CoDINO) for object detection. A DETR-family detector with collaborative hybrid assignment — auxiliary one-to-many heads supervise the encoder during training, giving strong closed-set accuracy at high inference cost. Use when training, evaluating, or running inference for a TAO Co-DETR model. Trigger phrases include "train Co-DETR", "run CoDINO", "codetr inference", "collaborative DETR", "autolabel detections with Co-DETR".
Как установить скилл tao-train-codetr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tao-train-codetr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic