Skip to content

Commit

Permalink
fix serving args in version 0.3 (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxicoding authored Jul 30, 2020
1 parent 34abd90 commit 3c5f6af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tar -zxf ResNeXt101_32x16d_wsl_model.tar.gz

python -m paddle_serving_server_gpu.serve \
--model ResNeXt101_32x16d_wsl_model \
--mem_optim True \
--mem_optim \
--port 9898 \
--gpu_ids 1
```
Expand Down
2 changes: 1 addition & 1 deletion example/distill/mnist_distill/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ python -m paddle_serving_server_gpu.serve \
--model mnist_cnn_model \
--thread 4 \
--port 9292 \
--mem_optim True \
--mem_optim \
--gpu_ids 0
```
### 2.2 运行蒸馏训练
Expand Down
3 changes: 2 additions & 1 deletion python/paddle_edl/distill/redis/redis_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def __init__(self, ip='127.0.0.1', port=6379, passwd=None):
self._ip = ip
self._port = port
self._passwd = passwd
self._redis = redis.Redis(host=ip, port=port, password=passwd)
self._redis = redis.Redis(
host=ip, port=port, password=passwd, decode_responses=True)
print("connected to redis ip:{} port:{}".format(ip, port))

def get_service(self, service_name):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
#!/bin/bash
unset https_proxy http_proxy

version_str=$(python --version 2>&1)
if [[ ${version_str} > "Python 3" ]]; then
echo "fix me under Python 3"
exit 0
fi


nohup redis-server --port 2379 2>&1 &
redis_pid=$!

Expand Down

0 comments on commit 3c5f6af

Please sign in to comment.