From: Yongjoo Ahn Date: Tue, 23 Jun 2020 05:20:38 +0000 (+0900) Subject: [Test] Add test for imageseg-decoder and tensor_filter profiling X-Git-Tag: accepted/tizen/unified/20200629.143505~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9c07bc23d442d77ef0ae6eef280018ea2647d34;p=platform%2Fupstream%2Fnnstreamer.git [Test] Add test for imageseg-decoder and tensor_filter profiling - Add test cases for newly added option `snpe-deeplab` and `snpe-depth` - It also check profiling option of tensor_filter Signed-off-by: Yongjoo Ahn --- diff --git a/tests/nnstreamer_decoder_image_segment/runTest.sh b/tests/nnstreamer_decoder_image_segment/runTest.sh index 6df6d71..dddd30d 100644 --- a/tests/nnstreamer_decoder_image_segment/runTest.sh +++ b/tests/nnstreamer_decoder_image_segment/runTest.sh @@ -78,6 +78,26 @@ gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} videotestsrc num-buffers=1 ! videoc callCompareTest test_golden.0 test_output.0 1 "test with videotestsrc" 0 +# THIS WON'T FAIL, BUT NOT MUCH MEANINGFUL (TARGET MODEL IS DIFFERENT ONE) +gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ +videotestsrc num_buffers=4 ! videoconvert ! videoscale ! video/x-raw,format=RGB,width=257,height=257 ! tee name=t \ + t. ! queue ! mix. \ + t. ! queue ! tensor_converter ! tensor_transform mode=arithmetic option=typecast:float32,div:255.0 ! \ + tensor_filter framework=tensorflow-lite model=${PATH_TO_MODEL} latency=1 throughput=1 ! \ + tensor_decoder mode=image_segment option1=snpe-deeplab option2=180 ! mix. \ +videomixer name=mix sink_0::alpha=0.7 sink_1::alpha=0.6 ! videoconvert ! fakesink" \ +2 0 0 $PERFORMANCE + +# THIS SHOULD EMIT ERROR +gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} \ +videotestsrc num_buffers=1 ! videoconvert ! videoscale ! video/x-raw,format=RGB,width=257,height=257 ! tee name=t \ + t. ! queue ! mix. \ + t. ! queue ! tensor_converter ! tensor_transform mode=arithmetic option=typecast:float32,div:255.0 ! \ + tensor_filter framework=tensorflow-lite model=${PATH_TO_MODEL} ! \ + tensor_decoder mode=image_segment option1=snpe-depth ! mix. \ +videomixer name=mix sink_0::alpha=0.7 sink_1::alpha=0.6 ! videoconvert ! fakesink" \ +3_n 0 1 + rm test_output.* report