cd yolov5/
pip install -r requirements.txt
to install necessary dependencies to run this code.
python yolov5/detect.py --weights yolov5/runs/train/yolov5s_results/weights/last.pt --img 416 --conf 0.4 --source 0
to run using your computers front webcam.
See https://github.com/ultralytics/yolov5 for more information on training the different model architectures.