zhouyuchong / face-recognition-deepstream

Deepstream app use retinaface and arcface for face recognition.
MIT License
55 stars 12 forks source link
arcface deepstream face-recognition retinaface

Face recognition with Deepstream

This is a face detection and recognition demo pipeline build on Deepstream.

Requirements

Follow deepstream official doc to install dependencies.

Deepstream docker is more recommended.

Pretrained

Please refer to links below for pretrained models and serialized TensorRT engine. Or download from Google driver.

Alignment

there should be a face alignment before arcface. Use a gst-nvinfer-custom to preprocess the tensor-meta of retinaface.

Demo custom-gst-nvinfer

Usage

1 - put the feature file to data/known_faces

2 - compile gst-nvinfer-custom if do alignment, care that the post-process should also be modified if use gst-nvinfer-custom

3 - modify config file under config folder

4 - run python3 main.py

References