Files
FastDeploy/examples/vision/segmentation/paddleseg/sophgo/python
2023-02-08 03:12:50 +00:00
..
2023-01-04 15:49:17 +08:00
2023-02-08 03:12:50 +00:00

English | 简体中文

PaddleSeg Python Deployment Example

Before deployment, the following step need to be confirmed:

infer.py in this directory provides a quick example of deployment of the pp_liteseg model on SOPHGO TPU. Please run the following script:

# Download the sample deployment code.
git clone https://github.com/PaddlePaddle/FastDeploy.git
cd FastDeploy/examples/vision/segmentation/paddleseg/sophgo/python

# Download images.
wget https://paddleseg.bj.bcebos.com/dygraph/demo/cityscapes_demo.png

# Inference.
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.

Other Documents