1 bazel-bin/tensorflow/examples/label_image/label_image --graph=/tmp/output_graph.pb --labels=/tmp/output_labels.txt --output_layer=final_result --image=/home/camille/Desktop/timg.jpg
命令报错:
017-06-20 12:52:52.774446: E tensorflow/examples/label_image/main.cc:350] Running model failed: Not found: FeedInputs: unable to find feed output input
解决方案:在后面加一句 --input_layer=Mul //this parameter update the input and output layer names to "Mul" and "final_result" respectively
2下载tensorflow 代码时,
git clone https://github.com/tensorflow/tensorflow.git
直接执行 bazel build tensorflow/examples/image_retraining:retrain
报错 build aborted
解决方案: 执行 ./configure
再执行 bazel build tensorflow/examples/image_retraining:retrain 就没问题了。
3
时间: 2024-11-08 09:20:58