技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-datasets【数据与研究】Register and validate Detectron2 datasets, metadata, COCO helpers, mappers, and data loaders.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about getting data into Detectron2: registering custom datasets, checking Detectron2-standard dataset dicts, setting metadata, using COCO helpers, designing mappers, or building train/test data loaders.
references/dataset-format.md for DatasetCatalog, MetadataCatalog, standard dataset dict fields, COCO registration, metadata keys, and dataset-root conventions.references/data-loading.md for DatasetMapper, custom mapper patterns, augmentations, and build_detection_train_loader / build_detection_test_loader usage.references/troubleshooting.md for common registration, annotation, metadata, class-count, COCO path, and mapper failures.DatasetCatalog.register(name, callable); the callable must take no arguments and return the same ordered records on every call.MetadataCatalog.get(name).set(...), especially class names and evaluator/COCO metadata.scripts/validate_dataset_dicts.py before wiring them into a loader or config.register_coco_instances or load_coco_json when annotations are COCO instance/keypoint style.cfg.DATASETS.TRAIN / cfg.DATASETS.TEST, and route class-count or solver changes to the config/training sub-skills.DatasetMapper(..., augmentations=...) or a custom mapper passed to build_detection_train_loader(..., mapper=...).scripts/validate_dataset_dicts.py: validates a JSON list of Detectron2-standard dataset dicts and reports actionable schema/data-shape errors.scripts/validate_dataset_registration.py: smoke-checks catalog registration and metadata behavior with a synthetic dataset, and optionally validates a user JSON fixture.DefaultTrainer, launch commands, evaluators, class-count config changes, and metrics.