Giter VIP home page Giter VIP logo

tiny-faces-pytorch's Introduction

tiny-faces-pytorch

This is a PyTorch implementation of Peiyun Hu's awesome tiny face detector.

We use (and recommend) Python 3.6+ for minimal pain when using this codebase (plus Python 3.6 has really cool features).

NOTE Be sure to cite Peiyun's CVPR paper and this repo if you use this code!

This code gives the following mAP results on the WIDER Face dataset:

Setting mAP
easy 0.902
medium 0.892
hard 0.797

Getting Started

  • Clone this repository.
  • Download the WIDER Face dataset and annotations files to data/WIDER.
  • Install dependencies with pip install -r requirements.txt.

Your data directory should look like this for WIDERFace

- data
    - WIDER
        - README.md
        - wider_face_split
        - WIDER_train
        - WIDER_val
        - WIDER_test

Pretrained Weights

You can find the pretrained weights which get the above mAP results here.

Training

Just type make at the repo root and you should be good to go!

In case you wish to change some settings (such as data location), you can modify the Makefile which should be super easy to work with.

Evaluation

To run evaluation and generate the output files as per the WIDERFace specification, simply run make evaluate. The results will be stored in the val_results directory.

You can then use the dataset's eval_tools to generate the mAP numbers (this needs Matlab/Octave).

Similarly, to run the model on the test set, run make test to generate results in the test_results directory.

tiny-faces-pytorch's People

Contributors

varunagrawal avatar dependabot[bot] 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.