googlecodelabs / tensorflow-for-poets-2

Apache License 2.0
509 stars 463 forks source link

TOCO related links are no longer valid on TFLite tutorial #92

Open monos63 opened 6 years ago

monos63 commented 6 years ago

In "TensorFlow for Poets 2: TFLite Android": https://codelabs.developers.google.com/codelabs/tensorflow-for-poets-2-tflite/#2

Under "Using TOCO", the links for "TensorFlow Lite Optimizing Converter" and "quantized graphs" are no longer valid and both show 404 page not found.

SRH-NC commented 6 years ago

Similar problem in this section of TFLite tutorial... i'm getting:

Check failed: parsed_toco_flags.input_file.specified() Missing required flag: input_file

SRH-NC commented 6 years ago

Got it working... Just had to replace: --graph_def_file=tf_files/retrained_graph.pb with: --input_file=tf_files/retrained_graph.pb

Mumbis commented 5 years ago

Found the link(1) to "TensorFlow Lite Optimizing Converter" by stepping up a few levels in the URL. They moved things around. Reason found here: https://groups.google.com/a/tensorflow.org/forum/#!topic/tflite/iIIXOTOFvwQ

Also the TOCO command seems broken now. The above link states "For anyone who depends on tf.contrib.lite in TensorFlow's Pip package, we’ve added import helpers so that tf.contrib.lite points to tf.lite. This will affect upcoming nightly packages and TF 1.13+. tf.contrib will not be present in TF 2.0. Please update your imports as soon as you can." I dont understand that since I am new to this.

(1) https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/toco/README.md