tao-validate-dataset-format
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseValidate a TAO DAFT Dataset
验证TAO DAFT数据集
Quick start
快速开始
bash
tao-daft validate <format> --path <dataset-or-parent-dir><format>metropolis-v3.0cosmos-reason-v1.0--pathtao-daft validate --help--helpbash
tao-daft validate <format> --path <dataset-or-parent-dir><format>metropolis-v3.0cosmos-reason-v1.0--pathtao-daft validate --help--helpPreflight
预检查
bash
python -c "import nvidia_tao_daft" 2>/dev/null || {
echo "MISSING: tao-daft not installed. Run:"
echo " pip install nvidia-tao-daft"
exit 1
}bash
python -c "import nvidia_tao_daft" 2>/dev/null || {
echo "缺失依赖:tao-daft未安装。请运行:"
echo " pip install nvidia-tao-daft"
exit 1
}Quick Start
快速入门
Discover the installed validator formats before choosing a format slug, then
run validation with the target passed through :
--pathbash
tao-daft --version
tao-daft validate --help
tao-daft validate <format> --help
tao-daft validate <format> --path /path/to/daft-dataset在选择格式标识前,先查看已安装的验证器格式,然后通过指定目标路径运行验证:
--pathbash
tao-daft --version
tao-daft validate --help
tao-daft validate <format> --help
tao-daft validate <format> --path /path/to/daft-datasetPurpose
用途
Drive against a DAFT dataset (or a tree of them).
The CLI is the spec; the skill picks subcommand + flags and explains
the result.
tao-daft validateTrigger when the user mentions "TAO DAFT", "DAFT format", validating a
DAFT dataset, schema/cross-reference errors, or .
Do not trigger for non-DAFT layouts (COCO, YOLO, Data Factory JSONL),
or for / — those have their own skills.
tao-daft validatetao-daft infotao-daft convertIf the user's opening is ambiguous, run a few commands first
to ground yourself, then come back and confirm the task.
--help针对DAFT数据集(或数据集目录树)运行命令。
CLI是权威规范;本技能会选择子命令和参数并解释执行结果。
tao-daft validate当用户提及"TAO DAFT"、"DAFT格式"、验证DAFT数据集、模式/交叉引用错误或时触发本技能。
请勿针对非DAFT格式(COCO、YOLO、Data Factory JSONL)或/触发——这些场景有专属技能。
tao-daft validatetao-daft infotao-daft convert若用户的需求表述模糊,请先运行几次命令明确信息,再返回确认任务。
--helpPrerequisites
前提条件
- installed (
nvidia-tao-daft; the wheel is enough, no source repo). Confirm withpip install nvidia-tao-daft.tao-daft --version - A DAFT dataset, or a parent directory of them, on local disk.
- 已安装(执行
nvidia-tao-daft;仅需安装wheel包,无需源码仓库)。可通过pip install nvidia-tao-daft确认安装状态。tao-daft --version - 本地磁盘上有DAFT数据集或其上级目录。
Instructions
操作说明
CLI conventions
CLI约定
tao-daft--help- Format is a positional subcommand, not :
--format. List current formats viatao-daft validate <format> [flags]; slugs look liketao-daft validate --help,metropolis-v3.0.cosmos-reason-v1.0 - Target is , not positional. It accepts a single dataset/scene or a parent directory — the validator walks the tree.
--path PATH - Flags are per-format; run the leaf help, e.g.
, before choosing them. Don't assume a flag from one format exists on another.
tao-daft validate metropolis-v3.0 --help
So the loop is: → →
pick format (infer if unspecified, see below) →
→ run → interpret.
tao-daft --versiontao-daft validate --helptao-daft validate <format> --helptao-daft--help- 格式是位置子命令,而非参数: 命令格式为
--format。可通过tao-daft validate <format> [flags]查看当前支持的格式;格式标识类似tao-daft validate --help、metropolis-v3.0。cosmos-reason-v1.0 - 目标路径通过指定,而非位置参数。它接受单个数据集/场景或上级目录——验证器会遍历目录树。
--path PATH - 参数为格式专属;在选择参数前,请运行子命令的帮助信息,例如。 不要假设某一格式的参数在其他格式中存在。
tao-daft validate metropolis-v3.0 --help
操作流程为: → →
选择格式(若未指定则推断,见下文)→
→ 运行命令 → 解读结果。
tao-daft --versiontao-daft validate --helptao-daft validate <format> --helpFormat inference
格式推断
Use directory markers, not filenames:
- next to
meta.jsonandmedia/⇒text/.cosmos-reason-v1.0 - A directory (or nested directories) containing , typically alongside
contextual/andraw/⇒task/.metropolis-v3.0 - Neither marker present ⇒ ask the user; do not guess.
依据目录标识而非文件名推断格式:
- 与
meta.json和media/同级 ⇒text/格式。cosmos-reason-v1.0 - 目录(或嵌套目录)包含,通常与
contextual/和raw/并存 ⇒task/格式。metropolis-v3.0 - 上述标识均不存在 ⇒ 询问用户,请勿猜测。
Reading errors
错误解读
The CLI ends every run with a block, then
or , and exits non-zero on
failure (safe to chain in scripts).
VALIDATION RESULTS✅ VALIDATION PASSED❌ VALIDATION FAILEDOutput can be large on big trees — capture the full output to a file
and read it in slices rather than scrolling inline.
CLI每次运行结束后都会输出区块,随后显示或,验证失败时会返回非零退出码(可安全用于脚本链式调用)。
VALIDATION RESULTS✅ VALIDATION PASSED❌ VALIDATION FAILED大型目录树的输出内容可能较多——建议将完整输出保存到文件中分段查看,而非直接滚动查看。
Limitations
局限性
- Validates DAFT only. Non-DAFT layouts (COCO, YOLO, Data Factory JSONL, etc.) belong in the upstream converter skills.
- Supported formats are whatever reports for the installed version; older slugs may have been retired.
tao-daft validate --help - Covers only. Defer to the dedicated skills for
validateandtao-daft info.tao-daft convert - Don't reimplement validation in Python; the CLI is the spec.
- 仅支持验证DAFT格式。非DAFT格式(COCO、YOLO、Data Factory JSONL等)请使用上游转换工具技能。
- 支持的格式取决于当前安装版本的输出;旧版格式标识可能已被弃用。
tao-daft validate --help - 仅覆盖命令。
validate和tao-daft info请使用专属技能。tao-daft convert - 请勿用Python重实现验证逻辑;CLI是权威规范。
Troubleshooting
故障排除
- — wheel not installed in the active env.
tao-daft: command not found; verifypip install nvidia-tao-daft.tao-daft --version - — path passed positionally. Move it behind
error: argument --path is required.--path - — slug isn't wired up in this version. Re-run
invalid choice: '<format>'and pick from the list.tao-daft validate --help - Auto-detection (raw type / contextual set) is wrong — override
via the format's scope-restriction flag; discover the name from the
leaf .
--help - CI wants warnings to fail — add .
--strict
- —— 未在当前环境中安装wheel包。执行
tao-daft: command not found;通过pip install nvidia-tao-daft验证安装。tao-daft --version - —— 将路径作为位置参数传递了。请将路径移至
error: argument --path is required参数后。--path - —— 该格式标识在当前版本中未配置。重新运行
invalid choice: '<format>'并从列表中选择。tao-daft validate --help - 自动检测(原始类型/上下文集)错误 —— 通过格式的范围限制参数覆盖;参数名称可从子命令的中查看。
--help - CI要求警告触发失败 —— 添加参数。
--strict