From 1028acc44d965b812706e41b94aec3a1607a68e3 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Fri, 5 Jun 2020 06:06:04 +0000 Subject: [PATCH] remove code --- .../paddle_serving_app/models/model_list.py | 16 ----------- tools/serving_ce.sh | 27 ------------------- 2 files changed, 43 deletions(-) delete mode 100644 tools/serving_ce.sh diff --git a/python/paddle_serving_app/models/model_list.py b/python/paddle_serving_app/models/model_list.py index 1023b7ab..d5f42ab7 100644 --- a/python/paddle_serving_app/models/model_list.py +++ b/python/paddle_serving_app/models/model_list.py @@ -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 diff --git a/tools/serving_ce.sh b/tools/serving_ce.sh deleted file mode 100644 index 5a825332..00000000 --- a/tools/serving_ce.sh +++ /dev/null @@ -1,27 +0,0 @@ -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 -- GitLab