树莓派4B安装yolov8,使用onnx格式识别
·
一、安装cmake

二、下载pybind11
-
git clone https://github.com/pybind/pybind11.git
-
cd pybind11/
-
mkdir build
-
cd build/
-
cmake ..
-
make -j4
-
sudo make install



三、安装完成后还要安装protobuf
下载protobuf
wget https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.18.2.tar.gz
解压到目录后安装更新

然后更新软件:
sudo apt-get install autoconf libtool curl make g++ unzip
cd protobuf-3.18.2/
sudo ./autogen.sh # 生成配置脚本
sudo ./configure
sudo make # 从Makefile读取指令
sudo make install
sudo ldconfig # 更新共享库缓存
protoc --version # 检查是否安装成功




四、安装完成后就可以安装yoloV8
pip install ultralytics -i https://pypi.tuna.tsinghua.edu.cn/simple

五、安装完成后开始安装onnx
pip install onnx==1.16.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
六、安装onnxruntime
更多推荐
所有评论(0)