airockchip / rknn-toolkit2

BSD 3-Clause "New" or "Revised" License
511 stars 61 forks source link

RgaCollorFill(1819) RGA_COLORFILL fail: Invalid argument #35

Open wyzhu234 opened 2 months ago

wyzhu234 commented 2 months ago

test example yolov8 demo, when input image width=640, height=360, it will warn RgaCollorFill(1819) RGA_COLORFILL fail: Invalid argument, how to solve this problem? Full outputs as follow:

load lable ./model/coco_80_labels_list.txt Open ./model/coco_80_labels_list.txt fail! model input num: 1, output num: 9 input tensors: index=0, name=images, 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 output tensors: index=0, name=318, n_dims=4, dims=[1, 64, 80, 80], n_elems=409600, size=409600, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-58, scale=0.117659 index=1, name=onnx::ReduceSum_326, n_dims=4, dims=[1, 80, 80, 80], n_elems=512000, size=512000, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003104 index=2, name=331, n_dims=4, dims=[1, 1, 80, 80], n_elems=6400, size=6400, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003173 index=3, name=338, n_dims=4, dims=[1, 64, 40, 40], n_elems=102400, size=102400, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-45, scale=0.093747 index=4, name=onnx::ReduceSum_346, n_dims=4, dims=[1, 80, 40, 40], n_elems=128000, size=128000, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003594 index=5, name=350, n_dims=4, dims=[1, 1, 40, 40], n_elems=1600, size=1600, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003627 index=6, name=357, n_dims=4, dims=[1, 64, 20, 20], n_elems=25600, size=25600, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-34, scale=0.083036 index=7, name=onnx::ReduceSum_365, n_dims=4, dims=[1, 80, 20, 20], n_elems=32000, size=32000, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003874 index=8, name=369, n_dims=4, dims=[1, 1, 20, 20], n_elems=400, size=400, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003922 model is NHWC input fmt model input height=640, width=640, channel=3 origin size=640x360 crop size=640x352 input image: 640 x 360, subsampling: 4:2:0, colorspace: YCbCr, orientation: 1 scale=1.000000 dst_box=(0 140 639 499) allow_slight_change=1 _left_offset=0 _top_offset=140 padding_w=0 padding_h=280 src width=640 height=360 fmt=0x1 virAddr=0x0x55a47c7f30 fd=0 dst width=640 height=640 fmt=0x1 virAddr=0x0x55a4870b40 fd=0 src_box=(0 0 639 359) dst_box=(0 140 639 499) color=0x72 rgaapi version 1.10.1[0] fill dst image (x y w h)=(0 0 640 640) with color=0x72727272 RgaCollorFill(1819) RGA_COLORFILL fail: Invalid argument RgaCollorFill(1820) RGA_COLORFILL fail: Invalid argument 23 im2d_rga_impl rga_task_submit(2171): Failed to call RockChipRga interface, please use 'dmesg' command to view driver error log. 23 im2d_rga_impl rga_dump_channel_info(1500): src_channel: rect[x,y,w,h] = [0, 0, 0, 0] image[w,h,ws,hs,f] = [0, 0, 0, 0, rgba8888] buffer[handle,fd,va,pa] = [0, 0, 0, 0] color_space = 0x0, global_alpha = 0x0, rd_mode = 0x0

23 im2d_rga_impl rga_dump_channel_info(1500): dst_channel: rect[x,y,w,h] = [0, 0, 640, 640] image[w,h,ws,hs,f] = [640, 640, 640, 640, rgb888] buffer[handle,fd,va,pa] = [7264, 0, 0, 0] color_space = 0x0, global_alpha = 0xff, rd_mode = 0x1

23 im2d_rga_impl rga_dump_opt(1550): opt version[0x0]:

23 im2d_rga_impl rga_dump_opt(1551): set_core[0x0], priority[0]

23 im2d_rga_impl rga_dump_opt(1554): color[0x72727272] 23 im2d_rga_impl rga_dump_opt(1563):

23 im2d_rga_impl rga_task_submit(2180): acquir_fence[-1], release_fence_ptr[0x0], usage[0x280000]

rknn_run null @ (110 129 223 302) 0.883 null @ (477 126 560 289) 0.841 null @ (212 133 282 287) 0.820 null @ (93 77 554 247) 0.775 null @ (79 183 122 290) 0.413 write_image path: out.png width=640 height=360 channel=3 data=0x55a47c7f30

alun011 commented 1 month ago

我也遇到了这个问题,请问您解决了吗?