运行官方demo中的app_tidl_seg,替换分割模型为自己的分割模型,图片为512*512YUV图片,在x86下结果正常,嵌入式端结果异常(只有图像下面的1/3异常)。
并且同一张图片在嵌入式端推理的结果也不完全一样,都是图像下面的1/3异常。
请问官方提供的app_tidl_seg demo, 替换为自己的模型和图片,这样的情况是问题出在哪里?
需要修改哪些地方吗?
x86下结果正常,图像为截取mosaic图像的有效部分,如下:

嵌入式端图像,下半部分异常,如下:

使用的config文件如下,只修改了模型和图片对应的部分。
# location of conifg
tidl_config ./model/fs_seg/int8/tidl_io_fs_seg_1.bin
# location of network
tidl_network ./model/fs_seg/int8/tidl_net_fs_seg.bin
# location of input files
input_file_path ./input
# location of output files
output_file_path ./out/fs_seg/int8
# start frame Number
start_frame 1
# number of frames
num_frames 2
# input size (width height)
in_size 512 512
# size given to DL network (width height)
# This should should not be less than 4x of input width or height
dl_size 512 512
# size given for display (width height)
# This should should not be less than 4x of input width or height
out_size 512 512
# Maximum number of Semantic Segmentation classes
num_classes 2
# delay in milli seconds (max 2000ms)
delay_in_msecs 0
# Enable or disable output image writing. 1 Enables it , 0 disables it
en_out_img_write 1
# If 1 - Enable display 0 - Disable display
display_option 0
# number of iterations to loop the inputs
num_iterations 1
# interactive input mode 1: yes, 0: no
is_interactive 0