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 --- tests/ImagePreprocessor.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/ImagePreprocessor.hpp') diff --git a/tests/ImagePreprocessor.hpp b/tests/ImagePreprocessor.hpp index d77113c6d9..cd586818c2 100644 --- a/tests/ImagePreprocessor.hpp +++ b/tests/ImagePreprocessor.hpp @@ -33,8 +33,7 @@ public: unsigned int width, unsigned int height, const std::vector& imageSet, - float scale=1.0, - int32_t offset=0, + float scale=255.0f, const std::array mean={{0, 0, 0}}, const std::array stddev={{1, 1, 1}}, DataFormat dataFormat=DataFormat::NHWC, @@ -44,7 +43,6 @@ public: , m_Width(width) , m_BatchSize(batchSize) , m_Scale(scale) - , m_Offset(offset) , m_ImageSet(imageSet) , m_Mean(mean) , m_Stddev(stddev) @@ -66,7 +64,6 @@ private: unsigned int m_BatchSize; // Quantization parameters float m_Scale; - int32_t m_Offset; const std::vector m_ImageSet; const std::array m_Mean; -- cgit v1.2.1