armaanpriyadarshan / object-detection-on-raspberry-pi Goto Github PK
View Code? Open in Web Editor NEWThis tutorial allows you to deploy the new TensorFlow 2 Object Detection Models as well Custom Object Detection Models on the Raspberry Pi
This tutorial allows you to deploy the new TensorFlow 2 Object Detection Models as well Custom Object Detection Models on the Raspberry Pi
i did everything you said this is final error im getting. please help very urgent.
(tensorflow) pi@raspberrypi:~/tensorflow $ python TF-PiCamera-OD.py
Traceback (most recent call last):
File "TF-PiCamera-OD.py", line 81, in
from object_detection.utils import label_map_util
File "/home/pi/tensorflow/models/research/object_detection/utils/label_map_util.py", line 29, in
from object_detection.protos import string_int_label_map_pb2
ImportError: cannot import name 'string_int_label_map_pb2' from 'object_detection.protos' (/home/pi/tensorflow/models/research/object_detection/protos/init.py)
(tensorflow) pi@raspberrypi:~/tensorflow $ python TF-PiCamera-OD.py
Traceback (most recent call last):
File "TF-PiCamera-OD.py", line 82, in
from object_detection.utils import visualization_utils as viz_utils
File "/home/pi/tensorflow/models/research/object_detection/utils/visualization_utils.py", line 30, in
import matplotlib.pyplot as plt # pylint: disable=g-import-not-at-top
File "/home/pi/tensorflow/lib/python3.7/site-packages/matplotlib/pyplot.py", line 43, in
from matplotlib.figure import Figure, figaspect
File "/home/pi/tensorflow/lib/python3.7/site-packages/matplotlib/figure.py", line 18, in
from matplotlib import docstring, projections
File "/home/pi/tensorflow/lib/python3.7/site-packages/matplotlib/projections/init.py", line 4, in
from mpl_toolkits.mplot3d import Axes3D
ImportError: cannot import name 'Axes3D' from 'mpl_toolkits.mplot3d' (/home/pi/tensorflow/lib/python3.7/site-packages/mpl_toolkits/mplot3d/init.py)
at the final stage during the image detection, how to view the image in the screen window
Hi, I'm not able to successfully import TensorFlow due to >= requirements which allow for new versions of dependent modules which are no longer compatible since the original was posted.
Can you provide a pip list of the module versions which resulted in a successful import of Tensorflow?
Traceback (most recent call last):
File "TF-PiCamera-OD.py", line 11, in
import tensorflow as tf
File "/home/pi/tensorflow/lib/python3.7/site-packages/tensorflow/init.py", line 48, in
from ._api.v2 import compat
File "/home/pi/tensorflow/lib/python3.7/site-packages/tensorflow/_api/v2/compat/init.py", line 39, in
from . import v1
File "/home/pi/tensorflow/lib/python3.7/site-packages/tensorflow/_api/v2/compat/v1/init.py", line 34, in
from . import compat
File "/home/pi/tensorflow/lib/python3.7/site-packages/tensorflow/_api/v2/compat/v1/compat/init.py", line 39, in
from . import v1
File "/home/pi/tensorflow/lib/python3.7/site-packages/tensorflow/_api/v2/compat/v1/compat/v1/init.py", line 51, in
from tensorflow._api.v2.compat.v1 import lite
File "/home/pi/tensorflow/lib/python3.7/site-packages/tensorflow/_api/v2/compat/v1/lite/init.py", line 10, in
from . import constants
File "/home/pi/tensorflow/lib/python3.7/site-packages/tensorflow/_api/v2/compat/v1/lite/constants/init.py", line 10, in
from tensorflow.lite.python.lite_constants import FLOAT
File "/home/pi/tensorflow/lib/python3.7/site-packages/tensorflow/lite/python/lite_constants.py", line 34, in
TENSORFLOW_GRAPHDEF = _toco_flags_pb2.TENSORFLOW_GRAPHDEF
AttributeError: module 'tensorflow.lite.toco.toco_flags_pb2' has no attribute 'TENSORFLOW_GRAPHDEF'
There is a spelling error
bash get-prequisites.sh
prerequisites*
thats why copy pasting this command wont work :)
File "TF-PiCamera-OD.py", line 86
print('Loading model...', end='')
^
SyntaxError: invalid syntax
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.