From 11d6814f365b2e881adbdedc9865f86dae3022a9 Mon Sep 17 00:00:00 2001 From: WenmuZhou <572459439@qq.com> Date: Mon, 20 Dec 2021 14:47:43 +0000 Subject: [PATCH] rm _ --- ppstructure/vqa/infer_re.py | 2 +- ppstructure/vqa/infer_ser.py | 2 +- ppstructure/vqa/infer_ser_e2e.py | 2 +- ppstructure/vqa/infer_ser_re_e2e.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ppstructure/vqa/infer_re.py b/ppstructure/vqa/infer_re.py index 98c61bac..7937700a 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 2b715d7b..7994b544 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 bceb3434..6bb02475 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 a6316b62..32d8850a 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) -- GitLab