未验证 提交 9d1fbf20 编写于 作者: M MRXLT 提交者: GitHub

Merge pull request #7 from MRXLT/master

fix server conf && __init__
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
import os import os
import re import re
import tarfile import tarfile
import face_serving import plsc_serving
import subprocess import subprocess
import imp import imp
import time import time
...@@ -37,7 +37,7 @@ class PLSCServer(): ...@@ -37,7 +37,7 @@ class PLSCServer():
def get_exe(self): def get_exe(self):
exe_path = './bin' exe_path = './bin'
module_version = face_serving.__version__ module_version = plsc_serving.__version__
target_version_list = module_version.strip().split('.') target_version_list = module_version.strip().split('.')
target_version = target_version_list[0] + '.' + target_version_list[1] target_version = target_version_list[0] + '.' + target_version_list[1]
need_download = False need_download = False
...@@ -162,7 +162,7 @@ class PLSCServer(): ...@@ -162,7 +162,7 @@ class PLSCServer():
self.get_model(model_name) self.get_model(model_name)
def get_path(self): def get_path(self):
py_path = os.path.dirname(face_serving.__file__) py_path = os.path.dirname(plsc_serving.__file__)
server_path = os.path.join(py_path, 'server') server_path = os.path.join(py_path, 'server')
return server_path return server_path
......
...@@ -3,7 +3,7 @@ engines { ...@@ -3,7 +3,7 @@ engines {
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
engines { engines {
name: "bert" name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR" type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file" reloadable_meta: "./data/model/paddle/fluid_time_file"
reloadable_type: "timestamp_ne" reloadable_type: "timestamp_ne"
model_data_path: "/home/xulongteng/.paddlehub/bert_service/bert_chinese_L-12_H-768_A-12" model_data_path: "./data/model/paddle/fluid/"
runtime_thread_num: 0 runtime_thread_num: 0
batch_infer_size: 0 batch_infer_size: 0
enable_batch_align: 0 enable_batch_align: 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册