Forums - snpe-tensorflow-to-dlc error

4 posts / 0 new
Last post
snpe-tensorflow-to-dlc error
shiangyong
Join Date: 21 Sep 17
Posts: 15
Posted: Tue, 2017-09-26 10:18

Hi all,

I tried converting my Keras model (TensorFlow backend) with the following command and it produced the error message below. Perhaps I left something out in the installation process? BTW my development platform is Ubuntu 14.04.

./snpe-tensorflow-to-dlc --graph MNIST_model.pb --input_dim "conv2d_1_input" 28,28,1 --out_node tf_model_output

Error message:

Traceback (most recent call last):
  File "./snpe-tensorflow-to-dlc", line 35, in <module>
    from converters.tensorflow.converter import DlcConverter
ImportError: No module named converters.tensorflow.converter

  • Up0
  • Down0
mike.e.baum
Join Date: 22 Dec 17
Posts: 1
Posted: Fri, 2018-01-12 15:33

Running snpe-tensorflow-to-dlc and getting the following error.

 

 ./snpe-tensorflow-to-dlc --graph ~/RyansScripts/models/ddmodel.pb --input_dim "image_tensor" 512,512,3 --out_node some_node --dlc dlc/ --allow_unconsumed_nodes--graph ~/RyansScripts/models/ddmodel.pb -Traceback (most recent call last):
 

File "./snpe-tensorflow-to-dlc", line 36, in <module>
    from converters.tensorflow.converter import DlcConverter
ImportError: No module named converters.tensorflow.converter
 

  • Up0
  • Down0
zf.africa
Join Date: 15 Jun 17
Posts: 51
Posted: Mon, 2018-01-15 19:21

Just add $SNPR_ROOT/lib/python to PYTHONPATH.

  • Up0
  • Down0
jaehyeuck.choi
Join Date: 16 Jan 18
Posts: 1
Posted: Sun, 2018-01-28 23:51

source ./bin/envsetup.sh -t ~/tensorflow # optional for this guide

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