From 79d4154ee071d0e7ef2d1eecdde149d488bb9d8b Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Wed, 20 Oct 2021 15:52:32 +0100 Subject: MLECO-2458 and MLECO-2476 [Fix] VWW IFM quant step * Changed image->cc conversion to be similar with preprocessing of img_class and vww models: images are scaled maintaing the aspect ration and then the centre crop of the correct size is taken. * VWW applies input quantization info to the int8 image (prior converted to [0,1] float range). * Changed adult_blur to a image without person. * Fix menu print when selecting a specific ifm to run (Select message was displayed after typing something) Change-Id: Ie6cde7ab4835ea842667b87397458a5d32131df3 --- source/application/main/UseCaseCommonUtils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/application/main/UseCaseCommonUtils.cc') diff --git a/source/application/main/UseCaseCommonUtils.cc b/source/application/main/UseCaseCommonUtils.cc index a99e05d..e48e308 100644 --- a/source/application/main/UseCaseCommonUtils.cc +++ b/source/application/main/UseCaseCommonUtils.cc @@ -35,8 +35,8 @@ void DisplayCommonMenu() void image::ConvertImgToInt8(void* data, const size_t kMaxImageSize) { - auto* tmp_req_data = (uint8_t*) data; - auto* tmp_signed_req_data = (int8_t*) data; + auto* tmp_req_data = static_cast(data); + auto* tmp_signed_req_data = static_cast(data); for (size_t i = 0; i < kMaxImageSize; i++) { tmp_signed_req_data[i] = (int8_t) ( -- cgit v1.2.1