Toybrick

rknn_outputs_get Error

vincent911001

注册会员

积分
92
楼主
发表于 2020-4-10 10:12:57    查看: 10462|回复: 6 | [复制链接]    打印 | 只看该作者
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

版主

积分
2374
沙发
发表于 2020-4-10 17:53:12 | 只看该作者
plz check your firmware version and driver version first.
回复

使用道具 举报

vincent911001

注册会员

积分
92
板凳
 楼主| 发表于 2020-4-12 11:36:50 | 只看该作者
Hi,

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

Thanks.
回复

使用道具 举报

vincent911001

注册会员

积分
92
地板
 楼主| 发表于 2020-4-13 09:43:04 | 只看该作者
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

注册会员

积分
92
5#
 楼主| 发表于 2020-4-13 23:11:57 | 只看该作者
Hi Troy,

Any advice for this problem?

Thanks
回复

使用道具 举报

jefferyzhang

版主

积分
13578
6#
发表于 2020-4-14 08:18:40 | 只看该作者
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

注册会员

积分
92
7#
 楼主| 发表于 2020-4-15 09:41:03 | 只看该作者
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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表