diff --git a/python/examples/faster_rcnn_model/README_CN.md b/python/examples/faster_rcnn_model/README_CN.md index 7aa4d343f05df92068d36499b48d9aa5ad7b2a2e..a2c3618f071a3650d50c791595bc04ba0c1d378a 100644 --- a/python/examples/faster_rcnn_model/README_CN.md +++ b/python/examples/faster_rcnn_model/README_CN.md @@ -12,7 +12,7 @@ wget https://paddle-serving.bj.bcebos.com/pddet_demo/infer_cfg.yml ### 启动服务 ``` tar xf faster_rcnn_model.tar.gz -mv faster_rcnn_model/pddet* . +mv faster_rcnn_model/pddet* ./ GLOG_v=2 python -m paddle_serving_server_gpu.serve --model pddet_serving_model --port 9494 --gpu_id 0 ``` diff --git a/python/examples/imdb/test_client.py b/python/examples/imdb/test_client.py index 9de7a45b0646167c43ea7d3b98b0f3782112f6f0..fdc3ced25377487a2844d57c4e6121801e9fa7fa 100644 --- a/python/examples/imdb/test_client.py +++ b/python/examples/imdb/test_client.py @@ -31,4 +31,4 @@ for line in sys.stdin: feed = {"words": word_ids} fetch = ["acc", "cost", "prediction"] fetch_map = client.predict(feed=feed, fetch=fetch) - print("{} {}".format(fetch_map["prediction"][0][1], label[0])) + print("{} {}".format(fetch_map["prediction"][0], label[0])) diff --git a/python/examples/senta/senta_web_service.py b/python/examples/senta/senta_web_service.py index 9a59d9d030ae55584f1b9939a02c782bae3c5011..0c0205e73cdd26231a94b2f0c9c41da84aaca961 100644 --- a/python/examples/senta/senta_web_service.py +++ b/python/examples/senta/senta_web_service.py @@ -39,6 +39,8 @@ class SentaService(WebService): self.show = show def start_lac_service(self): + if not os.path.exists('./lac_serving'): + os.mkdir("./lac_serving") os.chdir('./lac_serving') self.lac_port = self.port + 100 r = os.popen(