diff options
author | Isabella Gottardi <isabella.gottardi@arm.com> | 2021-10-20 15:52:32 +0100 |
---|---|---|
committer | Isabella Gottardi <isabella.gottardi@arm.com> | 2021-10-25 08:51:10 +0000 |
commit | 79d4154ee071d0e7ef2d1eecdde149d488bb9d8b (patch) | |
tree | 21c8c0a2bd187a925f28045d4a57e9e4ef05be82 /source/use_case/img_class/src | |
parent | 14ab8d447c5f12df2ac7fd4217fc0d2005b02dca (diff) | |
download | ml-embedded-evaluation-kit-79d4154ee071d0e7ef2d1eecdde149d488bb9d8b.tar.gz |
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
Diffstat (limited to 'source/use_case/img_class/src')
-rw-r--r-- | source/use_case/img_class/src/MainLoop.cc | 1 | ||||
-rw-r--r-- | source/use_case/img_class/src/UseCaseHandler.cc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/source/use_case/img_class/src/MainLoop.cc b/source/use_case/img_class/src/MainLoop.cc index 79f6018..ea9f14a 100644 --- a/source/use_case/img_class/src/MainLoop.cc +++ b/source/use_case/img_class/src/MainLoop.cc @@ -68,6 +68,7 @@ void main_loop(hal_platform& platform) break; case common::MENU_OPT_RUN_INF_CHOSEN: { printf(" Enter the image index [0, %d]: ", NUMBER_OF_FILES-1); + fflush(stdout); auto imgIndex = static_cast<uint32_t>(arm::app::ReadUserInputAsInt(platform)); executionSuccessful = ClassifyImageHandler(caseContext, imgIndex, false); break; diff --git a/source/use_case/img_class/src/UseCaseHandler.cc b/source/use_case/img_class/src/UseCaseHandler.cc index 66df1da..effc06f 100644 --- a/source/use_case/img_class/src/UseCaseHandler.cc +++ b/source/use_case/img_class/src/UseCaseHandler.cc @@ -97,7 +97,7 @@ namespace app { /* Display this image on the LCD. */ platform.data_psn->present_data_image( - (uint8_t*) inputTensor->data.data, + static_cast<uint8_t *>(inputTensor->data.data), nCols, nRows, nChannels, dataPsnImgStartX, dataPsnImgStartY, dataPsnImgDownscaleFactor); |