Got it

Using inference NPU demo

Created: Mar 4, 2021 19:44:01Latest reply: Mar 6, 2021 01:29:51 665 4 1 0 0
  HiCoins as reward: 0 (problem unresolved)

Hi all,

I am trying to execute the inference NPU demo on HiKey970.

Specifically, I obtained the demo code from the following link: https://communityfile-drcn.op.hicloud.com/FileServer/getFile/cmtyPub/011/111/111/0000000000011111111.20201210091606.89134814157089662349205341633422:50511210091010:2800:E491EF633BC420805890FA2B8627C2130D6A787B8472E30F007D89965F860ED3.zip?needInitFileName=true

I built the project with Android Studio 4.2 and run it on the device (HiKey 970).

The issues that I am facing are the following:
-  "Gallery" and "Take photo" do not appear on the top region of the app.
- Model hiai_noaipp.om is not found to be compatible with the device, a message pops up informing me, while running the demo.
-
Both sync and async classifications do not work, a message suggests running them on the CPU.
- From the logs while running I can see the following messages among others:

I/buildmodel: [HIAI_DEMO_COMPATIBILITY_CHECK] ddk currentversion : (null)
E/buildmodel: [HIAI_DEMO_CHECKMODEL_COPM] Model name : hiai_noaipp.om
E/buildmodel: [HIAI_DEMO_CHECKMODEL_COPM] CheckModelCompatibility ERROR: 7
E/buildmodel: [HIAI_DEMO_BUILDMODEL] build model Failed! ret=7
E/RecyclerView: No adapter attached; skipping layout


I am attaching the full log as well.

In this repo I see the instructions "If the offline model is incompatible with the HiAI DDK, try version compatibility by using the mixed-model online building API." Is that the solution to my problem? How can I use the mixed-model online building API?

Is there some other resource that can guide me to run an inference on the NPU?

Attachment: You need to log in to download or view. No account? Register

Featured Answers

Recommended answer

stephen.xu
Admin Created Mar 5, 2021 00:38:53

Hi @zoist!

I'm sorry. I suggest you contact the support team of Huawei Cloud to solve this issue:

https://www.huaweicloud.com/intl/en-us/.

View more
  • x
  • convention:

All Answers
Y_T_Z
Y_T_Z Admin Created Mar 5, 2021 00:12:58

Hello, dear.
It's nice to meet you in the community.
We're working on getting the right answer for you. Please rest assured that we'll be back with an answer shortly.
View more
  • x
  • convention:

Hi @zoist!

I'm sorry. I suggest you contact the support team of Huawei Cloud to solve this issue:

https://www.huaweicloud.com/intl/en-us/.

View more
  • x
  • convention:

Posted by stephen.xu at 2021-03-05 00:38 Hi @zoist!I'm sorry. I suggest you contact the support team of Huawei Cloud to solve this issue:http ...

Thank you for the suggestion. I did not find a forum on the Huawei Cloud page.

I have noticed that other users are also asking questions regarding the DDK in this forum. For example the following question.

I would like to see more information on which libraries I need to link or what interface to use, in order to run a model on HiKey 970 NPU.

View more
  • x
  • convention:

On the HUAWEI Cloud website,you can click Contact us on the right page
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.