/ Модель

Характеристики

Лицензия
MIT
Опубликована
10 авг 2026

facenet512-imx

Эмбеддинги изображенийИзображение → embedding3 профессии

Квантованная FaceNet находит векторное представление обрезанного лица для его верификации и сопоставления с лицами в базе данных.

129скачиваний за 30 дней1лайквеса обновлены16 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

nxp/facenet512-imx — модель FaceNet на архитектуре Inception, разработанная на основе реализации DeepFace и подготовленная NXP для запуска на устройствах i.MX. Она преобразует обрезанное RGB-изображение лица размером 160 × 160 в эмбеддинг размерности 512 для сопоставления с векторами в базе данных, верификации и повторной идентификации лиц. Это не детектор лиц: изображение лица нужно предварительно обнаружить и обрезать.

Модель поставляется в формате TensorFlow Lite с полной посттренировочной квантованием int8; принимает uint8 и выдаёт вектор float32. Версии скомпилированы для ускорителей i.MX 93 Ethos-U65 и i.MX 95/i.MX 952 Neutron. В README приведена точность 97,6% на парном тесте LFW для квантованной версии; результат зависит от данных и порога сопоставления. Лицензия — MIT.

Сценарии применения

  • проверка, принадлежат ли два снимка одному человеку
  • поиск человека по базе эмбеддингов лиц
  • повторная идентификация лиц на разных изображениях
  • группировка снимков по людям после обнаружения лиц

Ограничения

Модель не обнаруживает лица, поэтому ей нужны заранее обнаруженные и обрезанные изображения. Приведённая оценка получена на тесте LFW и не гарантирует такую же точность на других данных.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

FaceNet512

Introduction

FaceNet is a neural network for face re-identification based on the Inception architecture. It regresses a face feature vector (embedding) that can be matched against a database of known face vectors. In this version the embedding has dimension 512. The weights come from the DeepFace implementation.

Note: This is not a face detection model. Faces must be detected and cropped before being passed to FaceNet.

Key Features

  • Compact 512-dimensional face embedding suitable for verification and identification tasks.
  • Fully quantized int8 model with uint8 input and float32 output.
  • Compiled for i.MX 93 Ethos-U65 NPU and converted for i.MX 95 / i.MX 952 Neutron NPU.

Model Description

Modifications

The original Keras model from the DeepFace library is converted directly to TensorFlow Lite with full int8 quantization using 100 calibration images from a commercially-usable ImageNetV2 subset. The input type is uint8 (values 0-255) and the output type is float32.

Model Information

InformationValue
Input shapeRGB face crop (1, 160, 160, 3), uint8
Output shapeFace embedding vector (1, 512), float32
FLOPS2.84 GOPS
Number of parameters23,497,424
Source frameworkTensorFlow/Keras (DeepFace 0.0.75)
Target platformMPUs (i.MX 8M Plus, i.MX 93, i.MX 95, i.MX 952)

Tested Configurations

The quantized int8 model has been tested on i.MX 8M, i.MX 93, i.MX 95 and i.MX 952 using benchmark-model (see i.MX Machine Learning User Guide).

Training and Evaluation

The original model was trained and evaluated on the LFW dataset, achieving 99.65% accuracy according to the DeepFace source.

We re-evaluated the model on LFW deep-funneled images from the Kaggle LFW dataset using the pairsDevTest split (1000 pairs, cosine distance threshold 0.6):

ModelAccuracy
FaceNet512 Keras float3297.5%
FaceNet512 TensorFlow Lite int897.6%

The evaluation script is evaluate.py.

Conversion/Quantization

The original Keras model is converted directly to TensorFlow Lite with full int8 post-training quantization. 100 random images sampled from a commercially-usable ImageNetV2 subset are used as calibration data, resized to the 160x160 model input and scaled to [0, 1]. Point DATASET_PATH at your local ImageNetV2 subset root (a directory of per-class image subfolders). The conversion is performed using TensorFlow 2.x with:

  • inference_input_type = tf.uint8
  • inference_output_type = tf.float32
  • OpsSet.TFLITE_BUILTINS_INT8

The i.MX 93 model is compiled from the int8 TFLite model using Vela tag lf-6.18.20_2.0.0 with --accelerator-config ethos-u65-512 --optimise Performance.

The i.MX 95 and i.MX 952 models are converted using eIQ Neutron SDK version 3.1.3.

Download and Run

To regenerate the TFLite model fully quantized in int8 (uint8 input, float32 output), run:

bash recipe.sh

An example showing how to compute the cosine similarity between two face images is in example.py:

python example.py -m original_model/facenet512_uint8_float32.tflite -i face.jpg -i2 face2.jpg

To evaluate the model on the LFW pairsDevTest split, download the required data and run:

# Download LFW deep-funneled images
wget https://vis-www.cs.umass.edu/lfw/lfw-deepfunneled.tgz
tar xzf lfw-deepfunneled.tgz
# Download pairs file
wget https://vis-www.cs.umass.edu/lfw/pairsDevTest.txt
python evaluate.py -m original_model/facenet512_uint8_float32.tflite

Full on-device examples leveraging GStreamer/NNStreamer and this model can be found in nxp-nnstreamer-examples on GitHub

Origin

Model implementation: https://github.com/serengil/deepface/

Original article: Schroff, Florian, Dmitry Kalenichenko, and James Philbin. "FaceNet: A Unified Embedding for Face Recognition and Clustering." Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2015. https://www.cv-foundation.org/openaccess/content_cvpr_2015/html/Schroff_FaceNet_A_Unified_2015_CVPR_paper.html

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

В репозитории нет весов в формате PyTorch/safetensors.

Ревизия весов
53f0370

0 моделей