All code is borrowed from ByteTrack and YOLOv5.
- Install packages:
pip install -r requirements.txt
- Download pretrain model from yolov5 model zoo.
- Run the code:
example:
%cd yolov5 python demo_track.py <demo type, eg. image, video and webcam> --path # path to images or video --device # gpu or cpu --num_classes -c,--ckpt # path to checkpoint --tsize # input size, only (608, 1088) for yolov5s,m,n and (800, 1440) for yolov5l,x
python demo_track.py image --path ./data --device gpu --num_classes 80 --ckpt ./weights/yolov5s.pth --tsize (608, 1088)