Install Tensorflow Object Detection From Scratch in 5 Steps | Python Deep Learning




[ad_1]

Running into errors?

Tired of seeing “ERROR: XXXXX something didn’t go right”

I hear you!

Installing Tensorflow Object Detection can be a little tricky at times. But it doesn’t need to be. In this video we’ll run through the 5 key steps you need to go through in order to setup the Tensorflow Object Detection API. We’ll go from a bare install without Python to a fully setup machine.
0:00 – Start

In this video you’ll learn how to:
02:21 – Install Python using Anaconda
05:51 – Install Microsoft Visual Studio and C++ Build Tools
09:01 – Install CUDA and CUDNN for NVIDIA
15:04 – Install Protoc for Protocol Buffers from the official Github Repo
18:58 – Install Tensorflow Object Detection API for use with Python

Links Used:
Anaconda – https://repo.anaconda.com/archive
Visual Studio – https://visualstudio.microsoft.com/vs/community/
CUDA 10.1 – https://developer.nvidia.com/cuda-10.1-download-archive-base
CUDNN 7.6.5 – https://developer.nvidia.com/rdp/cudnn-archive
Protoc – https://github.com/protocolbuffers/protobuf/releases
Tensorflow Models GitHub – https://github.com/tensorflow/models

Face Mask Tutorial: https://youtu.be/IOI0o3Cxv9Q
Face Mask Jupyter Notebook (Need to Label Images FIRST!): https://github.com/nicknochnack/RealTimeObjectDetection

Oh, and don’t forget to connect with me!
LinkedIn: https://www.linkedin.com/in/nicholasr
Facebook: https://www.facebook.com/nickrenotte/
GitHub: https://github.com/nicknochnack

Happy coding!
Nick

P.s. Let me know how you go and drop a comment if you need a hand!

Source


[ad_2]

