Skip to content

v5.0.8

Compare
Choose a tag to compare
@fcakyon fcakyon released this 24 Aug 19:01
· 120 commits to main since this release
5324365
  • update to 24.08.21 ultralytics/yolov5

  • cli api changes:

Use from CLI

You can call yolov5 train, yolov5 detect, yolov5 val and yolov5 export commands after installing the package via pip:

Training

Run commands below to reproduce results on COCO dataset (dataset auto-downloads on first use). Training times for YOLOv5s/m/l/x are 2/4/6/8 days on a single V100 (multi-GPU times faster). Use the largest --batch-size your GPU allows (batch sizes shown for 16 GB devices).

$ yolov5 train --data coco.yaml --cfg yolov5s.yaml --weights '' --batch-size 64
                                      yolov5m                                40
                                      yolov5l                                24
                                      yolov5x                                16
Inference

yolov5 detect command runs inference on a variety of sources, downloading models automatically from the latest YOLOv5 release and saving results to runs/detect.

$ yolov5 detect --img 1280 --source 0  # webcam
                                    file.jpg  # image
                                    file.mp4  # video
                                    path/  # directory
                                    path/*.jpg  # glob
                                    rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa  # rtsp stream
                                    rtmp://192.168.1.105/live/test  # rtmp stream
                                    http://112.50.243.8/PLTV/88888888/224/3221225900/1.m3u8  # http stream

To run inference on example images in yolov5/data/images: