Coder Social home page Coder Social logo

headshoulder's Introduction

Head and Shoulder Detection Base on MTCNN

use coco dataset to detect head and shoulder. This implements is base on MTCNN Pretrain model has been placed in models.

prepare

  • download coco keypoints dataset
  • python preprocess/coco.py --data-dir {your coco dataset } --anotation {anotation} -o {coco.feather} # collect keypoints and gen boundbox
  • python preprocess/image_process.py -n {pnet,rnet,onet} --preprocess-path {./data/coco.feather} # gen data for one stage

train

  • train pnet

python nets/net.py -n pnet -lr 0.002 -w 2

  • train rnet

python nets/net.py -n rnet -lr 0.002 -w 2

  • train onet

python nets/net.py -n onet -lr 0.002 -w 2

hard mining

python preprocess/hard_mining.py -n rnet python preprocess/hard_mining.py -n onet

test

python nets/test.py -p video

Warning

  • Prediction is much more slower than expected in keras, but when predicts it on arm-rk3399, it only cost about 100ms totally.(python is really slow)
  • how to improve the performace
    • batch norm
    • change the prediction of bound box, taking consideration of yolo v2/3.
    • cleaning data (it`s really important!!!!!. Our generator scripts exist a lot of noisy)
    • pruning model

current result

metric pnet rnet onet
acc 94% 96.1% 98.5%

headshoulder's People

Contributors

stevenbanama 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.