From fc6354129ba917bfa17b92b980e737de8ce84442 Mon Sep 17 00:00:00 2001 From: Bram Veldhoen Date: Wed, 12 Jun 2024 09:03:54 +0200 Subject: [PATCH] Switch autovideosink to ximagesink (no difference). --- .../gst-launch-object-detection-yolov5-tensorrt.sh | 2 +- .../gst-launch-object-detection-yolov5-torchscript.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bash_script/example_yolo/gst-launch-object-detection-yolov5-tensorrt.sh b/bash_script/example_yolo/gst-launch-object-detection-yolov5-tensorrt.sh index 87fd24da..36393c7b 100755 --- a/bash_script/example_yolo/gst-launch-object-detection-yolov5-tensorrt.sh +++ b/bash_script/example_yolo/gst-launch-object-detection-yolov5-tensorrt.sh @@ -14,7 +14,7 @@ gst-launch-1.0 \ tensor_decoder mode=bounding_boxes option1=yolov8 option2=coco.txt option3=1 option4=1000:1000 option5=320:320 ! \ video/x-raw,width=1000,height=1000,format=RGBA ! mix.sink_0 \ t. ! queue leaky=2 max-size-buffers=10 ! mix.sink_1 \ - compositor name=mix sink_0::zorder=2 sink_1::zorder=1 ! videoconvert ! autovideosink sync=false + compositor name=mix sink_0::zorder=2 sink_1::zorder=1 ! videoconvert ! ximagesink sync=false ## Note that the `tensor_transfrom mode=transpose option=1:2:0:3` ## change the data layout NHWC -> NCHW: diff --git a/bash_script/example_yolo/gst-launch-object-detection-yolov5-torchscript.sh b/bash_script/example_yolo/gst-launch-object-detection-yolov5-torchscript.sh index 06e468ff..705dd02d 100755 --- a/bash_script/example_yolo/gst-launch-object-detection-yolov5-torchscript.sh +++ b/bash_script/example_yolo/gst-launch-object-detection-yolov5-torchscript.sh @@ -8,13 +8,13 @@ gst-launch-1.0 \ video/x-raw,width=320,height=320,format=RGB ! tensor_converter ! \ tensor_transform mode=transpose option=1:2:0:3 ! \ tensor_transform mode=arithmetic option=typecast:float32,div:255.0 ! \ - queue ! tensor_filter framework=pytorch model=yolov5su.torchscript input=320:320:3:1 inputtype=float32 output=2100:84:1:1 outputtype=float32 latency=1 ! \ + queue ! tensor_filter framework=pytorch model=yolov5su.torchscript input=320:320:3:1 inputtype=float32 output=2100:84:1 outputtype=float32 latency=1 ! \ tensor_transform mode=transpose option=1:0:2:3 ! \ - other/tensors,num_tensors=1,types=float32,dimensions=2100:84:1,format=static ! \ + other/tensors,num_tensors=1,types=float32,dimensions=84:2100:1,format=static ! \ tensor_decoder mode=bounding_boxes option1=yolov8 option2=coco.txt option3=1 option4=1000:1000 option5=320:320 ! \ video/x-raw,width=1000,height=1000,format=RGBA ! mix.sink_0 \ t. ! queue leaky=2 max-size-buffers=10 ! mix.sink_1 \ - compositor name=mix sink_0::zorder=2 sink_1::zorder=1 ! videoconvert ! autovideosink sync=false + compositor name=mix sink_0::zorder=2 sink_1::zorder=1 ! videoconvert ! ximagesink sync=false ## Note that the `tensor_transfrom mode=transpose option=1:2:0:3` ## change the data layout NHWC -> NCHW: