Forums - About the error "Failed to load model"

4 posts / 0 new
Last post
About the error "Failed to load model"
Maggie
Join Date: 1 Aug 17
Posts: 8
Posted: Fri, 2017-08-04 00:52

Hi,

I am new to Caffee and also to SNPE SDK. I am trying to run the example alexnet following Caffe tutorial on phone(Qualcomm MSM8953 2.0GH). But after the APK(SNPE Image  Classifiers )  run, tapped ALEXNET, the error "Faild to load mode" was shown. Model version was not shown either.  Could you give me some hint about the error please?

 

  • Up0
  • Down0
moljaca moderator
Join Date: 25 Jul 17
Location: San Diego
Posts: 40
Posted: Fri, 2017-08-04 19:25

Hi,

What device (OEM, model, Android version) are you using?

Thanks

  • Up0
  • Down0
Maggie
Join Date: 1 Aug 17
Posts: 8
Posted: Mon, 2017-08-07 02:07

Below is device information.

--------------------------------------------

model : F-01J( smartphone made by Japanese company Fujitsu )

Android version: 7.1.1

-------------------------------------------

 

I checked again my install steps. And I found the error below in the step "Download the ML Models and convert them to .DLC".

---------------------------------------------------------

WARNING: Logging before InitGoogleLogging() is written to STDERR
E0807 14:57:21.515084 14762 common.cpp:114] Cannot create Cublas handle. Cublas won't be available.
E0807 14:57:21.516696 14762 common.cpp:121] Cannot create Curand generator. Curand won't be available.
F0807 14:57:21.523205 14762 cudnn_conv_layer.cpp:52] Check failed: error == cudaSuccess (30 vs. 0)  unknown error
*** Check failure stack trace: ***

----------------------------------------------------------------

 

In my development Environment, GPU seems not supported. Please see blow "Nvidia-smi" in my PC. But It seems that the Caffe tutorial considers to use GPU by default. So I think that I should uncomment the CPU_ONLY := 1 flag in Makefile.config" and build coffe again. 

If something is wrong with my understanding, please let me know. Thanks.

---------------------------------------------------------------------------------------------------
Mon Aug  7 15:44:32 2017       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.66                 Driver Version: 375.66                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 106...  Off  | 0000:01:00.0     Off |                  N/A |
|  0%   41C    P0    27W / 120W |      0MiB /  6064MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|  No running processes found                                                 |
+---------------------------------------------------------------------------------------------------------+
 
 
 
 

 

  • Up0
  • Down0
Maggie
Join Date: 1 Aug 17
Posts: 8
Posted: Tue, 2017-08-08 19:00

I have fixed the error about GPU. GPU is available in my development Env.

Now the demonstrates app for coffe is run correctly on my phone.

Thank you a lot. 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.