Skip to content

Irenen94/PyTorch_YOLOv4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YOLOv4

This is PyTorch implementation of YOLOv4 which is based on ultralytics/yolov5.

development log

Expand

Pretrained Models & Comparison

Model Test Size APval AP50val AP75val APSval APMval APLval yaml weights
YOLOv4s-mish 672 40.3% 59.4% 43.8% 23.9% 45.3% 52.2% yaml weights
YOLOv4m-mish 672 44.7% 64.0% 48.7% 28.3% 50.2% 57.7% yaml weights
YOLOv4l-mish 672 48.1% 66.8% 52.6% 31.9% 53.3% 61.0% yaml weights
YOLOv4x-mish 672 49.8% 68.4% 54.4% 32.7% 55.3% 63.6% yaml weights
YOLOv4x-mish TTA 51.2% 69.1% 56.1% 35.6% 56.3% 64.9% yaml weights
CSPp6-mish 960 51.7% 70.2% 56.5% 34.5% 56.3% 66.0% - -
CSPp6-mish TTA 52.7% 70.4% 57.8% 37.1% 57.3% 66.6% - -
CSPp6-mish 1280 53.1% 71.2% 57.9% 37.6% 57.3% 66.3% - -
CSPp6-mish TTA 53.8% 71.4% 59.0% 38.3% 58.2% 67.7% - -
Model Test Size APtest AP50test AP75test APStest APMtest APLtest batch1 throughput
CSPp6-mish 1280 53.3% 71.3% 58.2% 35.3% 56.9% 64.8% 30 fps
CSPp6-mish TTA 54.0% 71.5% 59.2% 36.3% 57.7% 66.0% -

Requirements

pip install -r requirements.txt

Training

python train.py --data coco.yaml --cfg yolov4l-mish.yaml --weights ''

※ Please also install https://github.com/thomasbrandon/mish-cuda

Testing

python test.py --img 672 --conf 0.001 --batch 32 --data coco.yaml --weights weights/yolov4l-mish.pt

Citation

@article{bochkovskiy2020yolov4,
  title={{YOLOv4}: Optimal Speed and Accuracy of Object Detection},
  author={Bochkovskiy, Alexey and Wang, Chien-Yao and Liao, Hong-Yuan Mark},
  journal={arXiv preprint arXiv:2004.10934},
  year={2020}
}
@inproceedings{wang2020cspnet,
  title={{CSPNet}: A New Backbone That Can Enhance Learning Capability of {CNN}},
  author={Wang, Chien-Yao and Mark Liao, Hong-Yuan and Wu, Yueh-Hua and Chen, Ping-Yang and Hsieh, Jun-Wei and Yeh, I-Hau},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops},
  pages={390--391},
  year={2020}
}

Acknowledgements

About

PyTorch implementation of YOLOv4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.5%
  • Shell 0.5%