From 97987978cf721524422783449853970dc7821135 Mon Sep 17 00:00:00 2001 From: before31 Date: Tue, 31 Aug 2021 22:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E7=AB=AF=E5=88=B0?= =?UTF-8?q?=E7=AB=AF=E7=AE=97=E6=B3=95=E8=B0=83=E7=94=A8inference=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E6=97=B6=E4=B8=8E=E8=AE=AD=E7=BB=83=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E7=94=B1rgb3=E4=B8=AA=E9=80=9A=E9=81=93?= =?UTF-8?q?=E7=9A=84=E9=A1=BA=E5=BA=8F=E4=B8=8D=E4=B8=80=E8=87=B4=E5=BC=95?= =?UTF-8?q?=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/infer/predict_e2e.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/infer/predict_e2e.py b/tools/infer/predict_e2e.py index 5029d605..8ff279d7 100755 --- a/tools/infer/predict_e2e.py +++ b/tools/infer/predict_e2e.py @@ -141,6 +141,7 @@ if __name__ == "__main__": img, flag = check_and_read_gif(image_file) if not flag: img = cv2.imread(image_file) + img = img[:, :, ::-1] if img is None: logger.info("error in loading image:{}".format(image_file)) continue -- GitLab