GithubHelp home page GithubHelp logo

facedetector's Introduction

RetinaFace in PyTorch

support

run on ubuntu20, ubuntu18, python3

Installation

sudo apt-get install python3-pip3
pip3 install -r requirements.txt

download weight

https://drive.usercontent.google.com/download?id=14KX6VqF69MdSPk3Tr9PlDYbq7ArpdNUW&export=download&authuser=0&confirm=t&uuid=1c047ae2-05e4-4f33-b66e-e0d73a711f5b&at=APZUnTWD5sWebJKA6TbMpsDvAHFJ:1700533565125

  • save the weight in folder named weigths

run script

python3 script.py  images/
python3 script.py  images/1.jpg
  • use defaults vis_thres is 0.6
  • result will be saved in folder named result

evaluation

  1. download the val images in https://drive.google.com/file/d/1GUCogbp16PMGa39thoMMeWxp7Rp5oM8Q/view

  2. unzip the WIDER_val.zip

  3. download the val annotation label in http://shuoyang1213.me/WIDERFACE/support/bbx_annotation/wider_face_split.zip

  4. unzip wider_face_split.zip in folder of WIDER_val, and rename wider_face_split as annotation

python3 metric.py         # use default iou_thres=0.5
python3 metric.py  0.7    # use  iou_thres=0.7
  • 0.7 means iou_thres=0.7, or defaults is 0.5
  • result will be saved in folder named result

unit test

  1. download test dataset in https://drive.google.com/file/d/1HIfDbVEWKmsYKJZm4lchTBDLW5N7dY5T/view
  2. unzip the test dataset
  3. run test:
python3 script.py WIDER_test/images/0--Parade
python3 script.py WIDER_test/images/1--Handshaking
...
...
...
python3 script.py WIDER_test/images/61--Street_Battle

facedetector's People

Contributors

tslgithub avatar

Stargazers

 avatar

Watchers

 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.