Coder Social home page Coder Social logo

armaanpriyadarshan / object-detection-on-raspberry-pi Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 9.0 3.28 MB

This tutorial allows you to deploy the new TensorFlow 2 Object Detection Models as well Custom Object Detection Models on the Raspberry Pi

Python 92.26% Shell 7.74%

object-detection-on-raspberry-pi's People

Contributors

armaanpriyadarshan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

object-detection-on-raspberry-pi's Issues

ERROR

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)

Error on pi camera

(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)

Version Incompatibility Issues

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?

can some one help ?

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'

invalid syntax

File "TF-PiCamera-OD.py", line 86
print('Loading model...', end='')
^
SyntaxError: invalid syntax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.