Files
FastDeploy/examples/vision/detection/yolov5/sophgo/cpp/README_CN.md
charl-u 1135d33dd7 [Doc]Add English version of documents in examples/ (#1042)
* 第一次提交

* 补充一处漏翻译

* deleted:    docs/en/quantize.md

* Update one translation

* Update en version

* Update one translation in code

* Standardize one writing

* Standardize one writing

* Update some en version

* Fix a grammer problem

* Update en version for api/vision result

* Merge branch 'develop' of https://github.com/charl-u/FastDeploy into develop

* Checkout the link in README in vision_results/ to the en documents

* Modify a title

* Add link to serving/docs/

* Finish translation of demo.md

* Update english version of serving/docs/

* Update title of readme

* Update some links

* Modify a title

* Update some links

* Update en version of java android README

* Modify some titles

* Modify some titles

* Modify some titles

* modify article to document

* update some english version of documents in examples

* Add english version of documents in examples/visions

* Sync to current branch

* Add english version of documents in examples
2023-01-06 09:35:12 +08:00

1.5 KiB
Raw Blame History

English | 简体中文

YOLOv5 C++部署示例

本目录下提供infer.cc快速完成yolov5s模型在SOPHGO BM1684x板子上加速部署的示例。

在部署前,需确认以下两个步骤:

  1. 软硬件环境满足要求
  2. 根据开发环境从头编译FastDeploy仓库

以上步骤请参考SOPHGO部署库编译实现

生成基本目录文件

该例程由以下几个部分组成

.
├── CMakeLists.txt
├── build  # 编译文件夹
├── image  # 存放图片的文件夹
├── infer.cc
└── model  # 存放模型文件的文件夹

编译

编译并拷贝SDK到thirdpartys文件夹

请参考SOPHGO部署库编译仓库编译SDK编译完成后将在build目录下生成fastdeploy-0.0.3目录.

拷贝模型文件以及配置文件至model文件夹

将Paddle模型转换为SOPHGO bmodel模型转换步骤参考文档
将转换后的SOPHGO bmodel模型文件拷贝至model中

准备测试图片至image文件夹

wget https://gitee.com/paddlepaddle/PaddleDetection/raw/release/2.4/demo/000000014439.jpg
cp 000000014439.jpg ./images

编译example

cd build
cmake .. -DFASTDEPLOY_INSTALL_DIR=${PWD}/fastdeploy-0.0.3
make

运行例程

./infer_demo model images/000000014439.jpg