diff options
author | FinnWilliamsArm <Finn.Williams@arm.com> | 2019-05-22 14:50:55 +0100 |
---|---|---|
committer | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2019-05-28 09:59:44 +0100 |
commit | a723ec5d2ac35948efb5dfd0c121a1a89cb977b7 (patch) | |
tree | e0a101fbb7ba41cd50e30a1e0ce31529404175ed /tests/TfLiteInceptionV3Quantized-Armnn/TfLiteInceptionV3Quantized-Armnn.cpp | |
parent | 7f2c35a82ec11be50b3478bd15207320bbf3bd57 (diff) | |
download | armnn-bb752e27868a2a6e175b3af2d5bc03d2b07a20e0.tar.gz |
IVGCVSW-3129 Image pre-processing fix for TFLitev19.05
* 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 <Finn.Williams@arm.com>
Change-Id: Id5ffdf77f3614d10c417e769bd8ffc4a4c07308b
Diffstat (limited to 'tests/TfLiteInceptionV3Quantized-Armnn/TfLiteInceptionV3Quantized-Armnn.cpp')
-rw-r--r-- | tests/TfLiteInceptionV3Quantized-Armnn/TfLiteInceptionV3Quantized-Armnn.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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); } |