diff --git a/ppstructure/vqa/infer_re.py b/ppstructure/vqa/infer_re.py index 98c61bacceb9e8a6e5f6da55cc7719b46ab308d0..7937700a78c28eff19a78dc5ddc8ccef82cc0148 100644 --- a/ppstructure/vqa/infer_re.py +++ b/ppstructure/vqa/infer_re.py @@ -63,7 +63,7 @@ def infer(args): save_img_path = os.path.join( args.output_dir, os.path.splitext(os.path.basename(image_path))[0] + "_re.jpg") - logger.info("[Infer] process: {}/{}, save_result to {}".format( + logger.info("[Infer] process: {}/{}, save result to {}".format( idx, len(eval_dataloader), save_img_path)) with paddle.no_grad(): outputs = model(**batch) diff --git a/ppstructure/vqa/infer_ser.py b/ppstructure/vqa/infer_ser.py index 2b715d7b92de1c8b86088a6f81136cf198e3fea8..7994b5449af97988e9ad458f4047b59b81f72560 100644 --- a/ppstructure/vqa/infer_ser.py +++ b/ppstructure/vqa/infer_ser.py @@ -250,7 +250,7 @@ def infer(args): for idx, img_path in enumerate(infer_imgs): save_img_path = os.path.join(args.output_dir, os.path.basename(img_path)) - print("process: [{}/{}], save_result to {}".format( + print("process: [{}/{}], save result to {}".format( idx, len(infer_imgs), save_img_path)) img = cv2.imread(img_path) diff --git a/ppstructure/vqa/infer_ser_e2e.py b/ppstructure/vqa/infer_ser_e2e.py index bceb3434b5299b190568cb0368243d19f555c630..6bb0247501bc98ea709d3ad47c284268b3d9503b 100644 --- a/ppstructure/vqa/infer_ser_e2e.py +++ b/ppstructure/vqa/infer_ser_e2e.py @@ -137,7 +137,7 @@ if __name__ == "__main__": save_img_path = os.path.join( args.output_dir, os.path.splitext(os.path.basename(img_path))[0] + "_ser.jpg") - print("process: [{}/{}], save_result to {}".format( + print("process: [{}/{}], save result to {}".format( idx, len(infer_imgs), save_img_path)) img = cv2.imread(img_path) diff --git a/ppstructure/vqa/infer_ser_re_e2e.py b/ppstructure/vqa/infer_ser_re_e2e.py index a6316b625c4ec213dcb81f2e4f1e8f8a422f1cc6..32d8850a16eebee7e43fd58cbaa604fc2bc00b7c 100644 --- a/ppstructure/vqa/infer_ser_re_e2e.py +++ b/ppstructure/vqa/infer_ser_re_e2e.py @@ -120,7 +120,7 @@ if __name__ == "__main__": save_img_path = os.path.join( args.output_dir, os.path.splitext(os.path.basename(img_path))[0] + "_re.jpg") - print("process: [{}/{}], save_result to {}".format( + print("process: [{}/{}], save result to {}".format( idx, len(infer_imgs), save_img_path)) img = cv2.imread(img_path)