Wie der Titel sagt, habe ich ein Problem mit der Installation TensorFlow Object Detection.
Mein System:TensorFlow Object Erkennung Installationsfehler Tensorflow/Modelle/Forschung/
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.04
Release: 17.04
Codename: zesty
und achitecture:
uname -i
x86_64
Dies sind die Schritte, die ich genau nahm.
Zuerst überprüfte ich meine Python-Installation:
python -V
Python 2.7.13
Und meine pip Installation:
pip -V
pip 9.0.1 von /usr/lib/python2.7/dist-packages (Python 2,7)
Danach habe ich die URL auf die neueste Tensorflow-Version eingestellt.
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linu/cpu/tensorflow-1.4.0-cp27-none-linux_x86_64.whl
Und dann habe ich Tensorflow installiert.
sudo pip install tensorflow
Danach überprüft ich die Installation:
python
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
Und bekam Hello, TensorFlow!
als Antwort.
Jetzt kommt der Ärger ...
ich nach dieser Anleitung versucht: https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md
Ran:
sudo apt-get install protobuf-compiler python-pil python-lxml
sudo pip install jupyter
sudo pip install matplotlib
Und diese alle erfolgreich ausgeführten Befehle.
Der nächste Schritt gab mir allerdings meine Probleme ..
Der Führer sagt nicht, in welchem Verzeichnis tensorflow/models/research/
ist (wenn es automatisch erstellt wird oder sollte durch den Benutzer und in diesem Fall erstellt werden, wo?)
So gegoogelt ich wenig und finde diesen: https://github.com/tensorflow/models/issues/2253 die besagt, dass ich es nur schaffen sollte ... aber tun gemacht, so den nächsten Befehl von dem neu erstellten Verzeichnis ausgeführt
protoc object_detection/protos/*.proto --python_out=.
scheitern mit Fehler object_detection/protos/*.proto: No such file or directory
.
Ich habe das Verzeichnis in [email protected]:~/Documents$
erstellt, so dass der vollständige Verzeichnispfad [email protected]:~/Documents/tensorflow/models/research$
wurde.
Ich schätze, dass ich das Verzeichnis sowieso nicht selbst erstellen sollte, aber würde gerne ein paar Tipps bekommen!
das war genau das, was ich verpasst hatte. Die Installationsanleitung sagte nie, dass das Git Repo geklont werden sollte, aber es musste getan werden ... Thx! – Payerl