一、安装cmake

二、下载pybind11

  1. git clone https://github.com/pybind/pybind11.git

  2. cd pybind11/

  3. mkdir build

  4. cd build/

  5. cmake ..

  6. make -j4

  7. 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
 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