Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
50602e44
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
50602e44
编写于
3月 12, 2020
作者:
D
Dong Daxiang
提交者:
GitHub
3月 12, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #271 from MRXLT/general-server-imagenet
bug fix && update version
上级
9c71c83e
90e9ce86
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
49 addition
and
14 deletion
+49
-14
python/examples/imagenet/README.md
python/examples/imagenet/README.md
+1
-1
python/paddle_serving_client/version.py
python/paddle_serving_client/version.py
+3
-3
python/paddle_serving_server/version.py
python/paddle_serving_server/version.py
+3
-3
python/paddle_serving_server_gpu/serve.py
python/paddle_serving_server_gpu/serve.py
+1
-0
python/paddle_serving_server_gpu/version.py
python/paddle_serving_server_gpu/version.py
+3
-3
python/setup.py.client.in
python/setup.py.client.in
+13
-1
python/setup.py.server.in
python/setup.py.server.in
+12
-1
python/setup.py.server_gpu.in
python/setup.py.server_gpu.in
+13
-2
未找到文件。
python/examples/imagenet/README.md
浏览文件 @
50602e44
...
@@ -21,7 +21,7 @@ python image_http_client.py
...
@@ -21,7 +21,7 @@ python image_http_client.py
启动server端
启动server端
```
```
python
image_server.py conf_and_model/serving_server_model workdir
9393
python
-m paddle_serving_server.serve --model conf_and_model/serving_server_model/ --port
9393
```
```
client端进行预测
client端进行预测
...
...
python/paddle_serving_client/version.py
浏览文件 @
50602e44
...
@@ -12,6 +12,6 @@
...
@@ -12,6 +12,6 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
""" Paddle Serving Client version string """
""" Paddle Serving Client version string """
serving_client_version
=
"0.1.
2
"
serving_client_version
=
"0.1.
3
"
serving_server_version
=
"0.1.
2
"
serving_server_version
=
"0.1.
3
"
module_proto_version
=
"0.1.
2
"
module_proto_version
=
"0.1.
3
"
python/paddle_serving_server/version.py
浏览文件 @
50602e44
...
@@ -12,6 +12,6 @@
...
@@ -12,6 +12,6 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
""" Paddle Serving Client version string """
""" Paddle Serving Client version string """
serving_client_version
=
"0.1.
2
"
serving_client_version
=
"0.1.
3
"
serving_server_version
=
"0.1.
2
"
serving_server_version
=
"0.1.
3
"
module_proto_version
=
"0.1.
2
"
module_proto_version
=
"0.1.
3
"
python/paddle_serving_server_gpu/serve.py
浏览文件 @
50602e44
...
@@ -17,6 +17,7 @@ Usage:
...
@@ -17,6 +17,7 @@ Usage:
Example:
Example:
python -m paddle_serving_server.serve --model ./serving_server_model --port 9292
python -m paddle_serving_server.serve --model ./serving_server_model --port 9292
"""
"""
import
os
import
argparse
import
argparse
from
multiprocessing
import
Pool
,
Process
from
multiprocessing
import
Pool
,
Process
from
paddle_serving_server_gpu
import
serve_args
from
paddle_serving_server_gpu
import
serve_args
...
...
python/paddle_serving_server_gpu/version.py
浏览文件 @
50602e44
...
@@ -12,6 +12,6 @@
...
@@ -12,6 +12,6 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
""" Paddle Serving Client version string """
""" Paddle Serving Client version string """
serving_client_version
=
"0.1.
2
"
serving_client_version
=
"0.1.
3
"
serving_server_version
=
"0.1.
2
"
serving_server_version
=
"0.1.
3
"
module_proto_version
=
"0.1.
2
"
module_proto_version
=
"0.1.
3
"
python/setup.py.client.in
浏览文件 @
50602e44
...
@@ -23,10 +23,19 @@ from setuptools import setup, Distribution, Extension
...
@@ -23,10 +23,19 @@ from setuptools import setup, Distribution, Extension
from setuptools import find_packages
from setuptools import find_packages
from setuptools import setup
from setuptools import setup
from paddle_serving_client.version import serving_client_version
from paddle_serving_client.version import serving_client_version
from pkg_resources import DistributionNotFound, get_distribution
def python_version():
def python_version():
return [int(v) for v in platform.python_version().split(".")]
return [int(v) for v in platform.python_version().split(".")]
def find_package(pkgname):
try:
get_distribution(pkgname)
return True
except DistributionNotFound:
return False
def copy_lib():
def copy_lib():
os.popen('mkdir -p paddle_serving_client/lib')
os.popen('mkdir -p paddle_serving_client/lib')
for lib in ['libpython2.7.so.1.0', 'libssl.so.10', 'libcrypto.so.10']:
for lib in ['libpython2.7.so.1.0', 'libssl.so.10', 'libcrypto.so.10']:
...
@@ -41,9 +50,12 @@ if '${PACK}' == 'ON':
...
@@ -41,9 +50,12 @@ if '${PACK}' == 'ON':
REQUIRED_PACKAGES = [
REQUIRED_PACKAGES = [
'six >= 1.10.0', 'protobuf >= 3.1.0'
,'paddlepaddle'
'six >= 1.10.0', 'protobuf >= 3.1.0'
]
]
if not find_package("paddlepaddle") and not find_package("paddlepaddle-gpu"):
REQUIRED_PACKAGES.append("paddlepaddle")
packages=['paddle_serving_client',
packages=['paddle_serving_client',
'paddle_serving_client.proto',
'paddle_serving_client.proto',
'paddle_serving_client.io',
'paddle_serving_client.io',
...
...
python/setup.py.server.in
浏览文件 @
50602e44
...
@@ -22,6 +22,14 @@ from setuptools import setup, Distribution, Extension
...
@@ -22,6 +22,14 @@ from setuptools import setup, Distribution, Extension
from setuptools import find_packages
from setuptools import find_packages
from setuptools import setup
from setuptools import setup
from paddle_serving_server.version import serving_server_version
from paddle_serving_server.version import serving_server_version
from pkg_resources import DistributionNotFound, get_distribution
def find_package(pkgname):
try:
get_distribution(pkgname)
return True
except DistributionNotFound:
return False
def python_version():
def python_version():
return [int(v) for v in platform.python_version().split(".")]
return [int(v) for v in platform.python_version().split(".")]
...
@@ -29,10 +37,13 @@ def python_version():
...
@@ -29,10 +37,13 @@ def python_version():
max_version, mid_version, min_version = python_version()
max_version, mid_version, min_version = python_version()
REQUIRED_PACKAGES = [
REQUIRED_PACKAGES = [
'six >= 1.10.0', 'protobuf >= 3.1.0',
'paddlepaddle',
'six >= 1.10.0', 'protobuf >= 3.1.0',
'paddle_serving_client', 'flask >= 1.1.1'
'paddle_serving_client', 'flask >= 1.1.1'
]
]
if not find_package("paddlepaddle") and not find_package("paddlepaddle-gpu"):
REQUIRED_PACKAGES.append("paddlepaddle")
packages=['paddle_serving_server',
packages=['paddle_serving_server',
'paddle_serving_server.proto']
'paddle_serving_server.proto']
...
...
python/setup.py.server_gpu.in
浏览文件 @
50602e44
...
@@ -22,6 +22,14 @@ from setuptools import setup, Distribution, Extension
...
@@ -22,6 +22,14 @@ from setuptools import setup, Distribution, Extension
from setuptools import find_packages
from setuptools import find_packages
from setuptools import setup
from setuptools import setup
from paddle_serving_server_gpu.version import serving_server_version
from paddle_serving_server_gpu.version import serving_server_version
from pkg_resources import DistributionNotFound, get_distribution
def find_package(pkgname):
try:
get_distribution(pkgname)
return True
except DistributionNotFound:
return False
def python_version():
def python_version():
return [int(v) for v in platform.python_version().split(".")]
return [int(v) for v in platform.python_version().split(".")]
...
@@ -29,10 +37,13 @@ def python_version():
...
@@ -29,10 +37,13 @@ def python_version():
max_version, mid_version, min_version = python_version()
max_version, mid_version, min_version = python_version()
REQUIRED_PACKAGES = [
REQUIRED_PACKAGES = [
'six >= 1.10.0', 'protobuf >= 3.1.0',
'paddlepaddle',
'six >= 1.10.0', 'protobuf >= 3.1.0',
'paddle_serving_client'
'paddle_serving_client'
, 'flask >= 1.1.1'
]
]
if not find_package("paddlepaddle") and not find_package("paddlepaddle-gpu"):
REQUIRED_PACKAGES.append("paddlepaddle")
packages=['paddle_serving_server_gpu',
packages=['paddle_serving_server_gpu',
'paddle_serving_server_gpu.proto']
'paddle_serving_server_gpu.proto']
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录