未验证 提交 b3502aca 编写于 作者: D Dong Daxiang 提交者: GitHub

Update README.md

上级 4f2f1041
...@@ -125,6 +125,28 @@ curl -H "Content-Type:application/json" -X POST -d '{"words": "我爱北京天 ...@@ -125,6 +125,28 @@ curl -H "Content-Type:application/json" -X POST -d '{"words": "我爱北京天
<h3 align="center">Image Classification</h4> <h3 align="center">Image Classification</h4>
- **Description**: Image classification trained with Imagenet dataset. A label and corresponding probability will be returned.
- **Download**:
``` shell
wget --no-check-certificate https://paddle-serving.bj.bcebos.com/imagenet-example/imagenet_demo.tar.gz
```
- **Host web service**:
``` shell
tar -xzf imagenet_demo.tar.gz
python image_classification_service_demo.py resnet50_serving_model
```
- **Request sample**:
``` shell
curl -H "Content-Type:application/json" -X POST -d '{"url": "https://paddle-serving.bj.bcebos.com/imagenet-example/daisy.jpg", "fetch": ["score"]}' http://127.0.0.1:9292/image/prediction
```
- **Request result**:
``` shell
{"label":"daisy","prob":0.9341403245925903}
```
<h2 align="center">Document</h2> <h2 align="center">Document</h2>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册