
How to train and use Yolox on WiderFace dataset
View Jupyter Notebook »
View Test
·
Report Bug
·
Request Feature
Table of Contents
YOLOX is an anchor-free version of YOLO with strong performance for object detection. In this repository I train Yolox on WiderFace dataset with Google Colab to develop a face detection algorithm.
Look at Jupyter Notebooks to see training details and how to make this algorithm from scratch.
-
Clone the repo
git clone https://github.com/VarCode-ai/yolox-face-detection.git cd yolox-face-detection
-
Install YOLOX
pip3 install -U pip && pip3 install -r requirements.txt pip3 install -v -e . pip3 install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI" pip3 install cython
-
Download JPEGImages of Wider Face dataset
cd datasets\VOCdevkit\VOC2022\JPEGImages python download_images.py
python tools/demo.py webcam -f exps/example/yolox_voc/yolox_voc_s.py -c YOLOX_outputs/yolox_voc_s/latest_ckpt.pth --conf 0.25 --nms 0.45 --tsize 640 --device [cpu/gpu]
python tools/demo.py image -f exps/example/yolox_voc/yolox_voc_s.py -c YOLOX_outputs/yolox_voc_s/latest_ckpt.pth --path assets/001.jpg --conf 0.25 --nms 0.45 --tsize 640 --save_result --device [cpu/gpu]
python tools/demo.py video -f exps/example/yolox_voc/yolox_voc_s.py -c YOLOX_outputs/yolox_voc_s/latest_ckpt.pth --path assets/will_smith_slap.mp4 --conf 0.25 --nms 0.45 --tsize 640 --save_result --device [cpu/gpu]
For more examples, please refer to the Documentation
Code for resume training
python tools/train.py -f exps/example/yolox_voc/yolox_voc_s.py -d 1 -b 4 -c YOLOX_outputs/yolox_voc_s/latest_ckpt.pth --resume
Distributed under the Apache-2.0 License. See LICENSE
for more information.
Vincenzo Varriale - @vincenzovarriale - [email protected]
Project Link: https://github.com/VarCode-ai/yolox-face-detection