界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

training-evaluation

training-evaluation

【开发与工程】Route safe MMYOLO training, testing, prediction output, launchers, logging, and troubleshooting.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: training-evaluation description: "Route safe MMYOLO training, testing, prediction output, launchers, logging, and troubleshooting." disable-model-invocation: true metadata: disco-role: operating license: GPL 3.0

MMYOLO training-evaluation

Use this sub-skill when the user needs to construct or review MMYOLO training, resume, AMP, distributed launch, testing/evaluation, prediction dump, training-log, scheduler-plot, or confusion-matrix workflows.

Safety boundary

This sub-skill is for safe command construction and preflight review. Training and evaluation can be long-running, GPU-heavy, write checkpoints/logs, and touch datasets. Do not launch a real training/evaluation job unless the caller explicitly asks for execution after the preflight decisions are clear.

For safe command builders that print commands without running MMYOLO, use:

Start here

  1. Identify the workflow: train, resume, AMP train, test/evaluate, dump predictions, visualize evaluation outputs, distributed, Slurm, log analysis, scheduler visualization, or confusion matrix.
  2. Verify inputs before launch planning:
    • training: config path, dataset availability, work directory, requested backend/GPU count, resume checkpoint if not auto-resume;
    • testing: config path, checkpoint path, output format request, visualization/output directory, TTA/deploy flags, backend/GPU count;
    • distributed: launcher type, visible devices, GPU count, unique port, node rank/address, or Slurm partition/job resources.
  3. Build a command with one of the bundled helpers or the recipes in references/training-evaluation.md.
  4. Check exact CLI behavior in references/cli-reference.md.
  5. If anything fails preflight, use references/troubleshooting.md before suggesting expensive reruns.

Route away

  • Config editing, model family selection, metainfo, class counts, evaluator paths, optimizer-wrapper changes, TTA config definitions, visualization-backend config edits, or --cfg-options design belong in config-customization.
  • Dataset conversion, COCO/YOLO/LabelMe layout checks, annotation browsing, or anchor optimization belongs in data-tools.
  • Image/video inference demos, feature-map visualization, BoxAM/Grad-CAM, LabelMe prediction export, or SAHI large-image inference belongs in inference-visualization.
  • ONNX, TensorRT, RKNN, MMDeploy, EasyDeploy export/build/inference, and checkpoint-format conversion belongs in deployment-conversion.

Core decisions

  • Prefer mim train mmyolo ... / mim test mmyolo ... when MMYOLO is installed as a package and OpenMIM exposes package train/test commands.
  • Treat the original source shell wrappers as evidence for distributed/Slurm option mapping only. Use MIM launcher options in runtime guidance instead of depending on checkout-local script paths.
  • Use --resume alone for auto-resume from the work directory, or --resume PATH for a specific checkpoint.
  • Use --amp only when the config optimizer wrapper is compatible; see the AMP assertions in troubleshooting.
  • For prediction dumps, use --out result.pkl or --out result.pickle for rich pickle outputs; use --json-prefix path/prefix for COCO-style JSON prefix output.
  • Prefer --show-dir DIR over --show on headless machines.

Usability cases this sub-skill must handle

  • Generate a resume+AMP training command, then explain why AMP may warn or assert based on optim_wrapper.type.
  • Translate a request such as “evaluate this checkpoint and save both JSON and PKL predictions” into valid mim test mmyolo options, including .pkl/.pickle suffix validation and the --json-prefix prefix rule.
我的收藏