https://github.com/meituan/YOLOv6/tree/main/deploy/ONNX/OpenCV
包含相應(yīng)的文檔以及說明例衍。
環(huán)境配置
? ? python?
conda create -n py38 python==3.8 -y
conda activate py38
pip install opencv-python==4.5.5.64
? ? ? ? c++. mac cpu 參考 https://ganquan.org/2022/03/11/macos-opencv-cpp-vscode/? 下載編譯opencv? 修改對應(yīng)的?OpenCV_DIR 到install
set(OpenCV_DIR? yourpath/opencv/install/lib/cmake/opencv4)
復(fù)現(xiàn)300次訓(xùn)練測速結(jié)論? ?mac i7 2.6GHz
python? yolov6n???85.16?ms??yolov5n??135.67?ms? ??yolox_nano? ?101.21?ms
c++? ? ? ?yolov6n???81.78?ms??yolov5n??135.79?ms? ??yolox_nano? ?106.99?ms