From 0d9db3a64d56c4fa65235caa3106f5bd62417c70 Mon Sep 17 00:00:00 2001 From: linkecoding Date: Wed, 5 Jan 2022 23:55:53 +0800 Subject: [PATCH] fix the default value of predictor inputStd in android example --- .../src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java b/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java index b474d888..b7f91384 100644 --- a/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java +++ b/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java @@ -34,7 +34,7 @@ public class Predictor { protected String inputColorFormat = "BGR"; protected long[] inputShape = new long[]{1, 3, 960}; protected float[] inputMean = new float[]{0.485f, 0.456f, 0.406f}; - protected float[] inputStd = new float[]{1.0f / 0.229f, 1.0f / 0.224f, 1.0f / 0.225f}; + protected float[] inputStd = new float[]{0.229f, 0.224f, 0.225f}; protected float scoreThreshold = 0.1f; protected Bitmap inputImage = null; protected Bitmap outputImage = null; -- GitLab