Home

Awesome

A Light and Fast Face Detector for Edge Devices

This repo is updated frequently, keeping up with the latest code is highly recommended.

Recent Update

Introduction

This repo is the official PyTorch source code of paper "LFFD: A Light and Fast Face Detector for Edge Devices". Our paper presents a light and fast face detector (LFFD) for edge devices. LFFD considerably balances both accuracy and latency, resulting in small model size, fast inference speed while achieving excellent accuracy. Understanding the essence of receptive field makes detection networks interpretable.

In practical, we have deployed it in cloud and edge devices (like NVIDIA Jetson series and ARM-based embedding system). The comprehensive performance of LFFD is robust enough to support our applications.

In fact, our method is a general detection framework that applicable to one class detection, such as face detection, pedestrian detection, head detection, vehicle detection and so on. In general, an object class, whose average ratio of the longer side and the shorter side is less than 5, is appropriate to apply our framework for detection.

Several practical advantages:

  1. large scale coverage, and easy to extend to larger scales by adding more layers without much latency gain.
  2. detect small objects (as small as 10 pixels) in images with extremely large resolution (8K or even larger) in only one inference.
  3. easy backbone with very common operators makes it easy to deploy anywhere.

Accuracy and Latency

on the way

Getting Started

We re-implement the proposed method using PyTorch. The MXNet Version is here

Prerequirements (global)

Tips:

Sub-directory description

Installation

  1. Download the repo:
git clone https://github.com/becauseofAI/lffd-pytorch.git
  1. Refer to the corresponding sub-project for detailed usage. Now only the v2 version of face_detection can be tried to train.

Citation

If you benefit from our work in your research and product, please kindly cite the paper

@inproceedings{LFFD,
title={LFFD: A Light and Fast Face Detector for Edge Devices},
author={He, Yonghao and Xu, Dezhong and Wu, Lifang and Jian, Meng and Xiang, Shiming and Pan, Chunhong},
booktitle={arXiv:1904.10633},
year={2019}
}

To Do List

Contact

becauseofAI<sup>[1]</sup>, Yonghao He<sup>[2]</sup>

<sup>[1]</sup>E-mails: helloai777@gmail.com
<sup>[2]</sup>E-mails: yonghao.he@ia.ac.cn / yonghao.he@aliyun.com

If you are interested in this work, any innovative contributions are welcome!!!

Internship is open at NLPR, CASIA all the time. Send me your resumes!