提交 1028acc4 编写于 作者: M MRXLT

remove code

上级 819519ec
......@@ -56,22 +56,6 @@ class ServingModels(object):
pack_url(self.model_dict, "ImageClassification", image_class_url)
pack_url(self.model_dict, "OCR", ocr_url)
#SemanticModel
for key in [
"bert_cased_L-12_H-768_A-12", "bert_cased_L-24_H-1024_A-12",
"bert_chinese_L-12_H-768_A-12",
"bert_multi_cased_L-12_H-768_A-12",
"bert_multi_uncased_L-12_H-768_A-12",
"bert_uncased_L-12_H-768_A-12", "bert_uncased_L-24_H-1024_A-16",
"chinese-bert-wwm-ext", "chinese-bert-wwm",
"chinese-electra-base", "chinese-electra-small",
"chinese-electra-small", "chinese-roberta-wwm-ext", "ernie",
"ernie_tiny", "ernie_v2_eng_base", "ernie_v2_eng_large", "rbt3",
"rbtl3", "simnet_bow", "word2vec_skipgram"
]:
self.model_dict[
key] = "https://paddle-serving.bj.bcebos.com/paddle_hub_models/text/SemanticModel/" + key + ".tar.gz"
def get_model_list(self):
return self.model_dict
......
set -x
set -v
function get_model(){
if [ ! -d "bert_cased_L-12_H-768_A-12_model" ]; then
python -c "from paddle_serving_app.models import ServingModels; models = ServingModels();\
models.download(\"$1\")"
tar -xzf $1.tar.gz
fi
}
function bert_demo(){
cd ../python/examples/bert
python prepare_model.py bert_chinese_L-12_H-768_A-12 20
sh benchmark.sh bert_chinese_L-12_H-768_A-12_seq20_model bert_chinese_L-12_H-768_A-12_seq20_client
python prepare_model.py ernie_tiny 20
sh benchmark.sh ernie_tiny_seq20_model ernie_tiny_seq20_client
cd -
}
function imagenet_demo(){
cd ../python/examples/imagenet
sh get_model.sh
}
bert_demo
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册