技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-and-alignment【数据与研究】Prepare Facenet class-folder datasets, validate LFW pair inputs, and build safe MTCNN alignment workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user needs to prepare or check face image data before embedding, evaluation, or training. This includes class-folder dataset layout, LFW pair files, image preprocessing assumptions, and MTCNN alignment commands.
compare, classifier training, LFW validation, or training.align_dataset_mtcnn, MTCNN thresholds, margin, image size, multiple faces, or bounding-box output.pairs.txt file and missing-image or skipped-pair issues.data_dir/class_name/image_file directories. facenet.get_dataset() sorts class directories and assigns integer labels by sorted class order.facenet.load_data() reads images, converts grayscale to RGB, optionally prewhitens, then crops/flips to the requested image size.bounding_boxes_<random>.txt.../evaluation/SKILL.md before LFW evaluation.scripts/validate_facenet_dataset.py. It checks class directories, image extensions, minimum images per class, and optional LFW pair references without importing TensorFlow.references/data-formats.md for class-folder, LFW pair, learning-rate schedule, and large dataset conversion formats.references/alignment-workflows.md, then build a command with scripts/build_alignment_command.py.--image_size and --margin based on the downstream workflow. README-era examples commonly use 182 aligned output for training and 160 for model input.--detect_multiple_faces changes output naming and class counts.compare and contributed clustering can align internally, but training and LFW evaluation expect prepared aligned face patches.--random_order only to help multiple alignment jobs split work; it makes logs harder to compare.A successful preparation pass should leave:
Keep raw photos and aligned outputs in separate directories so a failed detector run can be discarded without data loss.
../embeddings-and-classification/SKILL.md.../evaluation/SKILL.md.../training/SKILL.md.../model-export-and-checkpoints/SKILL.md.Read references/troubleshooting.md for invalid class-folder layouts, missing pairs, MTCNN import errors, deprecated SciPy image I/O, and unexpected face counts.