Toybrick

标题: rknn_outputs_get Error [打印本页]

作者: vincent911001    时间: 2020-4-10 10:12
标题: rknn_outputs_get Error
Hi,

I have created a custom Gstreamer RKNN plugin based on the yolov3 C sample.
The plugin is working and is able to show proper bounding box + label but the execution of the pipeline will hang halfway through and return with errors as below:

E RKNNAPI: __pthread_recv_msg,  recv(MsgHeader) fail, -9(ERROR_PIPE) < 108!
E RKNNAPI: rknn_outputs_get,  p_ctx->queue_output.size() = 0!
rknn_outputs_get fail! ret=-3



Below is how I launch my Gstreamer pipeline:

gst-launch-1.0 -v \
filesrc location=~/test.mp4 ! qtdemux ! queue  ! h264parse ! avdec_h264 \
! queue ! videoconvert ! queue ! rknndetect model-location=/home/toybrick/rknn_models/yolov3_tiny.rknn \
label-location=/home/toybrick/rknn_dataset/labels_v3.txt \
! queue ! videoconvert ! queue ! fpsdisplaysink video-sink=ximagesink text-overlay=false sync=false



So, can i know how can i solve this problem?
Please let me know if you need the source code.

Thanks.
Vincent



作者: troy    时间: 2020-4-10 17:53
plz check your firmware version and driver version first.
作者: vincent911001    时间: 2020-4-12 11:36
Hi,

Where can i check these version numbers?
FYI, I am using RKNN API 1.3.0

Thanks.
作者: vincent911001    时间: 2020-4-13 09:43
Hi,

I have queried the api and driver version as below:

D RKNNAPI: ==============================================
D RKNNAPI: RKNN VERSION:
D RKNNAPI:   API: 0.9.9 (80bad59 build: 2019-07-16 09:39:49)
D RKNNAPI:   DRV: 0.9.9 (8509ec7 build: 2019-08-05 10:54:34)
D RKNNAPI: ==============================================

But, where can I get firmware version?

Thanks.
作者: vincent911001    时间: 2020-4-13 23:11
Hi Troy,

Any advice for this problem?

Thanks
作者: jefferyzhang    时间: 2020-4-14 08:18
vincent911001 发表于 2020-4-13 09:43
Hi,

I have queried the api and driver version as below:

Your version is toooo old.
The latest version is API 1.3.0/DRV 1.3.0 ,
and rknn-toolkit also is 1.3.0.

作者: vincent911001    时间: 2020-4-15 09:41
Hi Jeffery,

I have changed the API version to 1.3.0 by replacing the librknn_api.so in /lib64 but what should I do to change the DRV version to 1.3.0?
Please advise.


Thanks




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3