get head bbox by yolov5 in class, which can count class student number and get student whether uphead or downhead
class_Yolov5_head_ is a real-time,high accuracy head detection and can classify head pose including uphead and downhead.
- get your own data including *.jpg and xml files(label).
- use ./data/retinaface2yolo.py to get yolo training dataset from xml files.
python ./data/retinaface2yolo.py
python ./data/val2yolo.py
- 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, setcfg
as your yaml file from yolov5-face yaml files. - you can set
epoch
andbatch_size
by all you want.
python3 test_widerface.py --weights 'your test model' --img-size 640
cd widerface_evaluate
python3 evaluation.py
- you can use
detect_face.py
to test your model, by images or videos.
https://github.com/ultralytics/yolov5
https://github.com/DayBreak-u/yolo-face-with-landmark
https://github.com/xialuxi/yolov5_face_landmark