mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
English | 简体中文
PaddleSeg Python Deployment Example
Before deployment, the following step need to be confirmed:
-
- Hardware and software environment meets the requirements. Please refer to FastDeploy Environment Requirement.
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.