EdjeElectronics / TensorFlow-Object-Detection-on-the-Raspberry-Pi

A tutorial showing how to set up TensorFlow's Object Detection API on the Raspberry Pi
Apache License 2.0
1.14k stars 363 forks source link

GraphDef #66

Open XxJoHnCeExX opened 5 years ago

XxJoHnCeExX commented 5 years ago

After installing everything and running the Object_detection_picamera.py python script, I am getting this error:

Traceback (most recent call last): File "Object_detection_picamera.py", line 82, in od_graph_def = tf.GraphDef() AttributeError: module 'tensorflow' has no attribute 'GraphDef'

Any way of fixing this?

EdjeElectronics commented 5 years ago

I'm pretty sure this is because you have TensorFlow v2.0 installed, and Object_detection_picamera.py isn't compatible with 2.0 yet. Could you try installing an older version of TensorFlow using

pip3 install tensorflow==1.13

and then try re-running the script? Please let me know if that works!

LefiS commented 4 years ago

python3 Object_detection_picamera.py --usbcam Traceback (most recent call last): File "Object_detection_picamera.py", line 82, in <module> od_graph_def = tf.GraphDef() AttributeError: module 'tensorflow' has no attribute 'GraphDef'

pi@raspberrypi:~/tensorflow/models/research/object_detection $ pip3 install tensorflow==1.13 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting tensorflow==1.13 Could not find a version that satisfies the requirement tensorflow==1.13 (from versions: 0.11.0, 1.12.0, 1.13.1, 1.14.0) No matching distribution found for tensorflow==1.13 pi@raspberrypi:~/tensorflow/models/research/object_detection $

Unfortunately its not working for me :(

LefiS commented 4 years ago

Ha I figured it out ! Its pip3 install tensorflow==1.13.1

1.13 is not enough :)