Skip to content

Commit 3c5f6af

Browse files
authored
fix serving args in version 0.3 (#129)
1 parent 34abd90 commit 3c5f6af

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tar -zxf ResNeXt101_32x16d_wsl_model.tar.gz
4545

4646
python -m paddle_serving_server_gpu.serve \
4747
--model ResNeXt101_32x16d_wsl_model \
48-
--mem_optim True \
48+
--mem_optim \
4949
--port 9898 \
5050
--gpu_ids 1
5151
```

example/distill/mnist_distill/README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ python -m paddle_serving_server_gpu.serve \
2727
--model mnist_cnn_model \
2828
--thread 4 \
2929
--port 9292 \
30-
--mem_optim True \
30+
--mem_optim \
3131
--gpu_ids 0
3232
```
3333
### 2.2 运行蒸馏训练

python/paddle_edl/distill/redis/redis_store.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def __init__(self, ip='127.0.0.1', port=6379, passwd=None):
2020
self._ip = ip
2121
self._port = port
2222
self._passwd = passwd
23-
self._redis = redis.Redis(host=ip, port=port, password=passwd)
23+
self._redis = redis.Redis(
24+
host=ip, port=port, password=passwd, decode_responses=True)
2425
print("connected to redis ip:{} port:{}".format(ip, port))
2526

2627
def get_service(self, service_name):

python/paddle_edl/tests/unittests/test_redis_distill_reader.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
#!/bin/bash
22
unset https_proxy http_proxy
33

4-
version_str=$(python --version 2>&1)
5-
if [[ ${version_str} > "Python 3" ]]; then
6-
echo "fix me under Python 3"
7-
exit 0
8-
fi
9-
10-
114
nohup redis-server --port 2379 2>&1 &
125
redis_pid=$!
136

0 commit comments

Comments
 (0)