mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 17:17:14 +08:00
[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
This commit is contained in:
@@ -1,23 +1,24 @@
|
||||
# YOLOv5 Python部署示例
|
||||
English | [简体中文](README_CN.md)
|
||||
# YOLOv5 Python Deployment Example
|
||||
|
||||
在部署前,需确认以下两个步骤
|
||||
Before deployment, the following step need to be confirmed:
|
||||
|
||||
- 1. 软硬件环境满足要求,参考[FastDeploy环境要求](../../../../../../docs/cn/build_and_install/sophgo.md)
|
||||
- 1. Hardware and software environment meets the requirements. Please refer to [FastDeploy Environment Requirement](../../../../../../docs/en/build_and_install/sophgo.md)
|
||||
|
||||
本目录下提供`infer.py`快速完成 YOLOv5 在SOPHGO TPU上部署的示例。执行如下脚本即可完成
|
||||
`infer.py` in this directory provides a quick example of deployment of the YOLOv5 model on SOPHGO TPU. Please run the following script:
|
||||
|
||||
```bash
|
||||
# 下载部署示例代码
|
||||
# Download the sample deployment code.
|
||||
git clone https://github.com/PaddlePaddle/FastDeploy.git
|
||||
cd FastDeploy/examples/vision/detection/yolov5/sophgo/python
|
||||
|
||||
# 下载图片
|
||||
# Download images.
|
||||
wget https://gitee.com/paddlepaddle/PaddleDetection/raw/release/2.4/demo/000000014439.jpg
|
||||
|
||||
# 推理
|
||||
# Inference.
|
||||
python3 infer.py --model_file ./bmodel/yolov5s_1684x_f32.bmodel --image 000000014439.jpg
|
||||
|
||||
# 运行完成后返回结果如下所示
|
||||
# The returned result.
|
||||
DetectionResult: [xmin, ymin, xmax, ymax, score, label_id]
|
||||
268.480255,81.053055, 298.694794, 169.439026, 0.896569, 0
|
||||
104.731163,45.661972, 127.583824, 93.449387, 0.869531, 0
|
||||
@@ -41,6 +42,6 @@ DetectionResult: [xmin, ymin, xmax, ymax, score, label_id]
|
||||
101.406250,152.562500, 118.890625, 169.140625, 0.253891, 24
|
||||
```
|
||||
|
||||
## 其它文档
|
||||
- [YOLOv5 C++部署](../cpp)
|
||||
- [转换YOLOv5 SOPHGO模型文档](../README.md)
|
||||
## Other Documents
|
||||
- [YOLOv5 C++ Deployment](../cpp)
|
||||
- [Converting YOLOv5 SOPHGO model](../README.md)
|
||||
|
Reference in New Issue
Block a user