Update docs

This commit is contained in:
felixhjh
2023-02-08 16:33:12 +00:00
parent bc3a7ce8fe
commit 844d80ecae
61 changed files with 1117 additions and 2519 deletions

View File

@@ -1,27 +1,33 @@
English | [简体中文](README_CN.md)
# PaddleSeg Python Deployment Example
[English](README.md) | 简体中文
# PaddleSeg Python部署示例
Before deployment, the following step need to be confirmed:
## 算能硬件编译FastDeploy wheel包环境准备
- 1. Hardware and software environment meets the requirements. Please refer to [FastDeploy Environment Requirement](../../../../../../docs/en/build_and_install/sophgo.md).
在部署前需自行编译基于算能硬件的FastDeploy python wheel包并安装参考文档[算能硬件部署环境](https://github.com/PaddlePaddle/FastDeploy/blob/develop/docs/cn/build_and_install#算能硬件部署环境)
`infer.py` in this directory provides a quick example of deployment of the pp_liteseg model on SOPHGO TPU. Please run the following script:
本目录下提供`infer.py`快速完成 pp_liteseg SOPHGO TPU上部署的示例。执行如下脚本即可完成
```bash
# Download the sample deployment code.
# 下载部署示例代码
git clone https://github.com/PaddlePaddle/FastDeploy.git
cd FastDeploy/examples/vision/segmentation/paddleseg/sophgo/python
cd path/to/paddleseg/sophgo/python
# Download images.
# 下载图片
wget https://paddleseg.bj.bcebos.com/dygraph/demo/cityscapes_demo.png
# Inference.
# PaddleSeg模型转换为bmodel模型
将Paddle模型转换为SOPHGO bmodel模型转换步骤参考[文档](../README_CN.md#将paddleseg推理模型转换为bmodel模型步骤)
# 推理
python3 infer.py --model_file ./bmodel/pp_liteseg_1684x_f32.bmodel --config_file ./bmodel/deploy.yaml --image cityscapes_demo.png
# The returned result.
The result is saved as sophgo_img.png.
# 运行完成后返回结果如下所示
运行结果保存在sophgo_img.png
```
## Other Documents
- [pp_liteseg C++ Deployment](../cpp)
- [Converting pp_liteseg SOPHGO model](../README.md)
## 快速链接
- [pp_liteseg C++部署](../cpp)
- [转换 pp_liteseg SOPHGO模型文档](../README_CN.md#导出bmodel模型)
## 常见问题
- [如何将模型预测结果SegmentationResult转为numpy格式](https://github.com/PaddlePaddle/FastDeploy/blob/develop/docs/cn/faq/vision_result_related_problems.md)

View File

@@ -1,27 +0,0 @@
[English](README.md) | 简体中文
# PaddleSeg Python部署示例
在部署前,需确认以下步骤
- 1. 软硬件环境满足要求,参考[FastDeploy环境要求](https://github.com/PaddlePaddle/FastDeploy/blob/develop/docs/cn/build_and_install/sophgo.md)
本目录下提供`infer.py`快速完成 pp_liteseg 在SOPHGO TPU上部署的示例。执行如下脚本即可完成
```bash
# 下载部署示例代码
git clone https://github.com/PaddlePaddle/FastDeploy.git
cd FastDeploy/examples/vision/segmentation/paddleseg/sophgo/python
# 下载图片
wget https://paddleseg.bj.bcebos.com/dygraph/demo/cityscapes_demo.png
# 推理
python3 infer.py --model_file ./bmodel/pp_liteseg_1684x_f32.bmodel --config_file ./bmodel/deploy.yaml --image cityscapes_demo.png
# 运行完成后返回结果如下所示
运行结果保存在sophgo_img.png中
```
## 其它文档
- [pp_liteseg C++部署](../cpp)
- [转换 pp_liteseg SOPHGO模型文档](../README.md)