googlecodelabs / tensorflow-for-poets-2

Apache License 2.0
508 stars 463 forks source link

No module named 'tensorflow.contrib.lite.python.tflite_convert' #108

Open privsBrown opened 5 years ago

privsBrown commented 5 years ago

Tensorflow version- 1.12.0 (cpu release) Os: windows 10 enterprise version 17134 python : 3.6.4 pip -- 18.1 protobuf -3.6.1 am atm trying out tensorflow-for-poets-2 tflite android tensorflow runs as needed and import tensorflow ran on python

typed in tflite_convert --help and got this error

erickjarcena commented 5 years ago

Hi. Did you fix it? TF Version - 1.12 (cpu) python - 3.6.8

Same error when I am trying the convert tflite_convert --graph_def_file=tf_files/retrained_graph.pb --output_file=tf_files/optimized_graph.lite --output_format=TFLITE --input_shape=1,%IMAGE_SIZE%,%IMAGE_SIZE%,3 --input_arrays=input --output_FILE=final_result --inference_type=FLOAT --inference_input_type=FLOAT

privsBrown commented 5 years ago

No I am still facing the same error.

Regards, Priveen

On Tue, Feb 5, 2019 at 8:34 PM erickjarcena notifications@github.com wrote:

Hi. Did you fix it? TF Version - 1.12 (cpu) python - 3.6.8

Same error when I am trying the convert tflite_convert --graph_def_file=tf_files/retrained_graph.pb --output_file=tf_files/optimized_graph.lite --output_format=TFLITE --input_shape=1,%IMAGE_SIZE%,%IMAGE_SIZE%,3 --input_arrays=input --output_FILE=final_result --inference_type=FLOAT --inference_input_type=FLOAT

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/googlecodelabs/tensorflow-for-poets-2/issues/108#issuecomment-460670644, or mute the thread https://github.com/notifications/unsubscribe-auth/AfOlIOYzgRWP8hUFsBie8L-nbl1ulnGqks5vKZ2CgaJpZM4aAbWo .

bennyooo commented 5 years ago

Same error here on a Docker container using this image from NVIDIA NGC: nvcr.io/nvidia/tensorflow:19.04-py3