Hi,
I'm trying to install the x86 part of SNPE (v1.35), following the installation instructions that come with it, without success.
When installing on Ubuntu 14.04 I'm having trouble finding suitable TensorFlow / ONNX supported installations.
When installing on Ubuntu 16.04 it seems a lot of parts are missing, for example:
(venv) /venv/snpe-1.35.0.698$ snpe-tensorflow-to-dlc -h
Traceback (most recent call last):
File "/venv/snpe-1.35.0.698/bin/x86_64-linux-clang/snpe-tensorflow-to-dlc", line 20, in <module>
from snpe.converters.tensorflow.tf_to_ir import TFConverter
ImportError: No module named snpe.converters.tensorflow.tf_to_ir
after fix:
(venv) /venv/snpe-1.35.0.698$ snpe-tensorflow-to-dlc -h
Traceback (most recent call last):
File "/venv/snpe-1.35.0.698/bin/x86_64-linux-clang/snpe-tensorflow-to-dlc", line 20, in <module>
from snpe.converters.tensorflow.tf_to_ir import TFConverter
File "/venv/snpe-1.35.0.698/lib/python/snpe/converters/tensorflow/tf_to_ir.py", line 24, in <module>
from snpe.converters.tensorflow.loader import ModelLoader
File "/venv/snpe-1.35.0.698/lib/python/snpe/converters/tensorflow/loader.py", line 20, in <module>
import tensorflow.contrib
ImportError: No module named contrib
after fix:
(venv) /venv/snpe-1.35.0.698$ snpe-tensorflow-to-dlc --input_network tf-model.pb --input_dim input "1,299,299,3" --out_node "OutNode" --output_path tf-model.dlc --allow_unconsumed_nodes
Traceback (most recent call last):
File "/venv/snpe-1.35.0.698/bin/x86_64-linux-clang/snpe-tensorflow-to-dlc", line 46, in <module>
main()
File "/venv/snpe-1.35.0.698/bin/x86_64-linux-clang/snpe-tensorflow-to-dlc", line 29, in main
session = tf.Session(config=tf.ConfigProto(allow_soft_placement=True))
AttributeError: 'module' object has no attribute 'Session'
and this of course goes on and on and on, finding myself debugging the SNPE code.... this can't be right.
What am I missing?
Hi mvtech,
Kindly check the TensorFlow version installed using the below command,
TF2 version is not fully supported yet. So, it is suggested to use the TF 1.13.1 or TF 1.15.
We run the latest NPE 1.38 with the Ubuntu 16 having TF 1.13.1 without any issues.