Issue with npu on imx95 Linux 6.12.20_2.0.0

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

Issue with npu on imx95 Linux 6.12.20_2.0.0

433件の閲覧回数
eirgut
Contributor II

Hi

i am trying to run the label_image.py example on the imx95-a1-19x19-lpddr5-evk npu. But none of the nodes are delegated to the npu:

eirgut_0-1753368107885.png

I have tried to convert it using the eIQ neutron-converter:

\nxp\eIQ_Toolkit_v1.16.0\bin\neutron-converter\MCU_SDK_25.06.00+Linux_6.12.20_2.0.0>neutron-converter

When running the converted model i only get random and incorrect predictions:

eirgut_1-1753368455122.png

Am i doing something wrong or is the 6.12 neutron-converter corrupting the model?

I tried the same apporach on Linux 6.6.36 and it worked perfect

タグ(1)
4 返答(返信)

417件の閲覧回数
Chavira
NXP TechSupport
NXP TechSupport

Hi @eirgut!
Thank you for contacting NXP Support!

According to our Machine Learning User Guide, it looks like the command you're using is incorrect.

 

To run the model accelerated on the NPU hardware using the Neutron Delegate on the i.MX 95, please use the following command:

$ python3 label_image.py --ext_delegate /usr/lib/libneutron_delegate.so

 

The output should be as follows:

Loading external delegate from /usr/lib/libneutron_delegate.so with args: {}
INFO: NeutronDelegate delegate: 29 nodes delegated out of 31 nodes with 1
partitions.
Warm-up time: 1.9 ms
Inference time: 1.7 ms
0.850980: military uniform
0.058824: Windsor tie
0.011765: bulletproof vest
0.007843: bow tie
0.007843: mortarboard

 

Best Regards!

Chavira

0 件の賞賛
返信

402件の閲覧回数
eirgut
Contributor II

Hi @Chavira 

Thank you for your reply!

 

According to the python script, i should be able to use this command:

$ python3 label_image.py --ext_delegate /usr/lib/libneutron_delegate.so

 

eirgut_0-1753420758165.png

 

I have tried with both scripts, but none of them are able to delegate nodes to the NPU

eirgut_1-1753420843043.png

Also the one i converted my self using the neutron-converter (\nxp\eIQ_Toolkit_v1.16.0\bin\neutron-converter\MCU_SDK_25.06.00+Linux_6.12.20_2.0.0>neutron-converter)

runs on the npu, but seems like it just gives random variables:

eirgut_2-1753421152007.png

(When running the preconverted model on the cpu it predicts correctly)

 

It seems that the MCU_SDK_25.06.00+Linux_6.12.20_2.0.0 converter corrupts the model.

 

タグ(1)

401件の閲覧回数
eirgut
Contributor II
I mean this command:
"python3 label_image.py -e /usr/lib/libneutron_delegate.so"

349件の閲覧回数
Chavira
NXP TechSupport
NXP TechSupport

HI @eirgut!

After discussing with the internal team, we’ve identified some issues in the latest BSP release.

Due to ongoing silicon changes in the i.MX95, certain features may not be compatible with earlier silicon revisions.

We appreciate your patience and recommend keeping an eye on upcoming BSP updates and silicon version announcements.

 

Best regards,
Chavira

0 件の賞賛
返信