计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
training【效率与协作】Train Facenet models with softmax or triplet loss, model definitions, and checkpoint/log workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants to train or fine-tune a Facenet model, inspect loss functions, choose a model definition, or debug checkpoints/logs from train_softmax.py or train_tripletloss.py.
center_loss, triplet_loss, moving_average_decay, learning_rate_schedule_file, prelogits_norm, validation_set_split_ratio, or lfw_dir inside training.inception_resnet_v1, inception_resnet_v2, squeezenet, or dummy model definitions.src/models/* exposes inference(images, keep_probability, phase_train=True, bottleneck_layer_size=128, weight_decay=0.0, reuse=None).train_softmax.py builds a classifier head over model prelogits and optionally adds center loss and prelogits norm regularization.train_tripletloss.py reshapes embeddings into anchor/positive/negative groups and uses hard-negative mining over sampled people/images.--lfw_dir is provided.facenet.train() wraps optimizer selection, gradient application, and moving-average tracking.references/workflows.md for softmax/triplet training details.scripts/build_softmax_train_command.py or scripts/build_triplet_train_command.py.scripts/validate_learning_rate_schedule.py when --learning_rate is negative.dummy model is only for tests and smoke checks; do not use it for real training.Before launching a run, verify the aligned class counts, model import, image/bottleneck sizes, batch grouping, optimizer name, learning-rate schedule, log/model output permissions, and whether LFW assets are available. Start with a short bounded run only to debug the graph/control flow; do not interpret it as model quality.
Training writes per-run subdirectories under the configured log/model roots, including:
arguments.txtrevision_info.txtmodel-<timestamp>.ckpt-*)lfw_result.txtstat.h5Read references/troubleshooting.md for invalid data layouts, bad learning-rate schedules, center-loss issues, checkpoint save problems, and expensive run warnings.