Tool/software:
Hello TI Experts,
I'm currently working with AM62A7 and encountering an issue with display flicker when running the AI model.
Detailed Description:
1. when I run the pipeline for camera display and get data from tiovxisp by appsink, everything is ok
v4l2src device=/dev/video3 io-mode=5 ! \
video/x-bayer, width=2160, height=1784, format=bggr12, framerate=54/1 ! \
queue leaky=2 ! \
tiovxisp sensor-name=SENSOR_OX3C \
dcc-isp-file=/opt/imaging/ox8d/wdr/dcc_viss_wdr.bin \
sink_0::dcc_2a_file=/opt/imaging/ox8d/wdr/dcc_2a_wdr.bin sink_0::device=/dev/v4l-subdev2 format-msb=11 \
sink_0::pool-size=2 src::pool-size=2 ! \
queue leaky=2 ! \
tiovxldc dcc-file=/opt/imaging/ox8d/wdr/dcc_ldc_wdr.bin sensor-name=SENSOR_OX3C \
sink_0::pool-size=2 src::pool-size=2 ! \
video/x-raw, format=NV12, width=1784, height=2160,framerate=54/1 ! queue leaky=2 ! \
tiovxmultiscaler name=split_0 src_0::roi-startx=0 src_0::roi-starty=0 src_0::roi-width=1784 src_0::roi-height=2160 target=0 \
src_1::roi-startx=0 src_1::roi-starty=0 src_1::roi-width=1784 src_1::roi-height=2160 target=1 \
interpolation-method=16385 \
split_0. ! queue ! \
video/x-raw, width=1784, height=2160 ! \
tiscaler roi-startx=284 roi-starty=1310 roi-width=1500 roi-height=850 method=0 ! \
video/x-raw, width=1280, height=720, framerate=54/1 ! mosaic_0. \
split_0. ! queue ! \
video/x-raw, width=640, height=720 ! mosaic_0. \
tiovxmosaic name=mosaic_0 target=0 src::pool-size=4 \
sink_0::startx="<640>" sink_0::starty="<0>" sink_0::widths="<1280>" sink_0::heights="<720>" \
sink_1::startx="<0>" sink_1::starty="<0>" sink_1::widths="<640>" sink_1::heights="<720>" ! \
video/x-raw,format=NV12, width=1920, height=720 ! queue leaky=2 max-size-buffers=1 ! \
videoflip method=rotate-180 ! \
kmssink driver-name=tidss async=false sync=false can-scale=false pq-file=/usr/local/apd/manifest/ECU_CMS/pq_config.json gamma-set=
2. Based on the above, when I use the images acquired by appsink for our custom AI model inference, the following situation occurs
/cfs-file/__key/communityserver-discussions-components-files/791/6064.Video.mp4
3. Then I did some tests:
- Decreasing the input size and frequency of the model, this problem still occurs.
- Run some AI models provided by TI model zoo, the flicker disappear.
- Using udpsink for displaying on PC,display is ok.
- Check the CPU usage rate is 70%, NPU is 15%.
Question:
1.Why does running AI models affect kmssink, and is there any connection between them?
2.The problem seems to be related to the specific AI model, can you provide some suggestions to solve the problem?
Best regards,
Jialin