Forums - Creating DLC ERROR

3 posts / 0 new
Last post
Creating DLC ERROR
coders
Join Date: 9 Jun 16
Posts: 4
Posted: Thu, 2017-07-27 01:48

Dear qcom,

When I Creating DLC following the problems:

Copying Caffe model

Creating DLC

Encountered Error: 'module' object has no attribute 'set_mode_cpu'

Stack Trace:

Traceback (most recent call last):

  File "/home/ckt/snpe-sdk/bin/x86_64-linux-clang/snpe-caffe-to-dlc", line 74, in <module>

    converter_command)

  File "/home/ckt/snpe-sdk/lib/python/snpe/snpe_caffe_to_dlc.py", line 925, in convert

    caffe.set_mode_cpu()

AttributeError: 'module' object has no attribute 'set_mode_cpu'

Getting imagenet aux data

Creating ilsvrc_2012_mean.npy

ERROR: 'module' object has no attribute 'proto'

Please help analysis of what could be the cause.

 

  • Up0
  • Down0
Re: Creating DLC ERROR Best Answer
moljaca moderator
Join Date: 25 Jul 17
Location: San Diego
Posts: 40
Posted: Thu, 2017-07-27 18:20

Hi,

It appears that Caffe environment has not been set up properly to work with SNPE. Caffe python modules are not located by the DLC converter.

As per https://developer.qualcomm.com/software/snapdragon-neural-processing-eng... you need to install Caffe and do SDK setup. Was that completed successfully?

You can also refer to the SDK documentaion, SNPE setup: ..../doc/html/setup.html

 

 

  • Up0
  • Down0
coders
Join Date: 9 Jun 16
Posts: 4
Posted: Mon, 2017-07-31 00:27

Dear moljaca,

Yes,It's Caffe environment has not been set up properly to work with SNPE

Thanks for support.

 

 

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