Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update multi rec model #6142

Merged
merged 4 commits into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix pdserving for det
  • Loading branch information
tink2123 committed May 5, 2022
commit 9dd160f372db23d4e32bf9309c47dd825efddcfd
2 changes: 1 addition & 1 deletion deploy/pdserving/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ op:
model_config: ./ppocr_det_v3_serving

#Fetch结果列表,以client_config中fetch_var的alias_name为准
fetch_list: ["save_infer_model/scale_0.tmp_1"]
fetch_list: ["sigmoid_0.tmp_0"]

#计算硬件ID,当devices为""或不写时为CPU预测;当devices为"0", "0,1,2"时为GPU预测,表示使用的GPU卡
devices: "0"
Expand Down
2 changes: 1 addition & 1 deletion deploy/pdserving/web_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def preprocess(self, input_dicts, data_id, log_id):
return {"x": det_img[np.newaxis, :].copy()}, False, None, ""

def postprocess(self, input_dicts, fetch_dict, data_id, log_id):
det_out = fetch_dict["save_infer_model/scale_0.tmp_1"]
det_out = fetch_dict["sigmoid_0.tmp_0"]
ratio_list = [
float(self.new_h) / self.ori_h, float(self.new_w) / self.ori_w
]
Expand Down
2 changes: 1 addition & 1 deletion deploy/pdserving/web_service_det.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def preprocess(self, input_dicts, data_id, log_id):
return {"x": det_img[np.newaxis, :].copy()}, False, None, ""

def postprocess(self, input_dicts, fetch_dict, data_id, log_id):
det_out = fetch_dict["save_infer_model/scale_0.tmp_1"]
det_out = fetch_dict["sigmoid_0.tmp_0"]
ratio_list = [
float(self.new_h) / self.ori_h, float(self.new_w) / self.ori_w
]
Expand Down