计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
training【效率与协作】Plans and validates Fast Style Transfer style.py training runs, VGG/COCO assets, checkpoints, loss weights, and long GPU-oriented training workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants to train a Fast Style Transfer transform network, prepare the bundled training runtime inputs, understand loss-weight/checkpoint options, debug VGG/COCO/data-layout problems, or decide whether a training run is safe to launch.
optimize.optimize behavior.Use training guidance for requests like:
--content-weight, --style-weight, --tv-weight, or checkpoint frequency?"Route away from this sub-skill when the user already has a trained checkpoint and wants to apply it to images or videos:
A normal training run needs:
imageio/Pillow..mat file for perceptual losses.Minimal command shape:
python sub-skills/training/scripts/run_training.py \
--checkpoint-dir checkpoints/udnie \
--style assets/style/udnie.jpg \
--train-path data/train2014 \
--vgg-path data/imagenet-vgg-verydeep-19.mat \
--content-weight 1.5e1 \
--checkpoint-iterations 1000 \
--batch-size 20
Before launching, run the bundled validator with the same paths:
python sub-skills/training/scripts/validate_training_inputs.py \
--checkpoint-dir checkpoints/udnie \
--style assets/style/udnie.jpg \
--train-path data/train2014 \
--vgg-path data/imagenet-vgg-verydeep-19.mat \
--content-weight 1.5e1 \
--checkpoint-iterations 1000 \
--batch-size 20
train2014 is the documented corpus, but any image directory can be used if the images are readable and representative.data/imagenet-vgg-verydeep-19.mat; pass --vgg-path explicitly when the asset lives elsewhere.fns.ckpt inside it.--test is provided, --test-dir must also exist.--slow switches to direct pixel optimization for debugging; it is not the normal feed-forward training path.The validator and parser help checks catch missing files, bad numeric values, and obvious data-layout issues. They do not prove that:
.mat contents are semantically correct.After a checkpoint is created, use the image or video sub-skills to consume it.