本文へ移動
cccskills
無料GitHub で公開

facenet

Use davidsandberg/facenet for TensorFlow 1.x face recognition workflows: MTCNN alignment, embeddings, classification, LFW evaluation, training, and model export.

インストール方法を見る

含まれるファイル(41)

  • SKILL.md5.8 KB
  • references/compatibility-and-install.md3.1 KB
  • references/repo-provenance.md2.8 KB
  • references/repo-routing-metadata.json328 B
  • references/troubleshooting.md2.9 KB
  • scripts/check_facenet_environment.py2.9 KB
  • sub-skills/data-and-alignment/references/alignment-workflows.md2.1 KB
  • sub-skills/data-and-alignment/references/data-formats.md2.2 KB
  • sub-skills/data-and-alignment/references/troubleshooting.md1.9 KB
  • sub-skills/data-and-alignment/scripts/build_alignment_command.py1.3 KB
  • sub-skills/data-and-alignment/scripts/validate_facenet_dataset.py4.3 KB
  • sub-skills/data-and-alignment/SKILL.md4.3 KB
  • sub-skills/embeddings-and-classification/references/cli-reference.md1.5 KB
  • sub-skills/embeddings-and-classification/references/contributed-workflows.md2.1 KB
  • sub-skills/embeddings-and-classification/references/troubleshooting.md1.7 KB
  • sub-skills/embeddings-and-classification/references/workflows.md3.3 KB
  • sub-skills/embeddings-and-classification/scripts/build_classifier_command.py1.3 KB
  • sub-skills/embeddings-and-classification/scripts/build_cluster_command.py1.3 KB
  • sub-skills/embeddings-and-classification/scripts/build_compare_command.py860 B
  • sub-skills/embeddings-and-classification/scripts/build_export_embeddings_command.py1.5 KB
  • sub-skills/embeddings-and-classification/SKILL.md4.2 KB
  • sub-skills/evaluation/references/metrics-reference.md1.5 KB
  • sub-skills/evaluation/references/troubleshooting.md1.2 KB
  • sub-skills/evaluation/references/workflows.md1.7 KB
  • sub-skills/evaluation/scripts/build_lfw_validation_command.py1.5 KB
  • sub-skills/evaluation/scripts/validate_lfw_pairs.py1.8 KB
  • sub-skills/evaluation/SKILL.md3.1 KB
  • sub-skills/model-export-and-checkpoints/references/api-reference.md800 B
  • sub-skills/model-export-and-checkpoints/references/model-files.md1.4 KB
  • sub-skills/model-export-and-checkpoints/references/troubleshooting.md1.3 KB
  • sub-skills/model-export-and-checkpoints/scripts/build_freeze_graph_command.py553 B
  • sub-skills/model-export-and-checkpoints/scripts/inspect_model_dir.py1.4 KB
  • sub-skills/model-export-and-checkpoints/SKILL.md3.1 KB
  • sub-skills/training/references/api-reference.md1.6 KB
  • sub-skills/training/references/model-definitions.md1.3 KB
  • sub-skills/training/references/troubleshooting.md1.6 KB
  • sub-skills/training/references/workflows.md2.8 KB
  • sub-skills/training/scripts/build_softmax_train_command.py2.4 KB
  • sub-skills/training/scripts/build_triplet_train_command.py2.1 KB
  • sub-skills/training/scripts/validate_learning_rate_schedule.py2.1 KB
  • sub-skills/training/SKILL.md3.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Facenet Repo Skill

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.

First checks

  1. Treat Facenet as a source-style TensorFlow 1.x project, not a modern packaged library with console entry points.
  2. Prefer a Python environment that can import TensorFlow 1.x APIs (tf.Session, tf.Graph, tf.train, and tf.contrib.slim). TensorFlow 2.x without compatibility shims is not enough.
  3. Ensure Facenet modules are importable as modules such as facenet, lfw, compare, classifier, train_softmax, train_tripletloss, freeze_graph, align.detect_face, and models.inception_resnet_v1.
  4. Run scripts/check_facenet_environment.py to verify imports, TensorFlow version, and common dependency availability before planning a workflow.
  5. Read references/compatibility-and-install.md when installing or debugging the old TensorFlow/Python dependency stack.

Install/inspect

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

Route by task

  • Dataset layout, image preprocessing, and MTCNN alignment: read sub-skills/data-and-alignment/SKILL.md for class-folder datasets, pairs.txt basics, prewhiten/crop/flip behavior, and alignment command construction.
  • Embeddings, comparison, classifiers, and clustering: read sub-skills/embeddings-and-classification/SKILL.md for model-backed embedding extraction, compare, SVM classifier, .npy exports, DBSCAN, and contributed recognition examples.
  • LFW and verification metrics: read sub-skills/evaluation/SKILL.md for validate_on_lfw, pair-file validation, ROC/VAL/FAR/AUC/EER interpretation, and fixed-standardization warnings.
  • Training and model definitions: read sub-skills/training/SKILL.md for softmax/triplet training commands, model definitions, loss functions, learning-rate schedules, logging, and checkpoint outputs.
  • Model files, checkpoints, and frozen graphs: read sub-skills/model-export-and-checkpoints/SKILL.md for accepted model path formats, load_model, checkpoint selection, tensor names, and freeze_graph workflows.

Common Facenet objects and conventions

  • A class-folder dataset is data_dir/person_name/image.ext; labels are assigned by sorted directory order.
  • The main embedding tensor is usually embeddings:0, input images are input:0, and inference mode is controlled by phase_train:0.
  • A checkpoint model directory must contain exactly one .meta file plus checkpoint state or model-*.ckpt-* files.
  • A frozen graph is a .pb file that facenet.load_model imports directly.
  • Pretrained models named in the README commonly use image size 160; newer 2018 models require fixed image standardization for comparable LFW results.

Default handoff order

For a new end-to-end request, use this order unless the user already supplies validated artifacts:

  1. Run the environment checker and confirm TF1 imports.
  2. Validate the class-folder or LFW data layout.
  3. Inspect the checkpoint directory or frozen graph signature.
  4. Build the narrowest workflow command with the owning sub-skill helper.
  5. Run a bounded help/fixture/model smoke before any long, networked, or hardware-interactive job.
  6. Record output directories, model path, image size, standardization mode, batch size, and seed so later comparisons are reproducible.

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.

Safety and scope

  • Full training, LFW benchmarks, and pretrained comparison usually require external datasets or model downloads. Treat them as skip-network or skip-expensive unless the user supplies assets and approves runtime cost.
  • Webcam recognition in contributed scripts needs a camera/display plus hard-coded model/classifier assumptions. Document it or adapt it carefully; do not start an infinite webcam loop as a smoke test.
  • Do not use TensorFlow 2.x behavior to infer Facenet correctness without checking TF1 compatibility.
  • The generated skill excludes the experimental VAE/generative branch and broad tmp/ experiments unless the user explicitly asks for those historical utilities.

References

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

3ddfa

無料

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

3ddfa-v2

無料

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

ab3dmot

無料

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

acme

無料

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

VectorSpaceLab のスキルをすべて見る

このスキルの問題を報告する