ultralytics/yolov5

YOLOv5 detection/segmentation/classification

What

PyTorch YOLOv5 for detection, instance segmentation and classification, with training and export (ONNX, TensorRT, CoreML, TFLite).

How to use

Clone, pip install -r requirements.txt, then python detect.py --weights yolov5s.pt --source 0 (webcam) or train.py for custom data. Newer projects usually use the ultralytics package instead.