首页 > 代码库 > Tensorflow related

Tensorflow related

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 


本文出自 “java开发之路” 博客,请务必保留此出处http://yingerfei.blog.51cto.com/3296071/1940164

Tensorflow related