summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Youngjae Shin [Thu, 16 Dec 2021 00:55:28 +0000 (09:55 +0900)]
fix build error(size_t) on x86_64
Change-Id: I03fdad90fc0629c8f29b0838fbbc396996b4f51b
Youngjae Shin [Wed, 15 Dec 2021 23:58:26 +0000 (08:58 +0900)]
fix build error with upgrading grpc (#1052)
Change-Id: Ibfc32e24509e862dfe89b5bcdbde005a3d604c7e
Juyeon Lee [Mon, 29 Nov 2021 06:24:02 +0000 (15:24 +0900)]
Eval support various meda file (#1048)
[Problem]
beyond takes various input data but need to verify using program
[Solution]
add options to support test
- conf_size : raw data size(the same width and height)
- load raw data if the image extention is not an image(jpg,png,tiff..)
- copy contents to input tensor(copy data could be equal or less than tensor size)
- additional help message print
Change-Id: I06a265aeaf1cfc9a5056bc2b27615e868d19aa70
Signed-off-by: Juyeon Lee <juyeonne.lee@samsung.com>
Sung-jae Park [Fri, 5 Nov 2021 08:53:27 +0000 (17:53 +0900)]
Fixup Input Tensor dims format (NHWC) (#1040)
[Problem] Input Tensor's dimension should be in NHWC format
[Solution] Add batch and channel sizes
```bash
sh-3.2# beyond-tizen-capi-test --gtest_filter=*inference*
Running main() from /home/abuild/rpmbuild/BUILD/gtest-1.10.0/googletest/src/gtest_main.cc
Note: Google Test filter = *inference*
[==========] Running 3 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 3 tests from inference
[ RUN ] inference.positive_beyond_inference_create_with_nullarg
[ OK ] inference.positive_beyond_inference_create_with_nullarg (1 ms)
[ RUN ] inference.positive_beyond_inference_create
[ OK ] inference.positive_beyond_inference_create (0 ms)
[ RUN ] inference.positive_beyond_inference_get_input_tensor_info_Runtime
** Message: 12:19:44.941: accl = cpu
[ OK ] inference.positive_beyond_inference_get_input_tensor_info_Runtime (174 ms)
[----------] 3 tests from inference (175 ms total)
[----------] Global test environment tear-down
[==========] 3 tests from 1 test suite ran. (175 ms total)
[ PASSED ] 3 tests.
```
Change-Id: Ia8a180bc4548da2f5e8487dd7fd121df47b2a4f4
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Juyeon Lee [Thu, 4 Nov 2021 04:11:48 +0000 (13:11 +0900)]
Eval provides profile information
* Eval: add latency and throughput
Change-Id: I11557c4bfd7c76c456aa3376ec24bd75139c944f
Signed-off-by: Juyeon Lee <juyeonne.lee@samsung.com>
Juyeon Lee [Fri, 29 Oct 2021 12:15:39 +0000 (21:15 +0900)]
Eval: add input config type and format, support video config
[new]
1. add input config type and format
2. support input config both image and video
[change]
1. there were problem that load image in every inference.
change to load image once
Change-Id: Ia0d0c84d042ff1d74d7a5717a44e403f0dfffdfa
Signed-off-by: Juyeon Lee <juyeonne.lee@samsung.com>
Juyeon Lee [Thu, 28 Oct 2021 02:37:37 +0000 (11:37 +0900)]
Eval supports model for float32 data type
* Eval supports model for float32 data type
[Problem]
1. after input tensor info applied input configuration,
could copy data as much as configured.
2. it is necessary to check input configed pipeline with various model
[Solution]
added eval opt model_dtype to verify model in uint8 and float32
Signed-off-by: Juyeon Lee <juyeonne.lee@samsung.com>
* fix labels size
* convert uint8 img to float32
* change opt order
Change-Id: I7b35ca82f656a53bb0dff0607c6bd2fe546ef975
Chanhee Lee [Wed, 27 Oct 2021 04:22:44 +0000 (13:22 +0900)]
Change AttachCurrentThread to GetEnv function.
[Problem] The implementation of event listener and output callback
function in Inference JNI are too complex.
[Solution] Simplify the current implementations by changing into
a lighter function.
Change-Id: If791977a4f31973c9020da6b24bb48526154dbe1
Sung-jae Park [Wed, 27 Oct 2021 03:05:23 +0000 (12:05 +0900)]
Extract common code for JNI
[Problem] Getting ENV code is duplicated and spread every component
[Solution] Collect them to a method and reuse it for all other components
Change-Id: I10f90b0d3b2288a73c056e22016f352d246ea914
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Tue, 26 Oct 2021 08:54:34 +0000 (17:54 +0900)]
Add an unittest for the input tensor info
[Problem] There is no TC for the input tensor info validation
[Solution] Add a TC for validating the input tensor info
```bash
sh-3.2# beyond-tizen-capi-test --gtest_filter=*inference*
Running main() from /home/abuild/rpmbuild/BUILD/gtest-1.10.0/googletest/src/gtest_main.cc
Note: Google Test filter = *inference*
[==========] Running 3 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 3 tests from inference
[ RUN ] inference.positive_beyond_inference_create_with_nullarg
[ OK ] inference.positive_beyond_inference_create_with_nullarg (0 ms)
[ RUN ] inference.positive_beyond_inference_create
[ OK ] inference.positive_beyond_inference_create (0 ms)
[ RUN ] inference.positive_beyond_inference_get_input_tensor_info_Runtime
** Message: 17:19:47.620: accl = cpu
[ OK ] inference.positive_beyond_inference_get_input_tensor_info_Runtime (171 ms)
[----------] 3 tests from inference (172 ms total)
[----------] Global test environment tear-down
[==========] 3 tests from 1 test suite ran. (172 ms total)
[ PASSED ] 3 tests.
```
Change-Id: I2d1d5682d83047f42c2d58efefc03b984e5c63fb
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Chanhee Lee [Tue, 26 Oct 2021 01:18:29 +0000 (10:18 +0900)]
Fix irregular java TC crashes.
Change-Id: Ic0d17d73971093e32c0923498c166c1a1f2956e0
Sung-jae Park [Tue, 26 Oct 2021 00:38:46 +0000 (09:38 +0900)]
Keep the added peer instance
[Problem] Peer instance should not be collected by the GC
[Solution] Keep the peer instance if it is added to the inference handler
Change-Id: I74079cd68d3dba6047fea0e024585ff8795b364e
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Mon, 25 Oct 2021 07:59:59 +0000 (16:59 +0900)]
Update input_tensor_info for configuring the input
[Problem] Input tensor information does not match to the configured input
[Solution] Update the input_tensor_info by configured input information
* SetInputTensorInfo() will change the model's input tensor information,
even though the caller has configured the input.
In other words, The GetInputTensorInfo() will not be affected by SetInputTensorInfo()
if the input data is configured.
* GetInputTensorInfo() only be affected by the configured input
- SetInputTensorInfo() -> Always tries to change the input tensor specification of the model
- SetOutputTensorInfo() -> Always tries to change the output tensor specification of the model
- GetOutputTensorInfo() -> Always returns the output tensor specification of the model.
- GetInputTensorInfo() -> returns the input tensor specification.
If the input is configured, the configured input specification will be returned
* Use the configuration input tensor info
It is not necessary to get the model's input tensor info
if there is a configured input information
Change-Id: I313a0b9f3a5be4f8f0ae95b09be03ac76bc742d0
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Youngjae Shin [Mon, 25 Oct 2021 05:28:33 +0000 (14:28 +0900)]
fix discovery unittest fails(timing)
and add fix of Potential Defects
Change-Id: Iefa73a2d1ad8d98b52ca21a3b7529f1253d52f58
Chanhee Lee [Thu, 21 Oct 2021 13:15:19 +0000 (22:15 +0900)]
Synchronize function and variable names.
Change-Id: If49f5893efd7d678f4e00247201f73b7bdcb4b0f
Juyeon Lee [Thu, 21 Oct 2021 09:07:51 +0000 (18:07 +0900)]
Comment input media type on beyond_input_image_config
[Problem]
format is restrict to with codec
convert_format is restrict to tensor_converter with peer_nn module
[Soultion]
clear comment module dependent tech. and add up-to-date format
Change-Id: I80af964b0bce6178ed61fc944f94bc8882040836
Signed-off-by: Juyeon Lee <juyeonne.lee@samsung.com>
Chanhee Lee [Thu, 21 Oct 2021 05:59:19 +0000 (14:59 +0900)]
Add arguments validation to Java APIs.
[Problem] There are not arguments validation in some Java APIs.
[Solution] Add null-checks and other validation logics to Java APIs.
* Add exceptions to Java class constructors.
* Synchronize the return type of setEventListener.
* Synchronize return types of Java functions.
* Add instance null-checkings to all Java APIs.
* Apply NonNull annotation.
* Apply PowerMock to handle static initialization blocks.
Change-Id: I978e78ab2028a0acdfdf1cf398485ffd81e5db89
Sung-jae Park [Tue, 19 Oct 2021 05:13:33 +0000 (14:13 +0900)]
Simplify the event handling of java implementation
[Problem] There is unnecessary codes for handling the event
[Solution] Simplify the event handling code. Use the event listener instead of an instance
* Handling the set(null) for the event listener
Change-Id: I72f608816050533357c62884c75d723744cf307a
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Tue, 19 Oct 2021 04:32:13 +0000 (13:32 +0900)]
Hide android context configuration from a user
[Problem] user does not want to do set the android context
[Solution] set the android context automatically
Change-Id: I5ed43835baf6c17c00ca31529736f39323d40ac3
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Tue, 19 Oct 2021 04:31:44 +0000 (13:31 +0900)]
Move out the module dependent code to the module
* Move out the module dependent code to the module
[Problem] libbeyond-android must not depend on a specific module
[Solution] move the peer_nn dependent code to the peer_nn module
* Release dlHandle properly when the initialization sequences get an error
* Initialize the android context when the peer is created
* Hide applicationContext configuration from the user
* Apply the review comments and sync to the latest Configure implementation
* Initialize the GST only if the platform is not Android
Change-Id: I7de2acebfca41a8c52b771cdfdcf952feb508824
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Tue, 19 Oct 2021 02:03:13 +0000 (11:03 +0900)]
Add AttachEventLoop() method
[Problem] There are duplicated codes
[Solution] Extract them to a method and then move it to the Parent Class
* AttachEventLoop() can be moved to the NativeInterface class later
Change-Id: Ib89bae76bf89745ea10cc102a663bf2d97ce21b3
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Chanhee Lee [Tue, 19 Oct 2021 01:20:45 +0000 (10:20 +0900)]
Add asynchronous Java inference execution.
* Add a test case for asynchronous executions in Java inference API.
- A test case for setting an output callback is added in Java
instrumentation tests.
- Android Looper is added in inference JNI.
* Update the test case.
* Update the Java callback function.
* Add debugging logs.
* Move setOutputCallback to Peer.
* Delete unused code.
* Add event loop logics to inference JNI.
* Get tensor outputs in JNI output callback.
* Update tensor JNI.
* Fix the creation of ByteByffer array,
* Add a tensor creation method.
* Remove debug messages.
* Change the type and name of OutputCallback class.
* Remove a dupliated test case.
* Delete unused code.
* Add missing copyrights.
* Fix warnings due to unused variables.
* Replace repeated code as functions.
* Add DeleteLocalRef and ExceptionCheck functions.
* Rename functions following coding convention.
* Update test cases.
* Rename OutputCallback to EventListener in Peer class.
* Refactor functions.
* Reflect review comments.
* Refactor code and add resource deallocations.
* Move a global static variable to a member variable.
Change-Id: I580a66a0732275e13678f2a1ec38f4c034aaecea
Chanhee Lee [Fri, 15 Oct 2021 06:21:30 +0000 (15:21 +0900)]
Fix a null-checking to prevent return.
[Problem] A wrong variable is null-checked and display an error log.
[Solution] Null-Check a correct one.
Change-Id: I2ba407fe3513b3e2e13a289fc13fafd19958dd72
Sung-jae Park [Thu, 14 Oct 2021 00:08:07 +0000 (09:08 +0900)]
Fixup typo
[Problem] There is an typo of SIGNATURE
[Solution] Fix it up
Change-Id: I487c2ebe7d989bf6ba9a39cc4ae362a640ff3cc2
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Chanhee Lee [Tue, 12 Oct 2021 08:03:54 +0000 (17:03 +0900)]
Fix failed test cases.
* Add a missing exclamation mark.
* Check the return value of isDefined function explicitly.
* Fix a discovery test case which fails.
Change-Id: I87407ad5613bc61e9a58afc459112ebd616bba5f
Youngjae Shin [Tue, 12 Oct 2021 05:43:26 +0000 (14:43 +0900)]
apply gtest_filter for build time test
Change-Id: If5eb937af2f02dd412bfef293777f43a82ef647c
Chanhee Lee [Tue, 12 Oct 2021 01:04:17 +0000 (10:04 +0900)]
Add null checks and non-instrumented TCs for inference package.
* Change null returns into exceptions.
Change-Id: I537cfed6aabc63f922a5a7100eaff26073b1bbf3
Juyeon Lee [Tue, 5 Oct 2021 00:30:38 +0000 (09:30 +0900)]
Add downwards state change for client
drop the final reference, to allow them to clean up
Change-Id: I0a6d0df43e9c9ef40a4192db09ba85ccdaee76ae
Kartik Anand [Fri, 1 Oct 2021 08:06:57 +0000 (13:36 +0530)]
Modify VP8 encoding to improve performance
* Modify VP8 encoding to improve performance
* Add/modify gstreamer elements to improve video input pipeline performance
Change-Id: I982d387b78a3b6ae1b59e2825569e8ffb20df5e4
Sung-jae Park [Fri, 1 Oct 2021 04:06:05 +0000 (13:06 +0900)]
Add a Java event data class for the discovery event
[Problem] Java BeyonD Device application cannot get the event data
[Solution] Add an eventObject for the discovery event
Change-Id: I22fdee660f9aa5c71389233fddd895832f6c3304
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Chanhee Lee [Thu, 30 Sep 2021 11:18:48 +0000 (20:18 +0900)]
Reduce the transformation steps of tensor information.
* Reduce the transformations of tensor information.
- Instead of using ArrayLists transformed from TensorInfo instances,
TensorInfo instances are directly transferred to and used in JNI.
* Simplify null checking.
* Replace hard-code into constant variables.
* Replace GetMethodID functions.
* Rename check_null_with_free function.
* Refactor private functions.
* Add exception handling for JNI function calls.
* Adjust try-catch positions.
* Remove unnecessary functions.
* Add release functions for JNI objects.
Change-Id: Ibb0fc2671d6dfd02b3c66a3b4cc3dfc2278c8245
Sung-jae Park [Tue, 28 Sep 2021 06:15:14 +0000 (15:15 +0900)]
Remove unnecessary information field from peer
[Problem] There is unnecessary field for the peer information
[Solution] Delete the service name field
Change-Id: I7146b9df41f6f7320ca079f5ec10ec7233e0f997
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Juyeon Lee [Tue, 28 Sep 2021 03:00:51 +0000 (12:00 +0900)]
Beyond_eval use generic discovery api
Change-Id: Ief0f84903bc097649b37d502bb48062ffeb687b8
Sung-jae Park [Mon, 27 Sep 2021 23:40:26 +0000 (08:40 +0900)]
Change c style to cpp style handle management
[Problem] C Style structure inheritance is implemented
[Solution] Use the class/struct inheritance
Change-Id: Ie9de53845f527360944a621030a32e019886be53
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Mon, 27 Sep 2021 23:40:09 +0000 (08:40 +0900)]
Clean up legacy codes
[Problem] There are unused code
[Solution] Clean up all legacy implementations
Change-Id: I31aff15348154c160eb70c56b797f388a74b7225
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Mon, 27 Sep 2021 04:27:15 +0000 (13:27 +0900)]
Change a lambda implementation to a static function
[Problem] There is a review comment that is related to the code readability
[Solution] Create a new function for the lambda code
Change-Id: I6e2d66024ef98bd1fe71da3d06bf01b23aa1385c
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Mon, 27 Sep 2021 04:26:48 +0000 (13:26 +0900)]
Implement the generic CAPI for the discovery
[Problem] Generic CAPI for the Discovery is not implemented
[Solution] Implement the Generic CAPI
Change-Id: I5077bbae4f1ff14e8695cb9b4dd00726b57e6aa4
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Sung-jae Park [Mon, 27 Sep 2021 01:56:40 +0000 (10:56 +0900)]
Add GetInfo for the Java API
[Problem] There is no way to get the automatically allocated port number from the peer
[Solution] Add GetInfo method to the peer class
* Create the information class to get and set the peer information
Change-Id: I40f71e8b3c5a595d4df10e7e5d7b03d8d4e1dac1
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Youngjae Shin [Thu, 23 Sep 2021 06:04:58 +0000 (15:04 +0900)]
fix typo in test program
Change-Id: I360ee4d36d5ca8d0ffd0e10c00d903c7df4b5f3c
Sung-jae Park [Thu, 23 Sep 2021 02:28:06 +0000 (11:28 +0900)]
[CWE-252] Fixup the coverty issue
[Problem] 1241492 Unchecked return value
[Solution] check the return status of each close() call
Change-Id: I97f174223ddd4d756e53e6800323e6e092397da6
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Juyeon Lee [Thu, 23 Sep 2021 01:00:33 +0000 (10:00 +0900)]
Add discovery set/remove item capi
Change-Id: I9ebd7bc760cde8c2da4964875d2fdc98446423ee
Signed-off-by: Juyeon Lee <juyeonne.lee@samsung.com>
Youngjae Shin [Wed, 22 Sep 2021 22:36:29 +0000 (07:36 +0900)]
add initializer for function variables
Change-Id: I5aa8e22f3d50b53f1509d3f54cf57711e032a477
Sung-jae Park [Fri, 17 Sep 2021 13:05:05 +0000 (22:05 +0900)]
Provide a way to set UUID for the Java API
[Problem] There is no way to set the UUID
[Solution] Add uuid as a third parameter of setInfo and change it from setIpPort
* Delete dangling header which has no body
Change-Id: I2a6753e30270619dc01ea18c41161b0f57df2a6d
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Youngjae Shin [Fri, 17 Sep 2021 10:50:25 +0000 (19:50 +0900)]
remove unnecessary null check
Change-Id: Ic1d305a51b7387c7f18d768eee204bebb6c5d58d
Youngjae Shin [Fri, 17 Sep 2021 05:30:48 +0000 (14:30 +0900)]
remove main function in unittest by using gtest_main
Change-Id: I19ae4166eb86c241d3820f7dd2b0046107eace4f
Chanhee Lee [Fri, 17 Sep 2021 04:45:52 +0000 (13:45 +0900)]
Update Copyright and the package name of TensorHandlerUnitTest.
Change-Id: I11041d536f3b998e46e896840a396ae3a618b45f
Sung-jae Park [Fri, 17 Sep 2021 04:44:29 +0000 (13:44 +0900)]
Fixup same manner to previous svace patch
[Problem] There was a svace alert for the resource leak
[Solution] Fixup like what the previous patch did
* This and previous patch is not possible to happen
However, for the safe-coding, applies this patch too
Change-Id: I44d86a280d184287f6025e763b8d2d2a55cedcdf
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
Youngjae Shin [Thu, 16 Sep 2021 22:34:19 +0000 (07:34 +0900)]
increase code quality with static analysis
Change-Id: I06e1fa0da0eef0b52335c5307cb789face6c0f62
Youngjae Shin [Wed, 15 Sep 2021 08:47:02 +0000 (17:47 +0900)]
remove random()
Change-Id: Ia28ff330a0b31eabe06399f7b233cd0e910816cd
Youngjae Shin [Wed, 15 Sep 2021 08:26:07 +0000 (17:26 +0900)]
revise file handling code
Change-Id: I42536e82266e4d5cab39ebdb031f85c36561b4e0
Juyeon Lee [Wed, 15 Sep 2021 00:31:42 +0000 (09:31 +0900)]
Remove service name exception
Change-Id: I0679b7774b666572bd833a0c7a82051c188603b7
김준민/MDE Lab(SR)/Engineer/삼성전자 [Tue, 14 Sep 2021 08:08:48 +0000 (17:08 +0900)]
Rename service name if passed name is different
Change-Id: If21de515d427bd59e36ee335c4acc392f422401e
Youngjae Shin [Tue, 14 Sep 2021 07:31:31 +0000 (16:31 +0900)]
revise ambiguous sizeof
Change-Id: I2cd5a04042657b4a55c313109030fc9e0e0d1edf
Youngjae Shin [Tue, 14 Sep 2021 05:48:18 +0000 (14:48 +0900)]
initial code
Change-Id: Ia7d37313af72440949332bebf1c0ad8381e14a3a
Tizen Infrastructure [Fri, 10 Sep 2021 08:10:21 +0000 (08:10 +0000)]
Initial empty repository