executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
training-evaluationTrain, evaluate, checkpoint, and troubleshoot Detectron2 models with safe commands and APIs.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is to run or prepare Detectron2 training/evaluation, customize trainers/hooks/evaluators/checkpointing, or diagnose training/eval failures. It assumes datasets and configs have already been selected or registered by the dataset/configuration sub-skills.
scripts/train_command_builder.py; it prints commands only and never starts training.scripts/evaluation_plan.py; it prints checks and next steps only and never runs evaluation.references/training-workflows.md for standard Detectron2 train/eval driver semantics, DefaultTrainer, SimpleTrainer, hooks, launch, solver scaling, and resume/eval-only behavior.references/evaluation-checkpointing.md for evaluator selection, inference_on_dataset, verify_results, DetectionCheckpointer, and checkpoint loading/resume behavior.references/troubleshooting.md before starting long jobs, changing GPU count, using a custom dataset, switching Yacs/LazyConfig syntax, or debugging failed evaluation.python PROJECT_TRAIN_DRIVER.py --config-file CONFIG --num-gpus N [--resume|--eval-only] KEY VALUE ....python PROJECT_LAZY_TRAIN_DRIVER.py --config-file CONFIG.py train.output_dir=... dataloader.train.total_batch_size=....vision.fair.detectron2.demo.predictor module.DefaultTrainer, override build_evaluator, optionally override build_train_loader, build_optimizer, build_lr_scheduler, or register hooks.SimpleTrainer(model, data_loader, optimizer) when DefaultTrainer assumptions are too restrictive.launch(main_func, num_gpus_per_machine, num_machines=1, machine_rank=0, dist_url=None, args=()).COCOEvaluator, SemSegEvaluator, DatasetEvaluator, DatasetEvaluators, and inference_on_dataset(model, data_loader, evaluator).DetectionCheckpointer(model, save_dir, trainer=trainer) and distinguish load, resume_or_load, --resume, and --eval-only.