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
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.
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."