Inki Dae [Fri, 31 Dec 2021 01:50:53 +0000 (10:50 +0900)]
mv_maching_learning: deprecate MLAPI and MAX types
[Version] : 0.11.0-0
[Issue type] : cleanup
Deprecated MV_INFERENCE_BACKEND_MLAPI and MV_INFERENCE_BACKEND_MAX types.
MV_INFERENCE_BACKEND_MLAPI is not backend type but other API framework,
and another may break the binary compatibility when adding a new enumeration
value because MAX value is different from one of the binary
So drop these two types.
Change-Id: I391cd0d4b713e3d35fe263f1567f4cea3df60630
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 28 Dec 2021 10:31:33 +0000 (19:31 +0900)]
test/machine_learning: add snpe model support
[Version] : 0.10.0-0
[Issue type] : new feature
Added a test case for SNPE engnie with dlc model.
Change-Id: I7d20f9974300130ddeaf4e8eb77482d89dee0b9d
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Wed, 24 Nov 2021 08:39:23 +0000 (17:39 +0900)]
mv_machine_learning: add SNPE inference engine support
[Version] : 0.9.0-0
[Issue type] : new feature
Change-Id: Iabfc4932d808296c8941bc8bbacf88b9fbe09616
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Mon, 18 Oct 2021 07:06:27 +0000 (16:06 +0900)]
mv_machine_learning: code refactoring to property parsing
Did code refactoring to propery parsing of BoxInfo and Landmark classes.
What this patch did,
- Move parseLabel, ParseNumber, ParseDecodeInfo functions from
OutputMetadata class to BoxInfo one because these properties
are related to BoxInfo class not OutputMetadata class.
- Move parseDisplayment, parseEdgeMap, parseDecodeInfo functions from
OutputMetadata class to Landmark one because these properties
are related to Landmark class not OutputMetadata class.
This is just one step for next code refactoring.
Change-Id: I0a17ee29f492bee53acacab339ba746a44495790
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Thu, 14 Oct 2021 06:43:59 +0000 (15:43 +0900)]
mv_machine_learning: code refactoring to OutputMetadata module
OutputMetadata.h and cpp files contain many classes and relevant
code so it makes maintenance too hard.
The biggest change of this refactoring is to separate many classes
in OutputMetadata file into each one. And also it changes unnecessary
class type to struct including several cleanups such as code sliding,
renaming and dropping unnessary code.
Change-Id: I0ce677d333ce3a3e7212f7d26a20b6cf77bc7a9a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Wed, 13 Oct 2021 09:55:41 +0000 (18:55 +0900)]
mv_machine_learning: code cleanup to Inference class
Cleaned up Inference class.
What this patch does,
- code sliding.
- change variable name to meaningful one such as 'n' to 'output_idx'.
- drop unnecessary variable.
- use same parameter name for Get*Results functions.
Change-Id: I47ac3eb241116174e4a6a7bc2a1b90ab9378de25
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Thu, 7 Oct 2021 10:03:23 +0000 (19:03 +0900)]
mv_machine_learning: code refactoring to input and output metadata classes
Did code refactoring to InputMetadata and OuputMetadata.
The biggest change of this patch is to delegate all requests
of various metadata relevant classes to InputMetadata and
OutputMetadata classes to mitigate Inference class dependency of
Metadata things.
In addition, it makes several classes declared in BoxInfo class to get out
, and changes class to struct in case that class functionality isn't needed.
And some cleanup and code sliding.
This is just one step for next code refactoring.
Change-Id: I92c4e2b2c77499246c56a237282c05262550301a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Thu, 7 Oct 2021 06:30:36 +0000 (15:30 +0900)]
mv_machine_learning: code cleanup to GetFacialLandMarkDetectionResults function
Did code cleanup to GetFacialLandMarkDetectionResults function
by doing,
- code sliding
- change variable name to meaningful name for readability.
Change-Id: Ib59786c085c8202a1f7d9eb85a01d528220c728f
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Thu, 30 Sep 2021 10:45:34 +0000 (19:45 +0900)]
test/machine_learning/inference: add test cases for legacy path
Added test cases for legacy path of inference engine, which uses
user-given model information instead of ones from json file.
As for this, this patch has a little bit code refactoring which
uses parameterized test instead of fixture one of google test
to decide API path in runtime - json or legacy.
This patch enlarges exsiting test coverage from 119 to 132 test cases.
[==========] 132 tests from 6 test suites ran. (49021 ms total)
[ PASSED ] 132 tests.
Change-Id: I9829725aad8037cbe5a82d50e7790a3e7a6bfe6b
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Wed, 29 Sep 2021 09:37:43 +0000 (18:37 +0900)]
mv_machine_learning: code refactoring to GetClassificationResults function
Did code refactoring to GetClassificationResults member function of Inference class
for next code refactoring.
What this patch did are,
- drop code dependency of mPreProc from Inference class.
- drop code duplication of getting image classification result by
making same code to be used.
- and code sliding.
Change-Id: I721dc3081f730fcdb75dbe91ad743f906e076ea4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Mon, 27 Sep 2021 09:27:31 +0000 (18:27 +0900)]
mv_machine_learning: code refactoring to GetPoseLandmarkDetectionResults function
Did code refactoring to GetPoseLandmarkDetectionResults function of
Inference class by dropping Inference class dependency to mPoseResult object.
What this path did are,
- use smart pointer instead of new operator, and make postResult
object to be valid only in mv_inference_pose_landmark_detect_open
function context.
- drop some unnecessary local variables.
- and code sliding.
The biggest change of this patch is to drop Inference class dependency
of mPoseResult object for next code refactoring. As as result,
it drops one brace from GetPoseLandmarkDetectionResults function and makes
the function to be more simplified for code readability enhancement.
Change-Id: I25d1a175571d407404c088713a14e485496b2920
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Mon, 27 Sep 2021 07:49:21 +0000 (16:49 +0900)]
mv_machine_learning:code refactoring to Inference.cpp
Did code refactoring to Inference.cpp module for next code
refactoring work.
What this patch did are,
- just drop all unnecessary members of Inference class
- and gather some spreaded code to relevant place.
Change-Id: I2fa00af5b0b8701c4bdbbf62d07a2f9f2ef2bc85
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Tae-Young Chung [Fri, 24 Sep 2021 03:03:11 +0000 (12:03 +0900)]
test: Add meta files
Change-Id: I765ba21d3be44ac6305c6c5ffcdddf4ccdac746b
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Inki Dae [Fri, 17 Sep 2021 06:37:21 +0000 (15:37 +0900)]
mv_machine_learning: make IsXXX functions simplified
This patch changes existing code to just "return condition",
and declare IsJsonFile function as static function because
this function is used only in this module.
Change-Id: I86d8959ef32e382e4a0be76cbdc7ff781cede6e4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Fri, 17 Sep 2021 04:40:52 +0000 (13:40 +0900)]
mv_machine_learning: code refactoring to checking custom device type
This patch does code refactoring for enhancing code readiability
of the condition which checks if config type path is required or
not according to given backend and target device types.
As for this, this patch adds IsValidBackendType fucntion to check if
a given backend type is valid or not, IsConfigFilePathRequired
function to check if config file path is required or not, and
makes these functions to be used instead of existing complicated condition.
Change-Id: I195e3caeb205b159e2128a14c2b4b6516e7b952d
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Kwang Son [Fri, 17 Sep 2021 01:04:05 +0000 (21:04 -0400)]
test: Add TestPoseLandmarkDetection
Change-Id: Iebbfda014bbf9e6bf0db68c79b675f9879b7de5d
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Wed, 15 Sep 2021 01:29:16 +0000 (21:29 -0400)]
test: Add TestFaceLandmarkDetection
Change-Id: Ia54e4183c0a50044441b96fb991abe19741f8b3a
Signed-off-by: Kwang Son <k.son@samsung.com>
Inki Dae [Wed, 15 Sep 2021 07:07:51 +0000 (07:07 +0000)]
Merge "mv_machine_learning: code cleanup for refactoring" into tizen_devel
Kwang Son [Wed, 15 Sep 2021 04:15:07 +0000 (00:15 -0400)]
meta-template: fix json parse error
Change-Id: I03607e65fa52f6f048333943a97cb5cd23576ee1
Signed-off-by: Kwang Son <k.son@samsung.com>
Inki Dae [Tue, 14 Sep 2021 06:55:36 +0000 (15:55 +0900)]
mv_machine_learning: code cleanup for refactoring
Cleaned up mv_inference_open.cpp module for code refactoring.
What cleanups are,
- correct variable name which doesn't clarify what the name means.
- change goto label name to be meaningful with resource release issue.
- drop unnecessary code.
- move code so that relevant code could be grouped together.
This patch is just one step of what we have to for code refactoring.
Change-Id: Ia744508e0318d6558a0f4901a90d7ac8a14634e2
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 7 Sep 2021 07:21:52 +0000 (16:21 +0900)]
test: set meta file path
Since commit-id
c4e918cda1ef97fdd5e5cf74dd056b65407ab671,
Mediavision needs a json file per a model.
This patch makes json file path using a given model file path
and sets it in case of reference model.
Change-Id: I51c9721fbebeb6c79abeb67faa193b9580bbae95
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 7 Sep 2021 05:12:24 +0000 (14:12 +0900)]
mv_machine_learning: drop GetResults function
This function isn't used so drop it.
Change-Id: I4c3b95bb3716d14bd42dc1531b9be6f33d958a62
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 7 Sep 2021 03:59:07 +0000 (12:59 +0900)]
mv_machine_learning: introduce allocate function for TensorBuffer class
Added allocate function to allocate buffers for input and output tensors.
This patch drops code duplication - same code was used to allocate
input and output tensor buffers.
Change-Id: I0cfb46633a9a3fe74c734307ac9c15b5df064e63
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 7 Sep 2021 07:21:52 +0000 (16:21 +0900)]
test: set meta file path
Since commit-id
c4e918cda1ef97fdd5e5cf74dd056b65407ab671,
Mediavision needs a json file per a model.
This patch makes json file path using a given model file path
and sets it in case of reference model.
Change-Id: I51c9721fbebeb6c79abeb67faa193b9580bbae95
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 7 Sep 2021 05:12:24 +0000 (14:12 +0900)]
mv_machine_learning: drop GetResults function
This function isn't used so drop it.
Change-Id: I4c3b95bb3716d14bd42dc1531b9be6f33d958a62
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Inki Dae [Tue, 7 Sep 2021 03:59:07 +0000 (12:59 +0900)]
mv_machine_learning: introduce allocate function for TensorBuffer class
Added allocate function to allocate buffers for input and output tensors.
This patch drops code duplication - same code was used to allocate
input and output tensor buffers.
Change-Id: I0cfb46633a9a3fe74c734307ac9c15b5df064e63
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Tae-Young Chung [Wed, 8 Sep 2021 10:06:17 +0000 (10:06 +0000)]
Merge "Skip ParseMetadata() if a metadata json file doesn't exist" into tizen
Hyunsoo Park [Tue, 7 Sep 2021 10:44:13 +0000 (19:44 +0900)]
Fix coverity issue(RESOURCE_LEAK/UNINIT)
Change-Id: I13e283e496dc815cf5a168df3a365b83f4c3cf83
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
Tae-Young Chung [Wed, 8 Sep 2021 01:14:23 +0000 (10:14 +0900)]
Skip ParseMetadata() if a metadata json file doesn't exist
Change-Id: Ibfc01bd79fe300447034f7504c4573abec47223a
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Fri, 3 Sep 2021 03:58:27 +0000 (12:58 +0900)]
Add MV_INFERENCE_MODEL_META_FILE_PATH attribute and deprecate some attributes which can be described in a metafile
Deprecate attributes
- MV_INFERENCE_MODEL_MEAN_VALUE
- MV_INFERENCE_MODEL_STD_VALUE
- MV_INFERENCE_INPUT_TENSOR_WIDTH
- MV_INFERENCE_INPUT_TENSOR_HEIGHT
- MV_INFERENCE_INPUT_TENSOR_CHANNELS
- MV_INFERENCE_INPUT_DATA_TYPE
- MV_INFERENCE_INPUT_NODE_NAME
- MV_INFERENCE_INPUT_OUTPUT_NODE_NAMES
- MV_INFERENCE_OUTPUT_MAX_NUMBER
- MV_INFERENCE_CONFIDENCE_THRESHOLD
Change-Id: I340b6c2fa3872dd682bc2f60d45007ffb87a46b5
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Fri, 3 Sep 2021 01:14:32 +0000 (10:14 +0900)]
Remove unnecessary dim_type metadata
Change-Id: Ied3b116ad0e34becd9e87caafa59de8069f2639f
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Thu, 2 Sep 2021 07:04:05 +0000 (16:04 +0900)]
Change offset's shape_type and displacement's shape_type and type to string
Change-Id: Ide16c57e44532d10e9633a1399c6d787991baf33
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Tue, 31 Aug 2021 08:09:49 +0000 (17:09 +0900)]
Change Landmark's landmark_type, landmark_coordinate, and decoding_type to string
A user can use the string while understanding purpose of
landmark_type, landmark_coordinate, and decoding_type metadata.
The string values are parsed and converted to enumeration type
inference_landmark_type_e, inference_landmark_coordinate_type_e,
and inference_landmark_decoding_type_type_e, respectively.
Change-Id: Ia3a4098213a712ffd1927838d7b9931d1edfcbd0
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Tue, 31 Aug 2021 00:08:29 +0000 (09:08 +0900)]
Fix missing goto _ERROR_
Change-Id: I07f7cc7dfd90677b6d8fdbe3f82068490406562b
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Mon, 30 Aug 2021 12:25:11 +0000 (21:25 +0900)]
Change int CheckSupportedTargetDevice() to bool IsTargetDeviceSupported() and print format of targetDevices.
Change-Id: I1f9e92634a09f1f93222762cea93f0d25a71aeee
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Wed, 25 Aug 2021 04:57:13 +0000 (13:57 +0900)]
Change behavior before and after pInfer->Bind()
In Inference::Bind(), pInfer->Bind(), mConfig.mTargetTypes is used.
But, mConfig.mTargetTypes is set by pInfer->ConfigureTargetTypes and
pInfer->ConfigureTargetDevices after pInfer->Bind().
So we change the behavior as follows.
before pInfer->Bind(),
mConfig.mTargetTypes is set by pInfer->ConfigureTargetTypes().
After pInfer->Bind(),
pInfer->CheckSupportedTargetDevice() just checks the mConfig.mTargetTypes
is supported or not.
Change-Id: I79d2dc6372aac0c503783fb9fef2b4eccecbb018
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Tue, 24 Aug 2021 08:46:39 +0000 (17:46 +0900)]
Fix '!=' operator to '&' for supported_accel_devices bitwise comparison
Change-Id: Ief7d7deebcc9e2fcac83ff98f9b01f0c40e09f38
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Tue, 24 Aug 2021 07:04:37 +0000 (16:04 +0900)]
Fix mv_engine_config_set_int_attribute() to mv_engine_config_set_string_attribute()
Change-Id: Ic6e10c1739746ca01eb29da68901dfd4dc0762db
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Tue, 24 Aug 2021 02:29:59 +0000 (11:29 +0900)]
Add return value handling
error should be returned when exception is catched and
is handled properly.
Change-Id: If669515f2b573d3c96165647bd8eaca852d373b1
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Mon, 23 Aug 2021 06:38:13 +0000 (15:38 +0900)]
Change BoxInfo's box_coordinate, decoding_type and NMSParam's mode to string
A user can use the string while understanding purpose of
box_coordinate, decoding_type, and mode metadata.
The string values are parsed and converted to enumeration type
inference_box_coordinate_type_e, inference_box_decoding_type_e,
and inference_box_nms_type_e, respectively.
Change-Id: I4419a288f070456c9f8d411feed7706cd0f806f0
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Fri, 20 Aug 2021 05:57:30 +0000 (14:57 +0900)]
Fix bug in OjbectDecdoder::decode()
GetType should be GetDecodingType().
decoding is based on decoding_type, not box_type.
Change-Id: I4ed7cc64ed0f9a1503279fca7d20c6e0f8414ed7
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Fri, 20 Aug 2021 05:43:35 +0000 (14:43 +0900)]
Change BoxInfo's box_type in outputmetadata to string
box_type in BoxInfo outputmetadata was integer value.
It is changed to string, ORIGIN_LEFTTOP and ORIGIN_CENTER.
A user can use the string while understading purpose of box_type metadata.
The string values are parsed and converted to enumeration
INFERENCE_BOX_TYPE_ORIGIN_LEFTTOP or INFERENCE_BOX_TYPE_ORIGIN_CENTER.
Change-Id: Icab71b26ca3c96652c23a584eb8a3ec5c6d7d44b
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Kwang Son [Thu, 19 Aug 2021 23:02:08 +0000 (19:02 -0400)]
test: Add FaceDetection test
Change-Id: Ice45ea84dcdb2c2fd1348e1c0c37210d3c94b30c
Signed-off-by: Kwang Son <k.son@samsung.com>
kwang son [Thu, 19 Aug 2021 22:46:51 +0000 (22:46 +0000)]
Merge "test: break condition" into tizen_devel
Tae-Young Chung [Thu, 19 Aug 2021 10:02:35 +0000 (19:02 +0900)]
Change pkgconfig(gtest) to gtest-devel
gtest which is used in GBM is older version without a pc file.
To prevent build failure, use gtest-devel instead of pkgconfig(gtest)
in spec file.
Change-Id: I67f7e5f02288559bdf886dca33f47f68be8d7552
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Thu, 19 Aug 2021 03:26:58 +0000 (12:26 +0900)]
Change ScoreInfo's score_type in outputmetadata to string
score_type in ScoreInfo outputmetadata was integer value which an user doesn't understand
even though it was provided for the user convenience.
So they are changed to string and user can understand what they mean.
The string values are parsed and converted to proper enumerations.
Change-Id: I9f09bb6f2c534ff5a8f5084a3e2413514b075f5d
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Kwang Son [Thu, 19 Aug 2021 05:59:07 +0000 (01:59 -0400)]
test: break condition
Change-Id: I9994f71ad8627dd4a3d6792e87b9602651ba76b4
Signed-off-by: Kwang Son <k.son@samsung.com>
kwang son [Thu, 19 Aug 2021 05:46:58 +0000 (05:46 +0000)]
Merge "test: Add ObjectDetection test" into tizen_devel
Tae-Young Chung [Wed, 18 Aug 2021 06:36:07 +0000 (15:36 +0900)]
Add Quantize() to PreProcess
Change-Id: I4df22f0ec4e1bcf663459083ce77f70d91c7a600
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Kwang Son [Wed, 18 Aug 2021 08:15:32 +0000 (04:15 -0400)]
test: Add ObjectDetection test
Add inference dog object detection test.
Move common shared code to helper test class.
Change-Id: I7c02d62fa1c45422ecd5550853adaf39f7fc6a5a
Signed-off-by: Kwang Son <k.son@samsung.com>
Tae-Young Chung [Wed, 18 Aug 2021 04:45:02 +0000 (04:45 +0000)]
Merge "Change inputmetadata's shape_type, data_type, color_space to string" into tizen_devel
Kwang Son [Wed, 18 Aug 2021 03:12:11 +0000 (23:12 -0400)]
test: Reduce memcpy in loadImageToSource
loadImageToBuffer and mv_source_fill_by_buffer has own memcpy functions
which are duplicated.
- Before patch
[ PASSED ] 117 tests.
real 0m24.457s
user 0m23.040s
sys 0m6.565s
- After patch
[ PASSED ] 117 tests.
real 0m23.857s
user 0m22.802s
sys 0m6.085s
Change-Id: Ibc6dbcc01a1b4a768ea6a8b9311f3484008e4ff0
Signed-off-by: Kwang Son <k.son@samsung.com>
Tae-Young Chung [Tue, 17 Aug 2021 09:35:02 +0000 (18:35 +0900)]
Change inputmetadata's shape_type, data_type, color_space to string
Those metadata are user unfriendly and difficult to use because of a lack of decscription.
They are changed to string and user can understand what they mean.
The string values are parsed and converted to proper enumerations.
Change-Id: Ia98f29790d68fe2bf2fb38e2e922cc0b9b4d80e4
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
kwang son [Wed, 18 Aug 2021 02:16:46 +0000 (02:16 +0000)]
Merge "test: Add Image classicifation models" into tizen_devel
Kwang Son [Tue, 17 Aug 2021 09:26:32 +0000 (05:26 -0400)]
test: Add Image classicifation models
Change-Id: Ie394dedaf72ffbfc76b2f69d41ddf6ee4c83cfaf
Signed-off-by: Kwang Son <k.son@samsung.com>
Tae-Young Chung [Tue, 17 Aug 2021 06:33:04 +0000 (15:33 +0900)]
Fix unsafe mix of types 'gboolean' and 'bool'
Change-Id: I547f2e907f1be1d3774026e9fe36b299f4b4cca3
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Tue, 17 Aug 2021 02:10:02 +0000 (11:10 +0900)]
Fix printf type of size_t from i to zu
Change-Id: I97a0b981a599ef971016eca85860fcb51df49d1f
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
kwang son [Tue, 17 Aug 2021 00:46:27 +0000 (00:46 +0000)]
Merge "test: Update assessment test instruction" into tizen_devel
Kwang Son [Fri, 13 Aug 2021 08:24:35 +0000 (04:24 -0400)]
test: Update assessment test instruction
Change-Id: Ic7782efdb199aab123dd2f0488a7b5cbc4952c91
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Fri, 13 Aug 2021 08:10:33 +0000 (04:10 -0400)]
test: Replace barcode libcheck to gtest
Change-Id: I22339de3c880f3958ee8e049a29d902846fc0acf
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Wed, 11 Aug 2021 02:02:26 +0000 (22:02 -0400)]
test: Move load image function to helper
ImageHelper already has similar function.
Change-Id: Ibeecaf6ba387a1504811c70423f9d7b216cec154
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Mon, 9 Aug 2021 03:24:45 +0000 (23:24 -0400)]
test: Add mv_test
media vision unit test based on Gtest
media vision already has testsuites and assessment but each has some limitations.
See test/README.md more details.
Change-Id: I1d62adaeac92efe5ddc9cc6fa7a350e1aa3c846a
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Thu, 5 Aug 2021 02:28:39 +0000 (22:28 -0400)]
test: Cleanup image, object detection
Base on commit
0a7ab1f50e641c4937d2ca87ab0950067688860b
alloactate mv_source, mv_engine, mv_infer in a function
so makes hard to deallocate resource and error handling.
Change-Id: Ibd9586fe5e999e3013ab989643f47b6a4547f3fa
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Wed, 4 Aug 2021 07:06:26 +0000 (03:06 -0400)]
test: Cleanup perform_face_detection
Base on commit
0a7ab1f50e641c4937d2ca87ab0950067688860b
alloactate mv_source, mv_engine, mv_infer in a function
so makes hard to deallocate resource and error handling.
Change-Id: Iaf1124821e39c7785955bc9b06a49b5997bb0430
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Wed, 4 Aug 2021 01:42:19 +0000 (21:42 -0400)]
test: Cleanup perform_facial_landmark_detection
Base on commit
0a7ab1f50e641c4937d2ca87ab0950067688860b
alloactate mv_source, mv_engine, mv_infer in a function
so makes hard to deallocate resource and error handling.
Change-Id: Ib242154ec33602a8a9788203cabc34e37e5f878d
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Mon, 2 Aug 2021 07:37:46 +0000 (03:37 -0400)]
test: Seperate resource allocation
perform_pose_landmark_detection alloactate mv_source, mv_engine,
mv_infer in a function so makes hard to deallocate resource and
error handling.
Change-Id: I80df947730b734e9cb4f95bc238d66cccbe0ca7d
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Mon, 2 Aug 2021 01:28:41 +0000 (21:28 -0400)]
test: Remove test while loop
While loop keep previous test context which contains allocated resource.
This resource check only increase code not usability.
Change-Id: I1f2bfdd17fd6305d313d98362c4549b82f214d62
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Fri, 23 Jul 2021 02:19:11 +0000 (22:19 -0400)]
test: Add movenet for pose detection
Change-Id: Iba6c9fe101b0d3f0976aac41fc94ebd332d218e6
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Thu, 15 Jul 2021 08:39:20 +0000 (17:39 +0900)]
test: Add show_menu helper functions
show_menu -> show_menu_linear: clean manual numbering
show_menu_yes_or_no: clean name_last
Change-Id: Ib2b1579cf16351a2d1299a6285b7f6e9a0aed540
Signed-off-by: Kwang Son <k.son@samsung.com>
Tae-Young Chung [Fri, 16 Jul 2021 03:38:03 +0000 (12:38 +0900)]
Remove unnecessary variables copying outputData, instead use outputData itself
Change-Id: I03f67afaaa83042812de7323f9b90714ba37f80a
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Wed, 14 Jul 2021 07:04:28 +0000 (16:04 +0900)]
Update testsuite to run facial landmark models with meta files
Change-Id: Id3b8c985a7dcdc55f3e034107f7e4e9f5cd3760b
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Wed, 14 Jul 2021 07:01:34 +0000 (16:01 +0900)]
Add facial landmark detection inference with outputmetadata
Change-Id: I03deac554f22ec9fe079b38d9562fd667b854495
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Wed, 14 Jul 2021 02:52:12 +0000 (11:52 +0900)]
Add coordinate to Landmark outputmetadata
Coordinate outputmetadata of Landmark indicates that
an model's landmark coordinate is based on ratio between 0 ~ 1 or
pixel. According to it, internal processes are applied to get proper
landmark results.
Change-Id: I5e24b34cf6ca2c9e9404f082382fb7fc3d662e7f
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Kwang Son [Mon, 12 Jul 2021 08:05:42 +0000 (17:05 +0900)]
[MVQA] Change mv_infer_test order
Change-Id: I5a156f2192ec59fdf276413843af06852d47c2e4
Signed-off-by: Kwang Son <k.son@samsung.com>
Tae-Young Chung [Thu, 20 May 2021 01:30:02 +0000 (10:30 +0900)]
Update testsuite to run pose landmark models with meta files
Change-Id: I62307b534309ecbbf0c4e97ff2029e62fbdaea44
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Tae-Young Chung [Thu, 20 May 2021 01:12:54 +0000 (10:12 +0900)]
Add pose landmark detection inference with outputmetadata
Support models which require heatmap decoding with additional refinement
as well as models which just provide landmark results.
Change-Id: Ic993510d2655d488ea8a43e08a56c13d2f9bc94f
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Kwang Son [Thu, 24 Jun 2021 07:20:12 +0000 (16:20 +0900)]
Clean unused package dependency
Change-Id: I0308800190cf895893f1592ae5c102799f909fee
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Thu, 24 Jun 2021 05:23:56 +0000 (14:23 +0900)]
Fix printf format
Change-Id: I010e68687d67482a05ecd77e1bff4a6b72e27c21
Signed-off-by: Kwang Son <k.son@samsung.com>
kwang son [Thu, 24 Jun 2021 03:11:48 +0000 (03:11 +0000)]
Merge "Add packaging ml_only flag" into tizen_devel
Tae-Young Chung [Thu, 20 May 2021 00:57:02 +0000 (09:57 +0900)]
Add PoseDecoder and Landmark to decode various type of pose output tensor
Change-Id: I8be806ff3522aec1f7026912b8c317055e9e16db
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
kwang son [Tue, 22 Jun 2021 03:47:45 +0000 (03:47 +0000)]
Merge "Fix gcc warning" into tizen_devel
Kwang Son [Wed, 16 Jun 2021 07:55:52 +0000 (16:55 +0900)]
Fix gcc warning
Change-Id: I2c98fb88ee4247c8976f316baf5c6592b03f5b65
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Mon, 21 Jun 2021 03:09:14 +0000 (12:09 +0900)]
Add object detection script
Change-Id: I50d3708cdfac0547064ac3bae55238a321d27a09
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Mon, 21 Jun 2021 06:11:25 +0000 (15:11 +0900)]
Add packaging ml_only flag
Change-Id: I64a51a7a3b6fda3b3411e7ddee662b415be7a478
Signed-off-by: Kwang Son <k.son@samsung.com>
Tae-Young Chung [Fri, 18 Jun 2021 03:00:39 +0000 (03:00 +0000)]
Merge "Add new Landmark, OffsetVec, DispVec, Edge outputmetadata for pose landmark detection" into tizen_devel
Tae-Young Chung [Tue, 18 May 2021 10:18:35 +0000 (19:18 +0900)]
Add new Landmark, OffsetVec, DispVec, Edge outputmetadata for pose landmark detection
Change-Id: I7a2799005ebb887cf273c672132b3d9eb5a7ce40
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
Kwang Son [Wed, 16 Jun 2021 02:24:27 +0000 (11:24 +0900)]
Cmake mediavision build refactoring
- build type to RelWithDebInfo mode
- fix wrong naming(machine_learning -> inference)
- public to private include
- remove unused project
- remove unused libraries
Change-Id: Iab2866be23830c0a8d3e3296e921572fa548c108
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Tue, 15 Jun 2021 06:43:23 +0000 (15:43 +0900)]
Cmake mediavision build refactoring
- include -> target_include
- clean pkg_check_modules usage
- remove manual compile option
- remove unused libraries
- remove unused command
- remove arm neon flag
- remove manual prefix
Change-Id: Ie30dfe0e04321fef8ed42652ec06b4f0d3cc0bff
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Mon, 14 Jun 2021 09:00:23 +0000 (18:00 +0900)]
Cmake test build refactoring
- include -> target_include
- clean pkg_check_modules usage
- remove manual compile option
- remove unused libraries
- remove unused command
Change-Id: I1e3a389ac41ed18637ff15fcd8898b2652319fbf
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Mon, 14 Jun 2021 00:46:21 +0000 (09:46 +0900)]
Cmake to lower case consistency
Change-Id: I3f66547d57d01aceb87278843898b146b2fb7c14
Signed-off-by: Kwang Son <k.son@samsung.com>
kwang son [Mon, 14 Jun 2021 00:14:57 +0000 (00:14 +0000)]
Merge "Deprecate inference lic" into tizen_devel
kwang son [Mon, 14 Jun 2021 00:14:52 +0000 (00:14 +0000)]
Merge "Deprecate surveillance lic" into tizen_devel
kwang son [Mon, 14 Jun 2021 00:14:39 +0000 (00:14 +0000)]
Merge "Deprecate face lic" into tizen_devel
Kwang Son [Fri, 11 Jun 2021 07:01:59 +0000 (16:01 +0900)]
Deprecate inference lic
Inference licensed port code is support to change licensed version library
from opensource version. However practically no one used anymore.
Change-Id: I086f91800eb917ce89b6be9a86d765f8e1c643c4
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Fri, 11 Jun 2021 06:53:46 +0000 (15:53 +0900)]
Deprecate surveillance lic
Surveillance licensed port code is support to change licensed version library
from opensource version. However practically no one used anymore.
Change-Id: If77d4174ebbe55bc639c6a18eed30833ecee0fe7
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Fri, 11 Jun 2021 03:22:25 +0000 (12:22 +0900)]
Apply meta json data type
Change-Id: Ibd754d1b9aa78f594bd70fe1040c54758f477aff
Signed-off-by: Kwang Son <k.son@samsung.com>
Kwang Son [Fri, 11 Jun 2021 04:39:23 +0000 (13:39 +0900)]
Deprecate face lic
Face licensed port code is support to change licensed version library
from opensource version. However practically no one used anymore.
Change-Id: Iacefbd9de9307836442f66504fdaafeddc8bf612
Signed-off-by: Kwang Son <k.son@samsung.com>
Tae-Young Chung [Fri, 11 Jun 2021 02:07:27 +0000 (02:07 +0000)]
Merge "Update testsuite to run google face detection models with meta files" into tizen_devel
kwang son [Fri, 11 Jun 2021 00:34:48 +0000 (00:34 +0000)]
Merge "Deprecate image lic" into tizen_devel
Kwang Son [Thu, 10 Jun 2021 05:42:07 +0000 (14:42 +0900)]
AddressSanitizer: attempting double-free
mBackend is not allocated by Load function.
return error code is enough.
Change-Id: I3ece30b743d08892c97c2d325a14bd53685bdd43
Signed-off-by: Kwang Son <k.son@samsung.com>