From 87f0aeed705a7b07038d4ec1f4c63b31b0298d24 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Wed, 24 Feb 2021 15:09:37 +0800 Subject: [PATCH 1/3] fix gap between train_model predict and inference --- tools/infer/predict_det.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/infer/predict_det.py b/tools/infer/predict_det.py index 76c6a4478..b14825bdd 100755 --- a/tools/infer/predict_det.py +++ b/tools/infer/predict_det.py @@ -39,10 +39,7 @@ class TextDetector(object): self.args = args self.det_algorithm = args.det_algorithm pre_process_list = [{ - 'DetResizeForTest': { - 'limit_side_len': args.det_limit_side_len, - 'limit_type': args.det_limit_type - } + 'DetResizeForTest': None }, { 'NormalizeImage': { 'std': [0.229, 0.224, 0.225], From 453f9e5cf9a8cbb36507588378e636d6c0e1dda3 Mon Sep 17 00:00:00 2001 From: Leif <4603009@qq.com> Date: Wed, 24 Feb 2021 19:14:38 +0800 Subject: [PATCH 2/3] Change the path of joinus.png to absolute path --- README.md | 2 +- README_ch.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 67d65e98e..1ce6fabb5 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ The above pictures are the visualizations of the general ppocr_server model. For - Scan the QR code below with your Wechat, you can access to official technical exchange group. Look forward to your participation.
- +
diff --git a/README_ch.md b/README_ch.md index d4870710a..9fe853f92 100755 --- a/README_ch.md +++ b/README_ch.md @@ -46,7 +46,7 @@ PaddleOCR同时支持动态图与静态图两种编程范式 - 微信扫描二维码加入官方交流群,获得更高效的问题答疑,与各行各业开发者充分交流,期待您的加入。
- +
## 快速体验 From 85fd65c8f021d5b3e31a1d09a6e2a7bae0dd1dbe Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Wed, 24 Feb 2021 20:20:17 +0800 Subject: [PATCH 3/3] fix typo --- tools/infer_det.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/infer_det.py b/tools/infer_det.py index d890970ec..913d617de 100755 --- a/tools/infer_det.py +++ b/tools/infer_det.py @@ -97,7 +97,7 @@ def main(): preds = model(images) post_result = post_process_class(preds, shape_list) boxes = post_result[0]['points'] - # write resule + # write result dt_boxes_json = [] for box in boxes: tmp_json = {"transcription": ""}