linuxias [Sat, 11 Nov 2023 08:44:17 +0000 (17:44 +0900)]
[Filter] Typecast using G_TENSOR_FILTER_SINGLE_PRIV macro
Changed to use a macro when converting a pointer to the GstTensorFilterSinglePrivate type.
Through this, the type conversion method is unified in other functions to maintain
consistency and ensure stability.
Signed-off-by: linuxias <linuxias@gmail.com>
Jaeyun Jung [Thu, 9 Nov 2023 10:28:22 +0000 (19:28 +0900)]
[Test/CodeClean] macro to handle tensor info
Code clean, use valid macro in test.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 7 Nov 2023 12:00:41 +0000 (21:00 +0900)]
[Element/gprc] release tensor-config struct
Release tensor-config struct when finalizing the element.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yongjoo Ahn [Wed, 8 Nov 2023 01:05:48 +0000 (10:05 +0900)]
[action] Change gbs cache timing
- Let action cache gbs every morning weekday.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun Jung [Mon, 6 Nov 2023 11:55:27 +0000 (20:55 +0900)]
[Decoder] macro for video formats
Define macro to specify video formats supported in decoder direct-video.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 6 Nov 2023 11:21:41 +0000 (20:21 +0900)]
[CodeClean] fix indent
Trivial, fix indent and remove unnecessary space.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 6 Nov 2023 11:20:28 +0000 (20:20 +0900)]
[Tizen/SensorSrc] fix mem leak case
Code clean, fix mem leak case when failed to add new gst-buffer.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Wed, 1 Nov 2023 10:16:00 +0000 (19:16 +0900)]
[Common] check index to get nth tensor
Code clean, check index to get nth tensor from gst-buffer and remove unnecessary code.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Wed, 1 Nov 2023 06:49:06 +0000 (15:49 +0900)]
[Python] validate tensors info
Validate output tensors info after parsing pyobject.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Wed, 1 Nov 2023 08:35:47 +0000 (17:35 +0900)]
[Python] fix log util
Update util function to print log message in python module.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yongjoo Ahn [Thu, 2 Nov 2023 05:49:22 +0000 (14:49 +0900)]
[action] Cache gbs once every weekday
- Let the new workflow cache gbs every weekday.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Thu, 2 Nov 2023 05:46:14 +0000 (14:46 +0900)]
[action] Do not run workflows on every push
- Doing every workflows on each push is not necessary as each
pull request already checks it.
- Do not run those to save the earth!
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun Jung [Thu, 2 Nov 2023 04:43:48 +0000 (13:43 +0900)]
[Common] unref memory when appending tensor buffer
Fix util function to take gst-memory if failed to append it.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 2 Nov 2023 05:12:15 +0000 (14:12 +0900)]
[Common] fix mem leak case
Fix mem leak case if failed to append memory into gst-buffer.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Wed, 1 Nov 2023 04:39:22 +0000 (13:39 +0900)]
[Converter/Python] function to handle tensor buffer
Change util function to handle gst-buffer including tensors.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Wed, 1 Nov 2023 05:01:17 +0000 (14:01 +0900)]
[Common] util to get nth info
Code clean, use util function to handle nth tensor.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yongjoo Ahn [Thu, 2 Nov 2023 01:20:41 +0000 (10:20 +0900)]
[action] Gbs build with `_skip_debug_rpm` and `--skip-srcrpm`
- Let gbs build do not make debug rpms and skip srcrpm
- This will save some seconds..
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Tue, 31 Oct 2023 05:44:32 +0000 (14:44 +0900)]
[action] Let gbs action cache 'GBS-ROOT/local/cache'
- Let github action cache the directory. Speed gbs build up by removing
package downloads.
- The cache key is the date. The very first run each day will make new
cache.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
MyungJoo Ham [Thu, 26 Oct 2023 10:27:42 +0000 (19:27 +0900)]
doc: product list updates
We have more products using NNStreamer. Update the list.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
MyungJoo Ham [Thu, 26 Oct 2023 07:58:23 +0000 (16:58 +0900)]
README: add face landmark example
Use the code from https://github.com/songgot/Tizen_IoT_face_landmark
CC: @songgot
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Jaeyun Jung [Wed, 1 Nov 2023 03:22:29 +0000 (12:22 +0900)]
[Common] hide old rank limit
Hide old rank limit from header.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yongjoo Ahn [Mon, 30 Oct 2023 08:21:08 +0000 (17:21 +0900)]
[action] Fix meson install and usage
- Let ubuntu build install proper meson and python.
- And use meson commands explicilty rather than use outdated action from
github marketplace
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 23 Oct 2023 06:31:21 +0000 (15:31 +0900)]
[doc] Add a gst-launch-script example for audio
- Add a simple audio classification gst-launch example.
- This resolves #3777
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
hyunil park [Fri, 20 Oct 2023 01:12:54 +0000 (10:12 +0900)]
[edge] Deprecate port and host property of edgesrc and update description for port property
- Add a description of deprecated for port and host property of edgesrc.
In the case of edgesrc, port and host settings are not required.
- Update description of port property of edgesink
Signed-off-by: hyunil park <hyunil46.park@samsung.com>
Yongjoo Ahn [Thu, 19 Oct 2023 08:39:21 +0000 (17:39 +0900)]
[util] Fix gst_tensors_info_to_string
- Let the method returns string ended with "]" always.
- Let get_dimension_string returns NULL when given dim is filled with 0
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Wook Song [Tue, 17 Oct 2023 05:29:36 +0000 (14:29 +0900)]
Decoder: Add detailed descriptions for the bounding box sub-plugin
In addition to nnstreamer#4284, this patch adds descriptions for the
bounding box sub-plugin options.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Wook Song [Tue, 17 Oct 2023 05:21:32 +0000 (14:21 +0900)]
Decoder/BoundingBox: Apply gst-indent to the bounding box sub-plugin
This is a trivial patch that applies gst-indent to the bounding box
sub-plugin of Tensor Decoder to keep the constant code style.
Signed-off-by: Wook Song <wook16.song@samsung.com>
MyungJoo Ham [Mon, 16 Oct 2023 07:29:11 +0000 (16:29 +0900)]
decoder: add detailed descriptions for a few subplugins.
As #3903 requests, we need descriptions for subplugin users.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
MyungJoo Ham [Mon, 16 Oct 2023 07:02:35 +0000 (16:02 +0900)]
decoder/filter: more info for gst-inspect.
Show available frameworks / mode with gst-inspect.
This is the first step to address #3903
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Yongjoo Ahn [Mon, 16 Oct 2023 07:42:20 +0000 (16:42 +0900)]
[test] Add SSAT testcases for yolo decoders
- Add SSAT TCs for yolov5 and yolov8 decoder.
- Add raw input files and golden result files.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 16 Oct 2023 07:39:01 +0000 (16:39 +0900)]
[decoder] Fix track mode bug (wrong struct size)
- Fix wrong size of glib array for distanceArray.
sizeof (float) -> sizeof (distanceArrayData)
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 16 Oct 2023 08:18:22 +0000 (17:18 +0900)]
[test] Add simple ssat testcase for pose decoder
- Add a simple test for option3 and option4 (increasing line coverage)
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
seungha son [Mon, 16 Oct 2023 05:07:23 +0000 (14:07 +0900)]
Delete unnecessary empty line
Signed-off-by: seungha son <linuxias@gmail.com>
MyungJoo Ham [Fri, 13 Oct 2023 09:55:48 +0000 (18:55 +0900)]
github-action: ubuntu-llvm/clang build test
Add llvm/clang build test.
Fixes #3979
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
MyungJoo Ham [Fri, 13 Oct 2023 09:16:58 +0000 (18:16 +0900)]
Support clang/clang++
Fix clang's complaints.
Addressing #3979
To build w/ LLVM, do
$ CC=clang CXX=clang++ meson ...
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Wook Song [Fri, 13 Oct 2023 01:22:07 +0000 (10:22 +0900)]
Filter/MLAgent: Replace MLAgentd with MLAgent
Since MLAgentd would not be used interchangeably with MLAgent anymore,
this patch applies those changes.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Wook Song [Fri, 13 Oct 2023 01:17:33 +0000 (10:17 +0900)]
Filter/MLAgent: Apply function name changes in the MLAgent API
This patch applies the changes of function names in the MLAgent API.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Yongjoo Ahn [Fri, 13 Oct 2023 06:00:15 +0000 (15:00 +0900)]
[decoder] Let user set yolo decoder parameters
- Let option3 of yolo decoders can handle user provided parameters.
For yolov5 and yolov8 mode:
The option3 requires up to 3 numbers, which tell
- whether the output values are scaled or not
0: not scaled (default), 1: scaled (e.g., 0.0 ~ 1.0)
- the threshold of confidence (optional, default set to 0.25)
- the threshold of IOU (optional, default set to 0.45)
An example of option3 is "option3=0:0.65:0.6"
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun Jung [Fri, 13 Oct 2023 09:45:35 +0000 (18:45 +0900)]
[Build] allowed element (identity)
Add 'identity' in the list of allowed elements.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
MyungJoo Ham [Fri, 25 Aug 2023 07:59:01 +0000 (16:59 +0900)]
memleak fix: tensor_split forgot to free things.
1. split->tensorseg is not freed when overwritten.
2. tensordim pointers are never freed but new-ed frequently.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
MyungJoo Ham [Wed, 11 Oct 2023 07:30:56 +0000 (16:30 +0900)]
filter: handle error of convert_to_meta
gst_tensor_info_convert_to_meta may return error
if the configured output tensor is invalid.
Handle the error before feeding it to another function,
that may access uninitialized value.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
MyungJoo Ham [Wed, 11 Oct 2023 07:33:50 +0000 (16:33 +0900)]
test: don't wait for 10000sec. wait 10sec.
wait_pipeline_process_buffers accepts timeout in ms, not us.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
MyungJoo Ham [Wed, 6 Sep 2023 08:30:40 +0000 (17:30 +0900)]
decoder:tensor_region: fix for future expansion.
- Fix a mem leak (tr_exit())
- For future expansion with different mode, prepare exiting previous modes.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
MyungJoo Ham [Wed, 6 Sep 2023 08:18:41 +0000 (17:18 +0900)]
style fix: decoder/tensor_region dos2unix & trailing whitespaces
It was formatted in "DOS" type. Apply dos2unix.
Then, remove trailing whitespaces.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
MyungJoo Ham [Tue, 10 Oct 2023 09:52:33 +0000 (18:52 +0900)]
build: better flatc-flatbuf version mismatch message
Flatbuf is not enabled if the version of flatc mismatches.
Print a more friendly message for such version mismatch.
This helps #4226
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
MyungJoo Ham [Tue, 10 Oct 2023 10:26:09 +0000 (19:26 +0900)]
test/datarepo_src: scope error
The bus_callback was using a global variable, loop,
while its registerers (e.g., TEST (datareposrc, fps30ReadFlexibleTensors) )
has loop local variable.
Therefore, the callback has been using uninitialied and unrelated
global variable, loop, which often causes unit test errors:
```
[ 316s] [ RUN ] datareposrc.fps30ReadFlexibleTensors
[ 317s] Elapsed time: 0.687305 second
[ 317s] ../tests/nnstreamer_datarepo/unittest_datareposrc.cc:686: Failure
[ 317s] Expected: (0.8) < (elapsed_time), actual: 0.8 vs 0.687305
[ 317s] Elapsed time: 0.003219 second
[ 318s] Elapsed time: 1.001501 second
[ 318s] [ FAILED ] datareposrc.fps30ReadFlexibleTensors (2045 ms)
```
by exiting from g_main_loop too early.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Yongjoo Ahn [Thu, 14 Sep 2023 06:25:52 +0000 (15:25 +0900)]
[decoder] Add log option for bounding_box decoder
- Add an option to decide whether to log (print) result boxes.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Wook Song [Tue, 27 Jun 2023 08:56:41 +0000 (17:56 +0900)]
Filter/MLAgent: Initial draft for ml-agent support in TensorFilter
This patch is an initial draft to bring the ML Agent features into NNS.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Yelin Jeong [Thu, 21 Sep 2023 03:09:34 +0000 (12:09 +0900)]
[Doc] edit documentation files related with tensor info
This patch edits docs and comments related with tensor info.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Jaeyun Jung [Fri, 22 Sep 2023 05:37:59 +0000 (14:37 +0900)]
[Filter/Decoder] function to get property
Fix warning on gst-inspect cmd,
1. add config-path to read plugin properties.
2. update invalid description.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Wook Song [Mon, 25 Sep 2023 09:00:07 +0000 (18:00 +0900)]
DataRepo/Src: Apply g_autoptr for local variables
This patch applies g_auto and g_autofree for local gchar * and gchar **
variables to improve readability.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Wook Song [Mon, 25 Sep 2023 02:14:21 +0000 (11:14 +0900)]
DataRepo/Src: Add missing null check to the finalize function
Since a null check is omitted in the finalize function, g_object_unref
complains about it in some cases as follows:
(unittest_datareposrc:19927): GLib-GObject-CRITICAL **: 10:46:26.793: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
This patch fixes it.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Wook Song [Mon, 25 Sep 2023 08:32:33 +0000 (17:32 +0900)]
DataRepo/Src: Correct typos
This is a trivial patch that corrects typos. It would be better to
revise the texts in the file later.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Wook Song [Mon, 25 Sep 2023 07:27:17 +0000 (16:27 +0900)]
DataRepo/Src: Get the framerate only if the data have it
This patch fixes the bug that tries to get the 'framerate' value from
the caps of any data source. Note that there is no 'framerate' field in
GstAudioInfo.
Signed-off-by: Wook Song <wook16.song@samsung.com>
linuxias [Sun, 24 Sep 2023 13:46:52 +0000 (22:46 +0900)]
[Edge] Fix memory leak when finalize edge-src/sink
Free edge-src and sink variable memory when call
finalize method to clear GstEdgeSink and Source memory
Signed-off-by: linuxias <linuxias@gmail.com>
seungha son [Mon, 25 Sep 2023 09:55:58 +0000 (18:55 +0900)]
[Edge] Change type casting to GST macro
- An explicit type casting technique is used to
safely and clearly convert the type using a GST macro.
Signed-off-by: seungha son <linuxias@gmail.com>
Yelin Jeong [Fri, 22 Sep 2023 05:54:19 +0000 (14:54 +0900)]
[doc] fix broken link in github.io
This patch fixes broken link in github.io.
github.com uses .md file and github.io uses .html file for link.
So conversion is required.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Jaeyun Jung [Fri, 15 Sep 2023 09:30:49 +0000 (18:30 +0900)]
[Release] start impl for next release
Update version, start implementation for next release.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
MyungJoo Ham [Thu, 21 Sep 2023 08:24:02 +0000 (17:24 +0900)]
test: tensor_filter/tflite2 correct postfix
Negative test cases require _n postfix for the test infrastucture
to recognize them. The new test cases with property config forgot
to add such postfix properly.
This fixes test case infra regression with #4262
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
linuxias [Tue, 12 Sep 2023 15:26:33 +0000 (00:26 +0900)]
[tensor_filter] Add tensor filter config property
tensor filter configuration is very complex, so when you set filter,
property settings become longer and more complicated, making it
difficult to find them at once even if human errors occur.
If config is used, readability can be increased and human errors
can be reduced due to organized properties.
Signed-off-by: linuxias <linuxias@gmail.com>
Wook Song [Mon, 18 Sep 2023 04:30:55 +0000 (13:30 +0900)]
Meson: Append force option to 'ln' creating python sub-plugin
Since the ln command returns an error when the target already exists,
'meson build --reconfigure' fails as follows:
meson.build:746:4: ERROR: Command "/usr/bin/ln -s nnstreamer/build/ext/nnstreamer/extra/nnstreamer_python3.so
nnstreamer/build/ext/nnstreamer/extra/nnstreamer_python.so" failed with status 1.
To fix it, this patch appends the -f, (--force) option to the ln command
that creates a soft link file for the python3 sub-plugin.
Signed-off-by: Wook Song <wook16.song@samsung.com>
hyunil park [Tue, 19 Sep 2023 03:14:15 +0000 (12:14 +0900)]
[datarepo] fix a bug that datarepo could not be used in Tizen App after reinstalling rpm
The datarepo installed on the platform image can be used in the app,
but if we reinstall the datarepo rpm after pushing by sdb, it cannot be used in the app.
-Add %license, %manifest, and %defattr(-,root,root,-) to spec
Signed-off-by: hyunil park <hyunil46.park@samsung.com>
linuxias [Wed, 20 Sep 2023 16:30:54 +0000 (01:30 +0900)]
[Edge] Fix memory leak
Free host, topic variable memory in GstEdgeSrc
when call finalize to clear GstEdgeSrc memory
Signed-off-by: linuxias <linuxias@gmail.com>
Jaeyun Jung [Fri, 15 Sep 2023 05:50:28 +0000 (14:50 +0900)]
[CodeClean] util function to get stream-id
Remove random number, use util function to get new stream-id.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
MyungJoo Ham [Thu, 14 Sep 2023 11:17:22 +0000 (20:17 +0900)]
tizen: enable/disable nnstreamer-edge explicitly.
For Tizen distro, do not let "auto" determine essential features.
This will prevent regression that implicitly disabling nnstreamer-edge.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Yongjoo Ahn [Tue, 12 Sep 2023 10:32:17 +0000 (19:32 +0900)]
[build] Let meson test work with python3 support
- Set proper symbolic link and PYTHONPATH env variable to testenv
to make `meson test` works with python module tests.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun Jung [Tue, 12 Sep 2023 03:53:22 +0000 (12:53 +0900)]
[Release] update version
Update version to 2.4.0, Tizen 8.0 M2 release.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yongjoo Ahn [Mon, 11 Sep 2023 07:01:57 +0000 (16:01 +0900)]
[build] Fix `find_library` usage finding SNPE dep
- meson complains as `starting in "lib" only works by accident and is not portable`
- Change `libSNPE` to `SNPE`.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 11 Sep 2023 06:57:58 +0000 (15:57 +0900)]
[build] Fix meson use of `run_command`
- meson may change the default value of `run_command`'s `check` arg
(false -> true).
- Set `check : false` in omitted lines.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 11 Sep 2023 08:02:48 +0000 (17:02 +0900)]
[test] Fix the rank compare test of SNPE filter
- Deal with the recent rank update in nnstreamer.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 11 Sep 2023 08:01:41 +0000 (17:01 +0900)]
[filter] Remove assert and throw exception
- Remove excessive asserts.
- Throw exception when input or output buffer is NULL in invoke method
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 11 Sep 2023 07:46:03 +0000 (16:46 +0900)]
[test] Let snpe test exit generously
- Sleep a while when the negative pipeline test exits.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Thu, 7 Sep 2023 08:58:40 +0000 (17:58 +0900)]
[pytorch] Fix load model with use_gpu option
- In the recent pytorch, `model->to (device)` does not work properly.
- Use `torch::jit::load (model, torch::Device)` instead.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Thu, 7 Sep 2023 08:57:20 +0000 (17:57 +0900)]
[pytorch] Drop pytorch support for version less than 1.2.0
- Drop the support for the old pytorchs.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun Jung [Tue, 5 Sep 2023 04:40:13 +0000 (13:40 +0900)]
[Subplugin/Flatbuf] util to get nth info
Code clean, remove unnecessary copy of tensors-info and use util to get nth info.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 7 Sep 2023 08:45:24 +0000 (17:45 +0900)]
[Common] dimension in tensor-meta
Set max length of tensor dimension in tensor-meta, same with tensor rank limit.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yongjoo Ahn [Mon, 11 Sep 2023 09:36:20 +0000 (18:36 +0900)]
[test] Fix pytorch ssat model file
- Recent pytorch cannot read the `pytorch_lenet5.pt`.
- Replace the file with newer version of pytorch.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yelin Jeong [Fri, 8 Sep 2023 07:13:40 +0000 (16:13 +0900)]
[CodeClean] test and comments
Fix test and comments.
- Remove useless initialization
- Change comment and docs
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Jaeyun Jung [Thu, 7 Sep 2023 06:23:13 +0000 (15:23 +0900)]
[Tizen] allow multifilesrc/sink
Update the list of allowed elements - multifilesrc/sink.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 5 Sep 2023 04:40:49 +0000 (13:40 +0900)]
[Filter/Sub] fill 0 dim at nth info
Util function to get nth gst-info and fill remained dim as 0.
TODO:
I did not build and test all subplugins, need to check all subplugins later.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yelin Jeong [Thu, 7 Sep 2023 04:40:29 +0000 (13:40 +0900)]
[python] change dims default value from 1 to 0
This patch changes dims default value from 1 to 0 in python helper.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Jaeyun Jung [Tue, 29 Aug 2023 06:52:02 +0000 (15:52 +0900)]
[Converter] incoming data format
Update tensor dimension of incoming data, 0-init.
- video : [ch][w][h][frames]
- audio : [ch][samples]
- text : [size][samples]
- octet/tensor : [size]
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yelin Jeong [Fri, 1 Sep 2023 05:07:38 +0000 (14:07 +0900)]
[tensor] Increase NNS_TENSOR_RANK_LIMIT to 16
This patch Increase NNS_TENSOR_RANK_LIMIT
- Increase NNS_TENSOR_RANK_LIMIT to 16 from 8
- Delete convertMetaInvalidParam03_n, since NNS_TENSOR_RANK_LIMIT and NNS_TENSOR_META_RANK_LIMIT are now same.
- Fix some values in tests.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Jaeyun Jung [Thu, 7 Sep 2023 03:46:20 +0000 (12:46 +0900)]
[CodeClean] indent and code style
Code clean, fix indent and code style.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
seungha.son [Wed, 6 Sep 2023 09:32:24 +0000 (18:32 +0900)]
[TensorIF] Fix the wrong index in log format
- Wrong array index occur unwanted behavior and problem.
Signed-off-by: seungha.son <linuxias@gmail.com>
Yelin Jeong [Fri, 1 Sep 2023 07:38:08 +0000 (16:38 +0900)]
[python] init dimension as 0
This patch removes filling the dimension value with 1.
Tensor dimension initial value is 0.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
MyungJoo Ham [Wed, 30 Aug 2023 08:29:59 +0000 (17:29 +0900)]
memleak fix: converter test leak fix
converter gtest code mem leak by not calling gst_object_unref
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gichan2-jang [Mon, 4 Sep 2023 09:07:38 +0000 (18:07 +0900)]
[Test/decoder] Add test cases for direct video decoer
- Add test case of all supported video format of direct video decoder.
- Apply default video foramt when video format is not given.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
Jaeyun Jung [Fri, 1 Sep 2023 01:49:17 +0000 (10:49 +0900)]
[Test] length of dims
1. Get the length of dimension, not constant.
2. Init dim as 0 in some testcase.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yongjoo Ahn [Fri, 1 Sep 2023 07:07:50 +0000 (16:07 +0900)]
[ssat] Execute runTest.sh properly
- Those runTest.sh are not executed regardless of the ret value of the python script. Fix It.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Fri, 1 Sep 2023 06:41:43 +0000 (15:41 +0900)]
[test] Replace tensorflow1-lite with tensorflow2-lite in SSAT tests
- Let's use tensorflow2-lite rather than deprecated tf1-lite.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun Jung [Fri, 1 Sep 2023 03:40:56 +0000 (12:40 +0900)]
[Src/IIO] dimension in tensorsrc-iio
0-init dims, data in src-iio has format of [ch-number][capacity].
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 1 Sep 2023 04:42:28 +0000 (13:42 +0900)]
[Split] init dim as 0
The initial value of tensor dimension is 0. Do not fill remained dims as 1.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yongjoo Ahn [Tue, 29 Aug 2023 09:13:19 +0000 (18:13 +0900)]
[test] Use EPIPE if ESTRPIPE is not defined like macos
- Use EPIPE instead of ESTRPIPE where it is not defined.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Tue, 29 Aug 2023 08:47:48 +0000 (17:47 +0900)]
[test] Fix filter_reload_test
- The mutex used in the filter is effected by invoke and reload both.
- Set GST_STATE_PAUSED before reloading models, to guarantee that mutex
is unlocked
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
gichan2-jang [Wed, 30 Aug 2023 10:26:34 +0000 (19:26 +0900)]
[Ubuntu/1804] Check pytorch version
Check pytorch version to fix ubuntu 18.04 build failure
- Fix incompatibility of protobuf and caffe2 of ubuntu 18.04.
- Don't install not available package.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
MyungJoo Ham [Mon, 28 Aug 2023 10:03:05 +0000 (19:03 +0900)]
[WIP] DataRepo Memory Leak Fix
There are a few more leaks to be fixed.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gichan2-jang [Wed, 30 Aug 2023 08:41:27 +0000 (17:41 +0900)]
[Debian] Fix deprecated option
Since `enable-datarepo` is removed, change to `datarepo-support`.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
MyungJoo Ham [Wed, 30 Aug 2023 07:40:03 +0000 (16:40 +0900)]
memleak fix: unittest-common forgot to unref
Unref gst-buffer that is allocated in the test case.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
MyungJoo Ham [Wed, 30 Aug 2023 05:39:18 +0000 (14:39 +0900)]
memleak fix: tensor_demux forgot to free strv
g_strsplit_set()'s return should be freed by the caller.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>