计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
training【效率与协作】Guides CUDA-only SiamMask base/refine and SiamRPN training, checkpoint resume, experiment configs, and training setup validation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to train or resume SiamMask/SiamRPN models, inspect experiment configs, plan data requirements, or debug CUDA/batch/checkpoint issues.
The native training scripts call CUDA APIs unconditionally (model.cuda() and DataParallel(...).cuda()). Treat CUDA as required with no CPU substitute for real training. CPU-only work can validate configs and commands, but it does not verify training runtime.
--expect-cuda yes before real training.crop511 directories and JSON indexes.resnet.model or an appropriate base checkpoint before training from scratch/refine.| User intent | What to do |
|---|---|
| Train SiamMask base | Read references/workflows.md and use scripts/run_training.py base in dry-run mode first. |
| Train the refine/sharp model | Read references/workflows.md; provide --pretrained <base-checkpoint>. |
| Train the SiamRPN baseline | Read references/workflows.md and use scripts/run_training.py siamrpn. |
| Inspect config/data paths | Read references/config-reference.md; the bundled runner summarizes dataset roots and JSON paths before launching. |
| Debug training failure | Read references/troubleshooting.md. |
Use scripts/run_training.py to compose commands and inspect config paths. It:
PYTHONPATH, and config dataset summary.PYTHONPATH to include checkout root and experiment directory.base, refine, and siamrpn modes.--gpu <CUDA_VISIBLE_DEVICES> before execution.--run is supplied.Example dry-run:
python scripts/run_training.py --repo-root <siammask-checkout> --gpu 0,1,2,3 base \
--config config.json --batch 64 --workers 20 --epochs 20
Add --run before base only after the user approves a long CUDA training job.