技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
models-metrics-and-inference【数据与研究】Implement and troubleshoot MMEngine model, metric, evaluator, inference, TTA, and model analysis contracts.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task mentions BaseModel.forward modes, train_step, val_step, test_step, BaseModule initialization, data preprocessors, ImgDataPreprocessor, BaseMetric, Evaluator, DumpResults, BaseInferencer, BaseTTAModel, PrepareTTAHook, or get_model_complexity_info.
BaseModel/BaseModule, data preprocessors, step methods, metrics, evaluators, prefixing, CPU-safe result handling, and prediction dumps.BaseModel, BaseModule, ImgDataPreprocessor, BaseMetric, Evaluator, DumpResults, and complexity analysis contracts.BaseTTAModel.merge_preds pattern without downloads or runner execution.This sub-skill owns mmengine.model, mmengine.evaluator, mmengine.infer, mmengine.analysis, TTA model/hook contracts, metric prefixing, prediction dump behavior, and CPU tensor movement caveats.
Route adjacent issues to sibling skills:
../runner-and-training/SKILL.md for Runner loop orchestration, train/val/test config placement, hooks outside TTA wrapping, checkpoints, resume, optimizers, schedulers, and launchers.../data-structures-and-io/SKILL.md for dataset records, transforms, collate functions, BaseDataElement internals, file IO backends, and sample container details.../configuration-and-registry/SKILL.md for config syntax, registry scopes, custom_imports, default scopes, and config-driven build failures.../runtime-utilities-and-visualization/SKILL.md for logger, visualizer backend, message hub, device helper, distributed utility, and service-backed visualization details.forward parameters, prediction object shape, metric inputs, and whether samples are dicts or data elements.BaseModel.forward with separate mode='loss', mode='predict', and mode='tensor' branches before customizing train_step, val_step, or test_step.BaseMetric should use default_prefix or an explicit prefix, and composed evaluators must not produce duplicate keys.BaseModel.train_step() returns log tensors for the runner, while val_step() and test_step() return predictions consumed by Evaluator.process(). Evaluator.evaluate(size) returns a metric dictionary, DumpResults writes pickle predictions as user project output, inferencers return postprocessed dictionaries, and analysis helpers return complexity dictionaries whose unsupported operators should be reviewed before reporting final numbers.