
* 更新ppdet * 更新ppdet * 更新ppdet * 更新ppdet * 更新ppdet * 新增ppdet_decode * 更新多batch支持 * 更新多batch支持 * 更新多batch支持 * 更新注释内容 * 尝试解决pybind问题 * 尝试解决pybind的问题 * 尝试解决pybind的问题 * 重构代码 * 重构代码 * 重构代码 * 按照要求修改 * 更新Picodet文档 * 更新Picodet文档,更新yolov8文档 * 修改picodet 以及 yolov8 example * 更新Picodet模型转换脚本 * 更新example代码 * 更新yolov8量化代码 * 修复部分bug 加入pybind * 修复pybind * 修复pybind错误的问题 * 更新说明文档 * 更新说明文档
English | 简体中文
PaddleDetection Deployment Examples for C++
infer_picodet.cc
in this directory provides an example of quickly completing the PPDetection model on Rockchip boards for accelerated deployment via second-generation NPUs.
Before deployment, the following two steps need to be confirmed:
- Hardware and software environment meets the requirements.
- Download the pre-compiled deployment repository or compile the FastDeploy repository from scratch according to the development environment.
For the above steps, please refer to How to Build RKNPU2 Deployment Environment.
Generate Basic Directory Files
The routine consists of the following parts:
.
├── CMakeLists.txt
├── build # Compile Folder
├── image # Folder for images
├── infer_picodet.cc
├── model # Folder for models
└── thirdpartys # Folder for sdk
First, please build a directory structure
mkdir build
mkdir images
mkdir model
mkdir thirdpartys
Compile
Compile and Copy SDK to folder thirdpartys
Please refer to How to Build RKNPU2 Deployment Environment to compile SDK.After compiling, the fastdeploy-0.0.3 directory will be created in the build directory, please move it to the thirdpartys directory.
Copy model and configuration files to folder Model
In the process of Paddle dynamic map model -> Paddle static map model -> ONNX mdoel, ONNX file and the corresponding yaml configuration file will be generated. Please move the configuration file to the folder model. After converting to RKNN, the model file also needs to be copied to folder model.
Prepare Test Images to folder image
wget https://gitee.com/paddlepaddle/PaddleDetection/raw/release/2.4/demo/000000014439.jpg
cp 000000014439.jpg ./images
Compile example
cd build
cmake ..
make -j8
make install
Running Routines
cd ./build/install
./infer_picodet model/picodet_s_416_coco_lcnet images/000000014439.jpg