platform/core/multimedia/inference-engine-tflite.git
21 months agoAdd flex delegate sandbox/tyzeroy/flex
Tae-Young Chung [Mon, 16 Jan 2023 06:09:15 +0000 (15:09 +0900)]
Add flex delegate

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoApplying coding rule 19/280119/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.060702 accepted/tizen/7.0/unified/hotfix/20221116.105401 accepted/tizen/8.0/unified/20231005.093425 accepted/tizen/unified/20220825.063540 submit/tizen/20220824.063348 tizen_7.0_m2_release tizen_8.0_m2_release
Hyunsoo Park [Thu, 7 Jul 2022 02:31:08 +0000 (11:31 +0900)]
Applying coding rule

Change-Id: Ieb020b720fa19cccd1826706d67ae7887332002b
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
2 years agoInferenceTFLite: Remove code redundancy 18/280118/1
heechul.jeon [Thu, 30 Jun 2022 07:15:52 +0000 (16:15 +0900)]
InferenceTFLite: Remove code redundancy

[Versin] 0.0.4
[Issue type] code cleanup

Change-Id: Ia6942cd730aedd74f5acbd98b75f6b4e1b7dabfa
Signed-off-by: heechul.jeon <heechul.jeon@samsung.com>
2 years agoInferenceTFLite: Remove code redundancy 17/280117/1
heechul.jeon [Thu, 30 Jun 2022 01:47:29 +0000 (10:47 +0900)]
InferenceTFLite: Remove code redundancy

[Versin] 0.0.3
[Issue type] code cleanup

Change-Id: Ifa72db34f18c9cd89ac8055a8dcc6c5529ec9a87
Signed-off-by: heechul.jeon <heechul.jeon@samsung.com>
2 years agoAdds info logs to 'SetInterpreterInfo()' 47/269247/2
Hyunsoo Park [Wed, 12 Jan 2022 03:52:53 +0000 (12:52 +0900)]
Adds info logs to 'SetInterpreterInfo()'

[Versin] 0.0.3-0
[Issue type] clean up

Change-Id: I6c4304b08028c92b3981099cb73fec7f0eadb80d
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
2 years agofix seg. fault issue with GPU delegate 95/268395/1 accepted/tizen/unified/20220110.140032 submit/tizen/20220105.080154 submit/tizen/20220105.081745
Inki Dae [Wed, 22 Dec 2021 07:28:46 +0000 (16:28 +0900)]
fix seg. fault issue with GPU delegate

Fixed seg. fault issue with GPU delegate of Tensorflow lite 2.7.
With Tensorflow lite 2.7 GPU delegate creation needs a default option.
So this patch gets a default option for creating GPU delegate by calling
TfLiteGpuDelegateOptionsV2Default().

[Versin] 0.0.2-0
[Issue type] bug fix

Change-Id: I4a99377e393aacb415de62ac9004c3095623d923
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoRemove debug log of no use 62/258262/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211028.121744 accepted/tizen/unified/20210608.131206 submit/tizen/20210513.045159 submit/tizen/20210604.014750 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release
Hyunsoo Park [Thu, 13 May 2021 04:18:27 +0000 (13:18 +0900)]
Remove debug log of no use

Change-Id: I859dbdf688533834727913a25cc5fcd90d6c352f
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
3 years agoSet OutputLayers when it is empty vector 14/258214/2 submit/tizen/20210512.091922 submit/tizen/20210512.095706 submit/tizen/20210513.024033 submit/tizen/20210513.024256 submit/tizen/20210513.034723
Hyunsoo Park [Wed, 12 May 2021 08:40:50 +0000 (17:40 +0900)]
Set OutputLayers when it is empty vector

Change-Id: I035159ce30cdc0edafdce72324a235693493d802
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
3 years agoRemove duplicated code line 72/255972/2 accepted/tizen/unified/20210509.123821 submit/tizen/20210422.072212 submit/tizen/20210428.062907 submit/tizen/20210506.010918 submit/tizen/20210507.005054
Tae-Young Chung [Fri, 26 Mar 2021 00:45:37 +0000 (09:45 +0900)]
Remove duplicated code line

mInputLayerId and mOutputLayerId are swapped.
So they don't need to call clear() again and should be removed.

