Git Product home page Git Product logo

trojans-face-recognizer's Introduction

'Trojans' Face Recognizer

Update 10/31/2019 We upload the loss.py as our implementation of the original ArcFace and the proposed ArcNegFace. Now you can use them to train the model and compare the results. If you use the ms1m-v3 provided by the LFR challenge, you would reproduce the reported results as listed in our paper.

This is the model and code for the paper 'Towards Flops-constrained Face Recognition', which win the 1st place in the ICCV19 Lightweight Face Recognition Challenge, large video track. This repo only covers the two 30Gflops tracks (deepglint-large and iQiyi-large) that we took participate in. For more details such as network design, training strategy and bag of tricks, please refer to our workshop paper.

Download code and models

  1. Using this link to download the EfficientPolyFace and QAN++ models.
  2. Clone this repo and override the files with the same name.

Efficient PolyFace for image face recognition (deepglint-large):

  • Use this example to generate the representation (feature vector) for a single image:
python test_tp.py --test_img 00000f9f87210c8eb9f5fb488b1171d7.jpg --save_path ./

Enhanced quality aware network (QAN++) for video face recognition (iQiyi-large)

  1. Use this example to generate the representation and the quality for a single image. This will produce two files, which store the representation and quality respectively:
python test_quality.py --test_img 000005_99.jpg

Note that to generate quality for a set/sequence/video, you need to generate representations and qualities for all frames in this step by a loop.

  1. Use generate_aggregation_feat.py to generate presentations for a video.

Reference

Please cite our paper if this project helps your research.

@inproceedings{liu2019towards,
  title={Towards Flops-constrained Face Recognition},
  author={Liu, Yu and Song, Guanglu and Zhang, Manyuan and Liu, Jihao and Zhou, Yucong and Yan, Junjie},
  booktitle={Proceedings of the ICCV Workshop},
  year={2019}
}

trojans-face-recognizer's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.