Giter VIP home page Giter VIP logo

class_yolov5_head's Introduction

class_yolov5_head

get head bbox by yolov5 in class, which can count class student number and get student whether uphead or downhead

Introduction

class_Yolov5_head_ is a real-time,high accuracy head detection and can classify head pose including uphead and downhead.

Data preparation

  1. get your own data including *.jpg and xml files(label).
  2. use ./data/retinaface2yolo.py to get yolo training dataset from xml files.
python ./data/retinaface2yolo.py
python ./data/val2yolo.py

Training

  1. you can get pretrain model from yolov5-face, and you should set path in train.py. You should set weights as your default pretrain model, set cfg as your yaml file from yolov5-face yaml files.
  2. you can set epoch and batch_size by all you want.

WIDERFace Evaluation

python3 test_widerface.py --weights 'your test model' --img-size 640

cd widerface_evaluate
python3 evaluation.py

Test

  1. you can use detect_face.py to test your model, by images or videos.

References

https://github.com/ultralytics/yolov5

https://github.com/DayBreak-u/yolo-face-with-landmark

https://github.com/xialuxi/yolov5_face_landmark

https://github.com/biubug6/Pytorch_Retinaface

https://github.com/deepinsight/insightface

class_yolov5_head's People

Contributors

richardomrmu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lihy790315

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.