Change-Id: I9ef8df94e31baefc680837cc9d582095669fd399
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoChange members of inference_engine_layer_property structure, 94/254894/3
Tae-Young Chung [Wed, 10 Mar 2021 09:09:52 +0000 (18:09 +0900)]
Change members of inference_engine_layer_property structure,
and change vector<inference_engine_tensor_buffer> to map<string, inference_engine_tensor_buffer>

This is based on
https://review.tizen.org/gerrit/#/c/platform/core/multimedia/inference-engine-interface/+/254892/
https://review.tizen.org/gerrit/#/c/platform/core/api/mediavision/+/254953/

Change-Id: I451e44dc31aeafe4a92f86baef34204daeed70a5
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
3 years agoImplement SetCLTuner interface 04/253004/2
Inki Dae [Thu, 4 Feb 2021 00:48:54 +0000 (09:48 +0900)]
Implement SetCLTuner interface

Added SetCLTuner interface for CLTuner feature support of inference
engine interface framework which has a pure virtual function interface
of SetCLTUner function so the interface implementataion is required.

Change-Id: I2cf2168c899f4762b1f22786acff85229ad26b83
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoAdd flatbuffer dependency and header cleanup 97/250897/1
Inki Dae [Wed, 2 Dec 2020 05:10:55 +0000 (14:10 +0900)]
Add flatbuffer dependency and header cleanup

Change-Id: I673bc5f157b1f326d029c10bb22b5beeadc16c26
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoUse offical gpu delegate 96/250896/1
Inki Dae [Mon, 23 Nov 2020 01:56:35 +0000 (10:56 +0900)]
Use offical gpu delegate

Change-Id: I5f419d65aaec5c12dd1810317e3718f5b6fce8a3
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoAdd GPU device capabality 95/250895/1
Inki Dae [Tue, 10 Nov 2020 08:10:54 +0000 (17:10 +0900)]
Add GPU device capabality

Change-Id: I1c7ab126e2ef61c4c2b85e1c125f071629ec21e7
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoAdd tflite 2.3 gpu delegate support 94/250894/1
Inki Dae [Tue, 3 Nov 2020 09:03:46 +0000 (18:03 +0900)]
Add tflite 2.3 gpu delegate support

Change-Id: I289316756e3d6a4c266810c57db68a0596b1733b
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoSet thread number to -1 82/246682/2 accepted/tizen/unified/20201112.124210 submit/tizen/20201104.021236 submit/tizen/20201109.032237 submit/tizen/20201109.053646 submit/tizen/20201110.032259
Inki Dae [Tue, 3 Nov 2020 06:20:58 +0000 (15:20 +0900)]
Set thread number to -1

Refer to below reference document,
  "num_threads should be >= -1. User may pass -1 to let the
  TFLite interpreter set the no of threads avaiable to itself."

Change-Id: I9d9ce2c7f4a9df41fce0e6763b1b7eac1505f0b5
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoAdd int64 tensor type support 65/242565/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.121127 accepted/tizen/6.0/unified/hotfix/20201103.052008 accepted/tizen/unified/20200831.002554 submit/tizen/20200828.025650 submit/tizen/20200828.100528 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 tizen_6.0.m2_release
Inki Dae [Fri, 28 Aug 2020 02:51:43 +0000 (11:51 +0900)]
Add int64 tensor type support

Change-Id: I57251340b8321940c66e4e8bd3d04a0373726088
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoFix coding style based on Tizen SE C++ Coding Rule 83/237183/1 accepted/tizen/unified/20200628.221636 submit/tizen/20200626.050805 submit/tizen/20200626.060446 submit/tizen/20200626.070253
Inki Dae [Fri, 26 Jun 2020 00:22:24 +0000 (09:22 +0900)]
Fix coding style based on Tizen SE C++ Coding Rule

Tizen SE C++ Coding Rule:
https://wiki.tizen.org/Native_Platform_Coding_Idiom_and_Style_Guide#C.2B.2B_Coding_Style

Change-Id: I9462a7838c00bfd5c8c1ec18270b203db923eb87
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoAdd SetPrivateData function
Inki Dae [Wed, 3 Jun 2020 09:12:04 +0000 (18:12 +0900)]
Add SetPrivateData function

This function is needed for inference engine interface to pass
tflite private data to this backend before loading a model file.

