技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
datasets-training-and-evaluation【数据与研究】Use docTR datasets, label formats, safe dataset validation, training/evaluation reference scripts, metrics, transforms, DataLoader, synthetic generators, and DDP/GPU caveats.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user needs to prepare, validate, load, train with, or evaluate datasets for docTR detection, recognition, OCR/KIE-style detection, layout analysis, table structure recognition, character classification, or orientation classification.
Do not run full training, dataset downloads, latency benchmarks, or multi-GPU jobs by default. First validate local labels and run only cheap import/help/batch-smoke checks unless the user explicitly asks for the heavy run and accepts compute/network costs.
VOCABS, encode_string, decode_sequence, CharacterGenerator, WordGenerator, transforms, or DataLoader: read references/data-formats.md.None: read references/troubleshooting.md.Use the bundled validator before any custom-data training run:
python scripts/validate_doctr_labels.py --task detection --dataset-root DATASET_ROOT
python scripts/validate_doctr_labels.py --task recognition --dataset-root DATASET_ROOT --warn-spaces
python scripts/validate_doctr_labels.py --task layout --dataset-root DATASET_ROOT
python scripts/validate_doctr_labels.py --task table --dataset-root DATASET_ROOT
python scripts/validate_doctr_labels.py --task ocr --dataset-root DATASET_ROOT
The helper reads local JSON and checks local image existence only. It never trains, downloads, benchmarks, or imports heavyweight model code.
VOCABS entry or explicit model vocab.use_polygons / --rotation / --eval-straight choices consistent between dataset, training, and metrics.collate_fn to the framework DataLoader because targets have variable-size dictionaries, arrays, strings, or table structures.torchrun, let it set LOCAL_RANK, and choose a backend compatible with the visible hardware. nccl is CUDA-oriented; CPU or non-CUDA environments need a different backend or single-process execution.