Git Product home page Git Product logo

face-detection's Introduction

Face-Detection

Hello welcome to my face detection,

Its pytorch implementation of face detection system using yolo techniques on the famous widerface
dataset : http://shuoyang1213.me/WIDERFACE/

Installation

  • Install PyTorch : https://pytorch.org/

  • Clone the Repo : $ git clone https://github.com/AbdallahOmarAhmed/face-mask-detection

  • Install requirements : $ pip install -r requirements.txt

  • Setup evaluation : $ python3 eval/setup.py build_ext --inplace

Train

  • Download widerface dataset in the project dir :
$ gdown https://drive.google.com/uc?id=15hGDLhsx8bLgLcIRD5DhYt5iBxnjNF1M
$ gdown https://drive.google.com/uc?id=1GUCogbp16PMGa39thoMMeWxp7Rp5oM8Q
$ wget shuoyang1213.me/WIDERFACE/support/bbx_annotation/wider_face_split.zip
  • Unzip the dataset files:
$ unzip WIDER_train.zip
$ unzip WIDER_val.zip
$ unzip wider_face_split.zip
  • Run the train.py file : $ python3 train.py [batch size]

Evaluation

Pre trained models:

backbone epoch time (rtx-2070) easy accurace medium accurace hard accurace resolution
resnet18 151 sec 88.4% 83.4% 56.7% 448 * 448

Test your own model:

  • Make predictions : $ python3 make_prediction.py [your model path]

  • Test predictions : $ python3 eval/evaluation.py

Demo

Test an image:

$ python3 test_image.py [model path] [image path]

image_screenshot_١٧ ١١ ٢٠٢١

face-detection's People

Contributors

abdallahomarahmed avatar

Stargazers

 avatar Mohamed Abdelrazek avatar  avatar

Watchers

James Cloos avatar  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.