GithubHelp home page GithubHelp logo

jamessmith90 / s3fd.pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lippman1125/s3fd.pytorch

0.0 1.0 0.0 74.13 MB

A higher performance PyTorch implementation of S3FD

License: Apache License 2.0

Python 96.64% Shell 0.45% C++ 0.08% Cuda 2.83%

s3fd.pytorch's Introduction

MobileNet-V2 S3FD in PyTorch

License

A PyTorch implementation of S3FD: Single Shot Scale-invariant Face Detector. The official code in Caffe can be found here.

WIDER Face Performance

Subset Original Caffe PyTorch Implementation MV2 Pytorch Implementation
Easy 93.7% 94.1% 91.5%
Medium 92.4% 92.9% 89.0%
Hard 85.2% 85.4% 76.5%

Component

  • [√] Max-out background label
  • [√] Scale compensation anchor matching strategy
  • [√] Scale-equitable framework

Contents

Installation

  1. Install PyTorch-1.0.0 according to your environment.

  2. Clone this repository. We will call the cloned directory as $S3FD_ROOT.

git clone https://github.com/lippman1125/S3FD.PyTorch.git
  1. Compile the nms:
./make.sh

Note: We support PyTorch-1.0.0 and Python 3+.

Training

  1. Download WIDER FACE dataset, place the images under this directory:
$S3FD_ROOT/data/WIDER_FACE/images
  1. Convert WIDER FACE annotations to VOC format or download our converted annotations, place them under this directory:
$S3FD_ROOT/data/WIDER_FACE/annotations
  1. Download VGG Pretrained Model from here, place it under this directory:
$S3FD_ROOT/weights
  1. Train the model using WIDER FACE(You should modify below file depend on your setting):
cd $S3FD_ROOT/
./train_s3fd.sh

Evaluation(WIDER Face)

  1. Evaluate the trained model using:(You should modify below file depend on your setting)
./test_s3fd.sh
  1. If you can use Matlab, downloading official eval tools to evaluate the performance. If you use Python, clone this repo WiderFace-Evaluation to evaluate the performance.

Performance(FDDB)

  1. Single-Scale : minside is 300 pixels aligned

ROC
PR

Test

  1. Single-Scale : minside is 1080 pixels aligned

festival
office
oscar

References

  • Official release (Caffe)

  • A huge thank you to FaceBoxes ports in PyTorch that have been helpful:

    Note: If you can not download the converted annotations, the provided images and the trained model through the above links, you can download them through BaiduYun.

s3fd.pytorch's People

Contributors

lippman1125 avatar luuuyi avatar

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.