Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PLSC
提交
fec841ad
P
PLSC
项目概览
PaddlePaddle
/
PLSC
通知
12
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
5
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PLSC
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
5
Issue
5
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fec841ad
编写于
12月 18, 2019
作者:
M
MRXLT
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix pr
上级
759b68ea
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
3 deletion
+0
-3
serving/client/face_service/face_service.py
serving/client/face_service/face_service.py
+0
-2
serving/server/plsc_serving/run/__init__.py
serving/server/plsc_serving/run/__init__.py
+0
-1
未找到文件。
serving/client/face_service/face_service.py
浏览文件 @
fec841ad
...
@@ -82,8 +82,6 @@ def test():
...
@@ -82,8 +82,6 @@ def test():
with
open
(
'./data/00000000.jpg'
,
'rb'
)
as
f
:
with
open
(
'./data/00000000.jpg'
,
'rb'
)
as
f
:
image
=
f
.
read
()
image
=
f
.
read
()
bc
=
FaceService
()
bc
=
FaceService
()
for
i
in
image
:
print
(
"%x"
%
i
)
bc
.
connect
(
'127.0.0.1:8010'
)
bc
.
connect
(
'127.0.0.1:8010'
)
result
=
bc
.
encode
([
image
])
result
=
bc
.
encode
([
image
])
print
(
result
[
0
])
print
(
result
[
0
])
...
...
serving/server/plsc_serving/run/__init__.py
浏览文件 @
fec841ad
...
@@ -186,5 +186,4 @@ class PLSCServer():
...
@@ -186,5 +186,4 @@ class PLSCServer():
os
.
remove
(
tar_name
)
os
.
remove
(
tar_name
)
self
.
model_path_str
=
r
'model_data_path: "./data/model/paddle/fluid/'
+
model_name
+
r
'"'
self
.
model_path_str
=
r
'model_data_path: "./data/model/paddle/fluid/'
+
model_name
+
r
'"'
os
.
chdir
(
self
.
get_path
())
os
.
chdir
(
self
.
get_path
())
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录