mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 00:33:03 +08:00

* 第一次提交 * 补充一处漏翻译 * 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 * Add english version of documents in examples * Add english version of documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples * Update some documents in examples
37 lines
1.1 KiB
Markdown
37 lines
1.1 KiB
Markdown
English | [简体中文](README_CN.md)
|
|
|
|
# YOLOv5 Python Simple Serving Demo
|
|
|
|
|
|
## Environment
|
|
|
|
- 1. Prepare environment and install FastDeploy Python whl, refer to [download_prebuilt_libraries](../../../../../../docs/en/build_and_install/download_prebuilt_libraries.md)
|
|
|
|
Server:
|
|
```bash
|
|
# Download demo code
|
|
git clone https://github.com/PaddlePaddle/FastDeploy.git
|
|
cd FastDeploy/examples/vision/detection/yolov5/python/serving
|
|
|
|
# Download model
|
|
wget https://bj.bcebos.com/paddlehub/fastdeploy/yolov5s_infer.tar
|
|
tar xvf yolov5s_infer.tar
|
|
|
|
# Launch server, change the configurations in server.py to select hardware, backend, etc.
|
|
# and use --host, --port to specify IP and port
|
|
fastdeploy simple_serving --app server:app
|
|
```
|
|
|
|
Client:
|
|
```bash
|
|
# Download demo code
|
|
git clone https://github.com/PaddlePaddle/FastDeploy.git
|
|
cd FastDeploy/examples/vision/detection/yolov5/python/serving
|
|
|
|
# Download test image
|
|
wget https://gitee.com/paddlepaddle/PaddleDetection/raw/release/2.4/demo/000000014439.jpg
|
|
|
|
# Send request and get inference result (Please adapt the IP and port if necessary)
|
|
python client.py
|
|
```
|