fix gap between train_model predict and inference
diff --git a/tools/infer/predict_det.py b/tools/infer/predict_det.py
index 76c6a4478a..b14825bdd8 100755
--- a/tools/infer/predict_det.py
+++ b/tools/infer/predict_det.py
@@ -39,10 +39,7 @@ def __init__(self, args):
         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],
diff --git a/tools/infer_det.py b/tools/infer_det.py
index d890970ec1..913d617def 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": ""}

fix issue #https://github.com/PaddlePaddle/PaddleOCR/issues/2080