From af8b72d3a97baa0c86583b03321e8a8d3f4bc2aa Mon Sep 17 00:00:00 2001 From: FinnWilliamsArm Date: Wed, 22 May 2019 14:50:55 +0100 Subject: IVGCVSW-3129 Image pre-processing fix for TFLite * Resized images for quantized models are now statically cast to uint8 instead of quantized * Removed optional quantization parameters from ImagePreprocessor constructor * Changed mean and scale for TFLite models Signed-off-by: FinnWilliamsArm Change-Id: Id5ffdf77f3614d10c417e769bd8ffc4a4c07308b --- .../TfLiteInceptionV3Quantized-Armnn.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/TfLiteInceptionV3Quantized-Armnn') diff --git a/tests/TfLiteInceptionV3Quantized-Armnn/TfLiteInceptionV3Quantized-Armnn.cpp b/tests/TfLiteInceptionV3Quantized-Armnn/TfLiteInceptionV3Quantized-Armnn.cpp index 4fa0e140f1..bf5a865ac8 100644 --- a/tests/TfLiteInceptionV3Quantized-Armnn/TfLiteInceptionV3Quantized-Armnn.cpp +++ b/tests/TfLiteInceptionV3Quantized-Armnn/TfLiteInceptionV3Quantized-Armnn.cpp @@ -40,14 +40,12 @@ int main(int argc, char* argv[]) [&imageSet](const char* dataDir, const ModelType & model) { // we need to get the input quantization parameters from // the parsed model - auto inputBinding = model.GetInputBindingInfo(); return DatabaseType( dataDir, 299, 299, imageSet, - inputBinding.second.GetQuantizationScale(), - inputBinding.second.GetQuantizationOffset()); + 1); }, &inputTensorShape); } -- cgit v1.2.1