yolov5爬坑记
-
training
- prepare images need to be trained and manual label training images
- prepare data for ./data/testImage.yaml
- python train.py --img 130 --batch 16 --epochs 60 --data ./data/testImage.yaml --weights yolov5s.pt
- 虚拟化 pytorch_yolov5> tensorboard --logdir runs rain
-
detect
python detect.py --source testImg --weights best.pt --img 130 -
Export torch script model
cd pytorch_yolov5; python export.py --weights .est360.pt --data=data estImage.yaml -
部署yolov5
git clone https://github.com/yasenh/libtorch-yolov5.git
wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.9.0%2Bcpu.zip
注释detector.h找不到的头文件
include <c10/cuda/CUDAStream.h>
include <ATen/cuda/CUDAEvent.h>
reference link:
https://www.cnblogs.com/winslam/p/14614632.html