Change-Id: Ibd169b0ddc8c1894c68a8e3016523e47b3450b74
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoAdd output layer info to GetOutputLayerProperty api 88/235288/4 accepted/tizen/unified/20200616.062021 submit/tizen/20200616.011635
Hyunsoo Park [Wed, 3 Jun 2020 10:07:10 +0000 (19:07 +0900)]
Add output layer info to GetOutputLayerProperty api

From this patch,
GetOutputLayerProperty api could be called without calling SetOutputLayerProperty api.

Change-Id: I2c7987d4923fb4f23ea3545d9f6861d8cebf10c6
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
4 years agoFix build error aarch64 and x86_64 83/235083/2 accepted/tizen/unified/20200603.150127 submit/tizen/20200602.084841
Tae-Young Chung [Tue, 2 Jun 2020 05:43:45 +0000 (14:43 +0900)]
Fix build error aarch64 and x86_64

Change-Id: I398542921f17fba7b80b4b057440be1b249645dd
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
4 years agoMerge "Get tensor infos from interpreter" into tizen submit/tizen/20200602.011936
Inki Dae [Tue, 12 May 2020 07:14:23 +0000 (07:14 +0000)]
Merge "Get tensor infos from interpreter" into tizen

4 years agoGet tensor infos from interpreter 24/233024/2
Hyunsoo Park [Mon, 11 May 2020 09:25:03 +0000 (18:25 +0900)]
Get tensor infos from interpreter

After applying it,
GetInputLayerProperty/GetInputTensorBuffers could get infos from interpreter without setting.

Change-Id: I5263656a8ac73ea244582e7e98e1607809547d70
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
4 years agoCheck if model file path is valid or not 73/233073/1
Inki Dae [Tue, 12 May 2020 04:02:31 +0000 (13:02 +0900)]
Check if model file path is valid or not

Change-Id: Ib1b2f3f897d4ee0d3ff4646429308ded762651ea
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoFix UNINIT.CTOR issue and remove useless call 37/232737/4 accepted/tizen/unified/20200510.220413 submit/tizen/20200508.021019
Hyunsoo Park [Thu, 7 May 2020 09:59:57 +0000 (18:59 +0900)]
Fix UNINIT.CTOR issue and remove useless call

Change-Id: I695f9a89e0d89e0ffb776c0f4ef2a77dc5a4afa1
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
4 years agotflite:add empty checking 51/232551/2
Hyunsoo Park [Wed, 6 May 2020 08:25:50 +0000 (17:25 +0900)]
tflite:add empty checking

For calling 'GetInputTensorBuffers', 'SetInputLayerProperty' should be called.

Change-Id: I6e8695cf8be42c2cd04a43b31684323ec9ed8f85
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
4 years agoange enumeration values to new ones sandbox/hance.park/dev submit/tizen/20200423.063253 submit/tizen/20200423.064104 submit/tizen/20200423.083755 submit/tizen/20200424.035635 submit/tizen/20200424.041307 submit/tizen/20200424.055009
Inki Dae [Fri, 17 Apr 2020 07:52:48 +0000 (16:52 +0900)]
ange enumeration values to new ones

some enumeration values of inference-engine-interface have been
updated so change them.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoChange tensor shape type to size_t
Hyunsoo Park [Fri, 10 Apr 2020 05:54:39 +0000 (14:54 +0900)]
Change tensor shape type to size_t

Change-Id: I0077b7406de26620a31ecd0f7eee6bdab7838e3d
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
4 years agoSupport UINT_8
Hyunsoo Park [Thu, 2 Apr 2020 09:16:04 +0000 (18:16 +0900)]
Support UINT_8

Change-Id: Idc7776c9123abd665f96204120864801657e2d54
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
4 years agoRefatorying code according to refactoried inference-engine-interface 93/229493/1
Hyunsoo Park [Wed, 1 Apr 2020 09:55:16 +0000 (18:55 +0900)]
Refatorying code according to refactoried inference-engine-interface

