仓库地址GitHub - PaddlePaddle/Paddle-Lite-Demo at master
git clone直接下载到X3上
环境准备
$ sudo apt-get update $ sudo apt-get install gcc g++ make wget unzip libopencv-dev pkg-config $ wget https://www.cmake.org/files/v3.10/cmake-3.10.3.tar.gz $ tar -zxvf cmake-3.10.3.tar.gz $ cd cmake-3.10.3 $ ./configure $ make $ sudo make install
- 模型和预测库下载
$ cd Paddle-Lite-Demo/PaddleLite-armlinux-demo $ ./download_models_and_libs.sh # 下载模型和预测库
- 目标检测Demo的编译与运行(以下所有命令均在设备上操作)
$ cd Paddle-Lite-Demo/PaddleLite-armlinux-demo/yolo_detection_demo $ ./run.sh armv8 # x3 报错1:几个变量没有声明,声明一下就可以了 报错2:dbind-WARNING **: 15:57:44.148: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files 解决办法:sudo apt install at-spi2-core
在终端打印预测结果和性能数据,同时在build目录中生成result.jpg。