Always have a habit, see open source code updated, always want to update to the latest version, if ignored, I feel lazy or some irresponsible, this may be a form of obsessive-compulsive disorder it;
A few nights ago git pull tensorflow, after finished also did not go after it, these two days to think up or do things manage it, also want to focus on the study into the TensorFlow, do play to feel ^_^. According to image recognition Https://www.tensorflow.org/tutorials/image_recognition first compiled, in fact this label_image I have compiled countless times ; But this time I want to retrain image,
How to Retrain Inception ' s Final Layer for New Categories
No nonsense, get to the point;
Bazel Build tensorflow/examples/label_image/...
But at the time of compiling, a bunch of bugs popped up:
ERROR:/media/berli/datacenter/test/tensorflow/tensorflow/build:399:12:label '//tensorflow:tools/integration_ tests/gcs_smoke_test/gcs_smoke.py ' crosses boundary of Subpackage ' Tensorflow/tools/integration_tests/gcs_smoke_ Test ' (perhaps you meant-put the colon here: '//tensorflow/tools/integration_tests/gcs_smoke_test:gcs_smoke.py '?)
ERROR:/media/berli/datacenter/test/tensorflow/tensorflow/build:399:12:label '//tensorflow:tools/integration_ Tests/gcs_smoke_test/setup.sh ' crosses boundary of Subpackage ' tensorflow/tools/integration_tests/gcs_smoke_test ' ( Perhaps you meant the colon here: '//tensorflow/tools/integration_tests/gcs_smoke_test:setup.sh '?
ERROR:/media/berli/datacenter/test/tensorflow/tensorflow/build:399:12:label '//tensorflow:tools/integration_ Tests/gcs_smoke_test/build.bazel ' crosses boundary of Subpackage ' Tensorflow/tools/integration_tests/gcs_smoke_ Test ' (perhaps you meant-put the colon here: '//tensorflow/tools/integration_tests/gcs_smoke_test:build.bazel '?)
ERROR:/media/berli/datacenter/test/tensorflow/tensorflow/build:399:12:label '//tensorflow:tools/integration_ Tests/gcs_smoke_test/teardown.sh ' crosses boundary of Subpackage ' Tensorflow/tools/integration_tests/gcs_smoke_ Test ' (perhaps you meant-put the colon here: '//tensorflow/tools/integration_tests/gcs_smoke_test:teardown.sh '?)
ERROR:/media/berli/datacenter/test/tensorflow/tensorflow/build:399:12:label '//tensorflow:tools/integration_ Tests/gcs_smoke_test/test_wrapper.sh ' crosses boundary of Subpackage ' Tensorflow/tools/integration_tests/gcs
Let the amount be a bit off guard ... ; Clear down cache and caching
Bazel CLEAN;RM-RF ~/.cache
It's the same mistake to try again. We always don't want to spend time on this kind of debugging problem, use the model, the algorithm, the right, the blade, the blade. But it's not going to work out. Well, Google all over the internet, is to find the same error, but also to give a concise solution, the best is a command, do not they pile up a pile of mail, BB do not know what content, to tell the truth, a waste of time, also no mood to accompany you to play.
painstaking people end, Brighthole Qin Guan eventually belongs to Chu. It's best to finally find out why: Google's latest TensorFlow code is not compatible with the lower-version Bazel compiler. But my Bazel is 0.8.0, not too low.
sudo apt-get update; sudo apt-get upgrade Bazel
After the upgrade we check Bazel version, the following command
Bazel version
Build label:0.11.0
Build Target:bazel-out/k8-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/bazelserver_ Deploy.jar
Build Time:thu Nov 9 04:43:10 +50056 (1517474666590)
Build Timestamp:1517474666590build timestamp as int:1517474666590
Well, continue compiling Lable_imagebazel build tensorflow/examples/label_image/...
successfully!!!!!
View Original: http://www.mtcnn.com/?p=206