Change-Id: I73da801ac99a22ee5b0abb03752da76bdbc0117f
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
5 years agofix coverity issue 36/214836/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.025255 accepted/tizen/5.5/unified/mobile/hotfix/20201027.084945 accepted/tizen/5.5/unified/wearable/hotfix/20201027.115518 accepted/tizen/unified/20190927.064538 submit/tizen/20190927.024342 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 submit/tizen_5.5_wearable_hotfix/20201026.184303 tizen_5.5.m2_release
sangho park [Fri, 27 Sep 2019 02:28:52 +0000 (11:28 +0900)]
fix coverity issue

[1087465] Uninitialized pointer field

Change-Id: I9d9a7a94ac4d0cce7085268e1fa7f10058f0900a
Signed-off-by: sangho park <sangho.g.park@samsung.com>
5 years agoRemove apis related to IInferenceEngineVision 05/214205/3 accepted/tizen/unified/20190925.042223 submit/tizen/20190924.061550 submit/tizen/20190925.014740
Tae-Young Chung [Wed, 18 Sep 2019 08:36:11 +0000 (17:36 +0900)]
Remove apis related to IInferenceEngineVision

inference-engine-tflite is a plugin to provide inference only.
Thus, domain specific functions such as vision should be removed.
Instead, add apis GetInputLayerAttrType(), SetInputDataBuffer(), and GetInputDataPtr()
which can be used to access to memory.

Change-Id: I408a95c86bc2477465e5a08dab192bb6f3813ad1
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
5 years agoRemove BuildRequires: pkgconfig(tensorflow-lite) >= 1.13.1 57/213857/2 accepted/tizen/unified/20190919.065306 submit/tizen/20190916.020613 submit/tizen/20190919.014638
Tae-Young Chung [Mon, 16 Sep 2019 01:54:37 +0000 (10:54 +0900)]
Remove BuildRequires: pkgconfig(tensorflow-lite) >= 1.13.1

There is no tensorflow-lite rpm, but only tensorflow-lite-devel.
That should be removed.

Change-Id: Ib41b40613dc53808024723a8ab759895824ada2e
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
5 years agoAdd namespace. 07/213407/1 accepted/tizen/unified/20190916.111641 submit/tizen/20190905.073548
Hyunsoo Park [Thu, 5 Sep 2019 05:03:24 +0000 (14:03 +0900)]
Add namespace.

Without declaring InferenceEngineInterface::Common, this class can't detect 'IInferenceEngineCommon'.

Change-Id: I443c6bd8e827ff3a6846c840738c255c2b7b9e72
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
5 years agoDeletion of related methods as inherited class changing. 32/212532/3 submit/tizen/20190905.022044
Hyunsoo Park [Thu, 22 Aug 2019 11:26:53 +0000 (20:26 +0900)]
Deletion of related methods as inherited class changing.

It is inherited by IInferenceEngineVision and IInferenceEngineCommon both.
But relationship of them is changed as inheritant. So i remove unneccessary methods.

Change-Id: I22303fbdea68b2944f9a64fc99fee77a8501d4e9
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
5 years agoAdded missing libopencv_improc link and implemented face and facial landmark detection 35/211935/2 accepted/tizen/unified/20190828.011056 submit/tizen/20190824.013905 submit/tizen/20190826.010217 submit/tizen/20190828.000454
Tae-Young Chung [Mon, 12 Aug 2019 07:23:32 +0000 (16:23 +0900)]
Added missing libopencv_improc link and implemented face and facial landmark detection

Change-Id: I49546847d8f054bb026036e4a385be0cf17c5f0f
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
5 years agoAdd INFERENCE_TARGET_CUSTOM, Support multiple output tensors and object detection 59/210759/2
Tae-Young Chung [Wed, 24 Jul 2019 08:08:28 +0000 (17:08 +0900)]
Add INFERENCE_TARGET_CUSTOM, Support multiple output tensors and object detection

Note that Tizen supports tensorflow-lite version 1.13,
which supports the SSD including postprocess, i.e. NMS

Change-Id: I6542449a284727ab0e1eba8c9e9aa28fa9bc39ee
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
5 years agoIntial codes
Tae-Young Chung [Thu, 4 Jul 2019 11:05:35 +0000 (20:05 +0900)]
Intial codes

Note that this initial code is under development and provides very limited functionality.

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
5 years agoInitial empty repository master
Tizen Infrastructure [Mon, 1 Jul 2019 02:10:31 +0000 (02:10 +0000)]
Initial empty repository