Skip to content

Commit

Permalink
[Doc] Update Yolov5 Serving README.md (PaddlePaddle#432)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md

* Update README.md
  • Loading branch information
felixhjh authored Oct 25, 2022
1 parent 1f39b4f commit 1f6f2f6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/vision/detection/yolov5/serving/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
## 启动服务

```bash
#下载部署示例代码
git clone https://github.com/PaddlePaddle/FastDeploy.git
cd FastDeploy/examples/vision/detection/yolov5/serving/

#下载yolov5模型文件
wget https://bj.bcebos.com/paddlehub/fastdeploy/yolov5s.onnx

# 将模型放入 models/infer/1目录下, 并重命名为model.onnx
mv yolov5s.onnx models/infer/1/
# 将模型放入 models/runtime/1目录下, 并重命名为model.onnx
mv yolov5s.onnx models/runtime/1/model.onnx

# 拉取fastdeploy镜像
docker pull paddlepaddle/fastdeploy:0.3.0-gpu-cuda11.4-trt8.4-21.10
Expand All @@ -18,6 +22,7 @@ nvidia-docker run -it --net=host --name fd_serving -v `pwd`/:/yolov5_serving pad
# 启动服务(不设置CUDA_VISIBLE_DEVICES环境变量,会拥有所有GPU卡的调度权限)
CUDA_VISIBLE_DEVICES=0 fastdeployserver --model-repository=models --backend-config=python,shm-default-byte-size=10485760
```
>> **注意**: 当出现"Address already in use", 请使用`--grpc-port`指定端口号来启动服务,同时更改yolov5_grpc_client.py中的请求端口号
服务启动成功后, 会有以下输出:
```
Expand Down

0 comments on commit 1f6f2f6

Please sign in to comment.