计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
facenet【效率与协作】Use davidsandberg/facenet for TensorFlow 1.x face recognition workflows: MTCNN alignment, embeddings, classification, LFW evaluation, training, and model export.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves David Sandberg's TensorFlow 1.x FaceNet repository: aligning face images with MTCNN, extracting embeddings, comparing faces, training an SVM classifier, evaluating on LFW pairs, training FaceNet models, or exporting checkpoints to frozen graphs.
tf.Session, tf.Graph, tf.train, and tf.contrib.slim). TensorFlow 2.x without compatibility shims is not enough.facenet, lfw, compare, classifier, train_softmax, train_tripletloss, freeze_graph, align.detect_face, and models.inception_resnet_v1.scripts/check_facenet_environment.py to verify imports, TensorFlow version, and common dependency availability before planning a workflow.references/compatibility-and-install.md when installing or debugging the old TensorFlow/Python dependency stack.For faithful historical execution, use the repository's documented TensorFlow 1.7/Python 2.7 or 3.5 environment. On modern hosts, use an isolated Python 3.7-era environment with a compatible TensorFlow 1.x build, NumPy/SciPy/scikit-learn/OpenCV/h5py/Pillow, and a compatible protobuf<3.20; do not install into the interpreter running the agent. Because this repo has no packaging metadata, make its source modules importable before running module-style commands. The root checker is the minimum read-only verification:
python scripts/check_facenet_environment.py --json
sub-skills/data-and-alignment/SKILL.md for class-folder datasets, pairs.txt basics, prewhiten/crop/flip behavior, and alignment command construction.sub-skills/embeddings-and-classification/SKILL.md for model-backed embedding extraction, compare, SVM classifier, .npy exports, DBSCAN, and contributed recognition examples.sub-skills/evaluation/SKILL.md for validate_on_lfw, pair-file validation, ROC/VAL/FAR/AUC/EER interpretation, and fixed-standardization warnings.sub-skills/training/SKILL.md for softmax/triplet training commands, model definitions, loss functions, learning-rate schedules, logging, and checkpoint outputs.sub-skills/model-export-and-checkpoints/SKILL.md for accepted model path formats, load_model, checkpoint selection, tensor names, and freeze_graph workflows.data_dir/person_name/image.ext; labels are assigned by sorted directory order.embeddings:0, input images are input:0, and inference mode is controlled by phase_train:0..meta file plus checkpoint state or model-*.ckpt-* files..pb file that facenet.load_model imports directly.160; newer 2018 models require fixed image standardization for comparable LFW results.For a new end-to-end request, use this order unless the user already supplies validated artifacts:
If a request crosses multiple routes, keep each artifact explicit: raw data, aligned data, model/checkpoint, classifier pickle, embeddings, metrics, and logs should not be silently mixed.
tmp/ experiments unless the user explicitly asks for those historical utilities.references/repo-provenance.md records the source commit, evidence paths, and generation baseline.references/repo-routing-metadata.json is structured metadata for managed repo-skill routing.references/troubleshooting.md covers cross-cutting install/import/model/data failures.