rockchip-linux / rknpu2

BSD 3-Clause "New" or "Revised" License
597 stars 128 forks source link

failed to open RGA:Permission denied. #28

Open speshowBUAA opened 1 year ago

speshowBUAA commented 1 year ago

post process config: box_conf_threshold = 0.50, nms_threshold = 0.60 Read model/000657.jpg ... img width = 640, img height = 480 Loading mode... sdk version: 1.3.0 (c193be371@2022-05-04T20:16:33) driver version: 0.6.4 model input num: 1, output num: 1 index=0, name=image_arrays, n_dims=4, dims=[1, 640, 640, 3], n_elems=1228800, size=1228800, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003922 index=0, name=outputs, n_dims=4, dims=[1, 8400, 85, 1], n_elems=714000, size=714000, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=2.498195 model is NHWC input fmt model input height=640, width=640, channel=3 resize with RGA! failed to open RGA:Permission denied. rgaapi version 1.6.0[4] (d041200 build: 2021-12-01 15:26:14 base: ) rga_im2d: The current RockchipRga singleton is destroyed. Please check if RkRgaInit/RkRgaDeInit are called, if so, please disable them. rga im2d: rga2 get info failed!

242, check error! Fatal error: The current RockchipRga singleton is destroyed.Please check if RkRgaInit/RkRgaDeInit are called, if so, please disable them.

BokyLiu commented 1 year ago

same on rk3588's yolov5 cpp demo

airockchip commented 1 year ago

Please update the librga and its kernel driver. https://github.com/airockchip/librga

analwang commented 12 months ago

resize with RGA! failed to open RGA:No such file or directory. Segmentation fault (core dumped)

Can you help me?