|
发表于 2021-4-2 21:43:39
|
显示全部楼层
本帖最后由 Lubagov 于 2021-4-2 22:35 编辑
Hello!
I receive my toybrick board today, TB-RK3399ProD_33101_V1.2. Interested it was already flash on Debian 10, from box. And already with 1.6 RKNN API.
I want on this run YOLO5, and i get same problem like with ASUS:
it is after , i trying to run direcly on NPU:
- /userdata/rknn_yolov5_demo # ./run_rk180x.sh
- Read model/test2.jpg ...
- img width = 1280, img height = 720
- Loading mode...
- failed to open /dev/dri/card0
- sdk version: librknn_runtime version 1.6.0 (096015c build: 2021-01-12 15:25:30 base: 1126) driver version: 6.4.3.5.293908
- model input num: 1, output num: 3
- index=0 name=images_165 n_dims=4 dims=[1 3 640 640] n_elems=1228800 size=1228800 fmt=0 type=3 qnt_type=2 fl=0 zp=0 scale=0.003922
- index=0 name=Conv_Conv_159/out0_0 n_dims=4 dims=[1 255 80 80] n_elems=1632000 size=1632000 fmt=0 type=3 qnt_type=2 fl=-69 zp=187 scale=0.127843
- index=1 name=Conv_Conv_160/out0_1 n_dims=4 dims=[1 255 40 40] n_elems=408000 size=408000 fmt=0 type=3 qnt_type=2 fl=-74 zp=182 scale=0.113217
- index=2 name=Conv_Conv_161/out0_2 n_dims=4 dims=[1 255 20 20] n_elems=102000 size=102000 fmt=0 type=3 qnt_type=2 fl=-84 zp=172 scale=0.103272
- model is NCHW input fmt
- model input height=640, width=640, channel=3
- failed to open /dev/dri/card0
- ./run_rk180x.sh: line 4: 202 Segmentation fault ./rknn_yolov5_demo model/${chip_dir}/yolov5s_relu_rk180x_out_opt.rknn model/test2.jpg
- /userdata/rknn_yolov5_demo #
- /userdata/rknn_yolov5_demo # ./run_rv1109_rv1126.sh
- Read model/test2.jpg ...
- img width = 1280, img height = 720
- Loading mode...
- failed to open /dev/dri/card0
- Create RKNN model fail, error=-13
- rknn_init error ret=-13
So similar NPU have not /dev/dri/card0, it have only CPU... While i don't recive Toybrick stick, after several days should recive it...
What i do wrong? /dev/dri/ should be on RK3399Pro NPU?
SSD Demo working, but in any case write about /dev/dri/card0 is not here.
And if just llok code, at all nothing ctitical with libdrm, it use https://github.com/rockchip-linux/linux-rga for resize/convert format image, and for this open DRM...
But why it has not here?
|
|