Comment List

  • Nicholas Renotte
    January 5, 2021

    thank you for the great tutorial, but what if i don't install Visual Studio C ++ ??

  • Nicholas Renotte
    January 5, 2021

    download big stuff:
    0:03:53
    0:06:29

  • Nicholas Renotte
    January 5, 2021

    Sir, iam getting error in command prompt when I type ls can you please resolve it. ls is not recognised as an internal or external command

  • Nicholas Renotte
    January 5, 2021

    hi can you help me, im stuck in step 6 when i need to train the models it give me this error
    W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found

    i already install the cuda and cudnn,
    but weirdly on step 2 my tf record both train and test is empty

    Successfully created the TFRecord file: Tensorflow/workspace/annotations/train.record

    Successfully created the TFRecord file: Tensorflow/workspace/annotations/test.record

  • Nicholas Renotte
    January 5, 2021

    I have a problem here. I followed all the steps but when I execute the create tf records cell I get – Traceback (most recent call last):

    File "Tensorflow/scripts/generate_tfrecord.py", line 29, in <module>

    from object_detection.utils import dataset_util, label_map_util

    ModuleNotFoundError: No module named 'object_detection'
    How can I resolve this?

  • Nicholas Renotte
    January 5, 2021

    Thank you Mr for clearing the doubts
    🙏🙏Great fun 👍👍

  • Nicholas Renotte
    January 5, 2021

    I Don't have GPU is it possible to run on CPU?

  • Nicholas Renotte
    January 5, 2021

    Heyho thanks for this pretty cool video,
    i get these errors -.- i skiped the steps for nvidea because iam using a AMD gpu

    hopefully you have an advise for me.
    Thanks !

    ERROR: astroid 2.2.5 requires typed-ast>=1.3.0; implementation_name == "cpython", which is not installed.

    ERROR: apache-beam 2.26.0 has requirement avro-python3!=1.9.2,<1.10.0,>=1.8.1, but you'll have avro-python3 1.10.1 which is incompatible.

    ERROR: lvis 0.5.3 has requirement matplotlib>=3.1.1, but you'll have matplotlib 3.1.0 which is incompatible.

    ERROR: lvis 0.5.3 has requirement numpy>=1.18.2, but you'll have numpy 1.16.4 which is incompatible.

    ERROR: tensorflow 2.4.0 has requirement grpcio~=1.32.0, but you'll have grpcio 1.34.0 which is incompatible.

    ERROR: tensorflow 2.4.0 has requirement numpy~=1.19.2, but you'll have numpy 1.16.4 which is incompatible.

    ERROR: tensorflow 2.4.0 has requirement six~=1.15.0, but you'll have six 1.12.0 which is incompatible.

    ERROR: tensorflow-metadata 0.26.0 has requirement absl-py<0.11,>=0.9, but you'll have absl-py 0.11.0 which is incompatible.

    ERROR: google-api-core 1.24.1 has requirement six>=1.13.0, but you'll have six 1.12.0 which is incompatible.

    ERROR: google-api-python-client 1.12.8 has requirement six<2dev,>=1.13.0, but you'll have six 1.12.0 which is incompatible.

    ERROR: google-cloud-bigquery 2.6.1 has requirement six<2.0.0dev,>=1.13.0, but you'll have six 1.12.0 which is incompatible.

  • Nicholas Renotte
    January 5, 2021

    I have followed each and every step but still encounter errors

    Traceback (most recent call last):

    File "Tensorflow/scripts/generate_tfrecord.py", line 61, in <module>

    label_map = label_map_util.load_labelmap(args.labels_path)

    File "C:Usersbaigjanaconda3envstensorflow1libsite-packagesobject_detectionutilslabel_map_util.py", line 132, in load_labelmap

    with tf.gfile.GFile(path, 'r') as fid:

    AttributeError: module 'tensorflow' has no attribute 'gfile'

    Traceback (most recent call last):

    File "Tensorflow/scripts/generate_tfrecord.py", line 61, in <module>

    label_map = label_map_util.load_labelmap(args.labels_path)

    File "C:Usersbaigjanaconda3envstensorflow1libsite-packagesobject_detectionutilslabel_map_util.py", line 132, in load_labelmap

    with tf.gfile.GFile(path, 'r') as fid:

    AttributeError: module 'tensorflow' has no attribute 'gfile'

    I changed tf.gfile.GFile to tf.io.gfile.GFile
    then is it showing some other error like
    Object Detection Api TypeError: Expected binary or unicode string, got …..
    Please help..
    I'm loosing my patience.. 😐

  • Nicholas Renotte
    January 5, 2021

    @Nicholas
    Which version of cuda is compatible for GeForce GTX 1050 ? bcz I followed your hole video and doing each step same it's but my gpu is not configured. Error.. https://pasteboard.co/JERrfSV.png

  • Nicholas Renotte
    January 5, 2021

    Hi Nick, I encountered an error later down the road in the tutorial.ipynb…
    Also, how I use it in phycharm? when the interpreter asked me what is the file path for tensorflow.

    in the 4.Copy Model config to training folder:
    A subdirectory or file Tensorflowworkspacemodelsmy_ssd_mobnet already exists.

    'cp' is not recognized as an internal or external command,

    operable program or batch file.

    5. Update config for transfer learning

    it allows me to go through, and up to In [11]:

    NotFoundError: NewRandomAccessFile failed to Create/Open: Tensorflow/workspace/models/my_ssd_mobnet/pipeline.config : The system cannot find the file specified.

    ; No such file or directory

    did i screw up on git bash or what was the problem?

    thanks,

    Dan

  • Nicholas Renotte
    January 5, 2021

    Hi could you please help me with this error
    cp object_detection/packages/tf2/setup.py .

    'cp' is not recognized as an internal or external command,

    operable program or batch file.

  • Nicholas Renotte
    January 5, 2021

    Thanks for this clear and straightforward tutorial! Great work

  • Nicholas Renotte
    January 5, 2021

    Hi @Nicholas, do you have a video demoing object detection in real-time?

  • Nicholas Renotte
    January 5, 2021

    Hi sir ,can you please help me with the code to convert this video model (Real Time Sign Language Detection with Tensorflow Object Detection and Python | Deep Learning SSD) to tflite as i tried reading the documentation but was unable to convert it.
    I read the documentation but still wasn't able to convert it

    Please help me in this 😊 and the quality of the videos are too good 🔥 .

  • Nicholas Renotte
    January 5, 2021

    Just a comment for your YouTube algorithm 😉

  • Nicholas Renotte
    January 5, 2021

    Awesome content! ☺️ I I think you'd appreciate this channel. She’d love you to follow along ———> #MoonMadness777 🧙🏽‍♀️

  • Nicholas Renotte
    January 5, 2021

    The instructions were super easy to follow. This video saved me days of research time of how to get this up and running.
    I was able to make it work in 1.5 hrs.
    Great content as always! Thank you!

  • Nicholas Renotte
    January 5, 2021

    Thanks for such an amazing step by step explanation ☺️ But sir while training my model it's still using CPU (100% usage)instead of GPU(0% usage) and I am unable to figure it out😅 so can you help why is this happening ?? I have followed each and every step according to the video.
    Thank you 😊

  • Nicholas Renotte
    January 5, 2021

    Hi Nicholas, after installing cuda my second screen connected to the Laptop through HDMI port stopped receiving any signal.
    Can you help resolve the issue?

Write a comment