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

Merge pull request #7 from MRXLT/master

fix server conf && __init__
......@@ -15,7 +15,7 @@
import os
import re
import tarfile
import face_serving
import plsc_serving
import subprocess
import imp
import time
......@@ -37,7 +37,7 @@ class PLSCServer():
def get_exe(self):
exe_path = './bin'
module_version = face_serving.__version__
module_version = plsc_serving.__version__
target_version_list = module_version.strip().split('.')
target_version = target_version_list[0] + '.' + target_version_list[1]
need_download = False
......@@ -162,7 +162,7 @@ class PLSCServer():
self.get_model(model_name)
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')
return server_path
......
......@@ -3,7 +3,7 @@ engines {
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
engines {
name: "bert"
name: "face_resnet50"
type: "FLUID_GPU_ANALYSIS_DIR"
reloadable_meta: "./data/model/paddle/fluid_time_file"
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
batch_infer_size: 0
enable_batch_align: 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册