Infer wrong values of bounding box on NPU

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Infer wrong values of bounding box on NPU

ソリューションへジャンプ
2,046件の閲覧回数
MiloJan
Contributor I

Hello NXP,

Our program can use the NPU to achieve acceleration using the tflite VX delegate, but can't obtaine the same result as the CPU.

The label value can be obtained correctly, but the value of the bounding box is always 0.

Our environment:

Board: i.MX 8M Plus EVK

System: kirkstone-5.15.71-2.2.0

Tflite Mode: Yolov v7.0

Is there something we didn't notice?

0 件の賞賛
返信
1 解決策
1,868件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @MiloJan,

I hope you are doing well.

Please find a response from the engineering team below.

One can use the attached patch to fix the issue on the 5.15.71_2.2.0. Use the Yocto SDK to build the libvx_delegate.so.

The steps are as below:

1. Setup the Yocto SDK 5.15.72.(Refer to the i.MX Yocto Project User's Guide)

2. bitbake the vx_delegate, and use the patch by the command

bitbake tensorflow-lite-vx-delegate

cd imx-yocto-bsp/8mp_5.15.72_2.2.0/build-xwayland/tmp/work/armv8a-poky-linux/tensorflow-lite-vx-delegate/2.9.1-r0/git

git apply diff.patch

bitbake -c compile -f tensorflow-lite-vx-delegate

bitbake -c build -f tensorflow-lite-vx-delegate

the libvx_delegate.so will be generated in ../image/usr/lib/

3.copy the libvx_delegate to the broad path /usr/lib/

Thanks & Regards,
Dhruvit Vasavada

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
1,948件の閲覧回数
MiloJan
Contributor I

Hello @Dhruvit ,

How is it. Could you reproduce that?

0 件の賞賛
返信
1,869件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @MiloJan,

I hope you are doing well.

Please find a response from the engineering team below.

One can use the attached patch to fix the issue on the 5.15.71_2.2.0. Use the Yocto SDK to build the libvx_delegate.so.

The steps are as below:

1. Setup the Yocto SDK 5.15.72.(Refer to the i.MX Yocto Project User's Guide)

2. bitbake the vx_delegate, and use the patch by the command

bitbake tensorflow-lite-vx-delegate

cd imx-yocto-bsp/8mp_5.15.72_2.2.0/build-xwayland/tmp/work/armv8a-poky-linux/tensorflow-lite-vx-delegate/2.9.1-r0/git

git apply diff.patch

bitbake -c compile -f tensorflow-lite-vx-delegate

bitbake -c build -f tensorflow-lite-vx-delegate

the libvx_delegate.so will be generated in ../image/usr/lib/

3.copy the libvx_delegate to the broad path /usr/lib/

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信
1,823件の閲覧回数
MiloJan
Contributor I

Hello @Dhruvit,

This works for us. Thanks.

 

 

0 件の賞賛
返信
1,917件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @MiloJan,

I hope you are doing well.

I have reproduced it and I think the root cause is the vxdelegate driver update.

I am checking the two branch differences and the commit log.

I will update here ASAP.

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信
2,021件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @MiloJan,

I hope you are doing well.

I am trying to reproduce this issue on my end.

I will get back to you once done.

Thanks & Regards,
Dhruvit Vasavada

 

0 件の賞賛
返信