• 下载git
  • 将下载后文件安装
  • git bash: git clone https://github.com/ultralytics/yolov5.git
  • cd yolov5
  • pip install -r requirements.txt
  • python detect.py --source data\images\bus.jpg --weights yolov5s.pt --conf 0.25 # 运行无错则torch安装成功