Это видео недоступно.
Сожалеем об этом.

How to Install TensorFlow Object Detection in 2020 (Webcam and Images!)

Поделиться
HTML-код
  • Опубликовано: 8 июл 2020
  • Hey guys welcome back, Ben again! Today i'm going through the process step by step to get Google's TensorFlow Object Detection API working in 2020. If you've ever tried to do this before you've most likely followed sentdex's tutorials. While they are great and I personally use them, the object detection series is out of date in some places so I made this video using all the tips and tricks i've learned trying to make his tutorial work.
    I've seen people have problems with jupyter, pycocotools, computer vision 2, tf_slim, protobuf, and more. I made sure to include all the fixes i've personally done so that others can hopefully fix their installations also.
    pycocotools fix - 14:07
    Run object detection on your local computer - 16:14
    Using a webcam - 21:11
    Install cv2 - 22:06
    Commands:
    o pip install TensorFlow==1.15 lxml pillow matplotlib jupyter contextlib2 cython tf_slim
    o git clone github.com/ten...
    o protoc object_detection/protos/*.proto --python_out=.
    o python setup.py build
    o python setup.py install
    o pip install pycocotools (or) pip install git+github.com/phi...^&subdirectory=PythonAPI
    Websites Used:
    Sentdex RUclips Channel: / sentdex
    Official TensorFlow Github: github.com/ten...
    My Object Detection Github: github.com/Ben...
    Protoc download page: github.com/pro...
    cv2 download page: www.lfd.uci.ed...

Комментарии • 329

  • @LazyTech825
    @LazyTech825  Год назад +1

    I have a Tensorflow 2 tutorial out now! Check it out here: ruclips.net/video/rRwflsS67ow/видео.html

  • @Lafontein
    @Lafontein 3 года назад +48

    For the people who get an error for the installing tensorflow , you need the create the environment with the "conda create -n myenv python=3.7". Because it is need this version of Python. It worked for me.

    • @muhsinmuhammed7200
      @muhsinmuhammed7200 3 года назад +2

      Tx mate, it works!

    • @atillaonder1527
      @atillaonder1527 3 года назад

      olur gibi oldu ama hala hata alıyorum, sen yapabildin mi?

    • @Lafontein
      @Lafontein 3 года назад

      @@atillaonder1527 Evet

    • @atillaonder1527
      @atillaonder1527 3 года назад

      @@Lafontein protoc kısmında kaldım, nasıl yaptığını hatırlıyor musun?

    • @rishikeshborse834
      @rishikeshborse834 3 года назад +1

      how do we do it

  • @deniszoican3242
    @deniszoican3242 4 года назад +2

    Awesome video! The savior for programmers that started learning Object Detection in 2020 :D

    • @LazyTech825
      @LazyTech825  4 года назад +2

      Thanks! I hoped for this video to be useful for people just starting out, wish someone else made this when I learned!

  • @theodorgiles8351
    @theodorgiles8351 4 года назад +1

    Thanks for this vid, by the way. Got your example running. Super awesome to see people updating such convoluted or outdated instructions.

  • @samarth2915
    @samarth2915 3 года назад +3

    protoc is not showing that warning and i am in research folder can anyone help !!

  • @yufliu
    @yufliu 3 года назад +2

    Hey, just want to say, this was great and super helpful! Thanks!

  • @pokerfreerolldonkey5189
    @pokerfreerolldonkey5189 4 года назад +3

    I managed to train objects in Google Colabs but it's a PITA.
    Thanks for this, I'd much rather have it on my machine even though it's not as fast.
    There is now integration on Tensorflow 2 for Object detection. The process seems easier and better integrated but as I'm an Android/ Java developer I don't know how (yet!) to implement my own code. Hopefully with TF2 there is no conflicts which inevitably occur on TF1x.
    I skipped through the LabelImg video as I'm already past this stage but look forward to your third video in the series.

    • @LazyTech825
      @LazyTech825  4 года назад

      I’ll have to look into TF2, hopefully when I go over google collab training next time I can simplify the process! It took some time to learn how to setup but now I use it all the time since I don’t have a compatible gpu

  • @saadmunawar7920
    @saadmunawar7920 3 года назад +7

    Hey, so at 6:38 when it comes to compiling protoc, I'm not getting that warning that you say is essential and I'm not really sure what to do. i have followed this video step by step up until that point, so I doubt I've missed anything before. its in the right environment as well. if you could help solve this issue, that would be great. thanks

    • @tiarakusumadewi2337
      @tiarakusumadewi2337 3 года назад

      I face the same problem.

    • @yourmommy3394
      @yourmommy3394 3 года назад

      I have exactly the same problem.

    • @retrohead
      @retrohead 3 года назад +15

      try this : go to the folder
      esearch\object_detection\protos then open the file input_reader.proto and add this line after the package command: import "object_detection/protos/image_resizer.proto"; including the quotation marks and the semicolon. fixed it for me.

    • @wmb9
      @wmb9 3 года назад +1

      @@retrohead THANK YOU!

    • @anirbanghosh6328
      @anirbanghosh6328 3 года назад +1

      @@retrohead Thank you, It works

  • @teetanrobotics5363
    @teetanrobotics5363 3 года назад +1

    Love the TensorFlow object detection playlist. please make more Deep learning computer vision videos.

  • @sashaabashkin8452
    @sashaabashkin8452 3 года назад +2

    Hi. I have error with third cell in Jupyter. Command 'b'cd models/research/
    protoc object_detection/protos/*.proto --python_out=.
    '' returned non-zero exit status 1.
    I ran same code in prompt and it did nothing visible, but still, didn`t raise any error. How can I fix it?

  • @sukilsiva2724
    @sukilsiva2724 4 года назад +1

    Aww!!! this is what i have been searching for

  • @tymofei8586
    @tymofei8586 3 года назад +2

    AWESOME ! TNX A LOT. There is a lot bugs and issues with tensorflow 2. And other libraries. Couldnt figure out how to do without stupid errors.

  • @t_doggames4065
    @t_doggames4065 4 года назад +4

    oh my gosh I was just having problems with this the other day when I was planning my heist for world domination. Lol

  • @leonripa8028
    @leonripa8028 2 года назад

    had some open cv errors with the webcam, used
    pip uninstall opencv-python-headless
    pip uninstall opencv-python
    pip install opencv-python
    and this worked for me

  • @hellhammervs
    @hellhammervs 3 года назад +7

    Awesome tutorial! I've been following it step by step, but when I get to the command python setup.py install, half way through it, it exits with a fatal errors, saying Math.h: no such file or directory. I've been struggling with it for a while and nothing works. 🙁 Any ideas?

    • @hellhammervs
      @hellhammervs 3 года назад

      If anyone is in the same situation, I finally managed to solve it by uninstalling and re-installing the Visual C++ 2015 build tools.

    • @ashishjha8630
      @ashishjha8630 3 года назад +6

      @@hellhammervs For anyone that is looking for the missing "setup.py" file that he builds and installs, it is as of writing this comment, located in the .../models/research/object_detection/packages/tf1 folder. Copy it into research folder and you should be able to continue with the guide.

    • @leafiadias96
      @leafiadias96 3 года назад +1

      @@ashishjha8630 thanks mate! works

    • @alechorth1337
      @alechorth1337 2 года назад +1

      @@ashishjha8630 thank you it solves it :)

    • @afriquemodel2375
      @afriquemodel2375 2 года назад

      hi

  • @elchinhuseynov1492
    @elchinhuseynov1492 2 года назад +1

    Thank you!

  • @otakuguild5603
    @otakuguild5603 3 года назад +3

    protoc object_detection/protos/*.proto --python_out=. nothing is showing after i enter this command. And yes i m in research directory

    • @mishaalnaeem6135
      @mishaalnaeem6135 3 года назад +1

      did you find a solution? I'm having the same issue - I'm in research, the exe is pasted in it too, but im not getting anything show

    • @iskraracheva1455
      @iskraracheva1455 3 года назад +2

      @@mishaalnaeem6135 +1 :(

    • @atillaonder1527
      @atillaonder1527 3 года назад +1

      i have the same problem :/

    • @MBassa
      @MBassa 3 года назад +2

      same problem here. Did you already try this one:"Please check the research/object_detectio/protos/input_reader proto file.In here after the package line add the import “object_detection/protos/image_resizer.proto”; someone had deleted it from the original file.worked for me"?

    • @billybrian7785
      @billybrian7785 3 года назад +1

      @@MBassa Brooooo you da real MVP

  • @zachsmith8762
    @zachsmith8762 3 года назад +3

    /bin/bash: line 2: protoc: command not found
    I am getting this error and do not get the warning when I compile the protoc and I do have the protoc in the research folder. Is there any solution to this? Protoc version 3.4

    • @anthonygonsalvis121
      @anthonygonsalvis121 3 года назад

      I ran into the same issue but followed the presenter's instructions carefully and finally overcame this issue (now running into some new issues, however). (1) After copying/Git cloning/unzipping, be sure to move or copy manually or via cmd prompt (cp command) the protoc.exe file from the default 'bin' folder into the '../models/research' folder. (2) Then in the Anaconda Prompt window, when you're in that '..\models
      esearch' directory, run the protoc command again. It should work. Good luck. (My problem was a small typo!)

    • @alimagzari7656
      @alimagzari7656 3 года назад

      I'm getting the same error on Jupyter notebook. Did you find a solution? Thanks

    • @zachsmith8762
      @zachsmith8762 3 года назад

      @@alimagzari7656 yeah added .exe in the colab tutorial where it was failing... just was directing to the wrong path. Once u fix it there youre able to save it and continue on

    • @alimagzari7656
      @alimagzari7656 3 года назад

      @@zachsmith8762 could you please share the command line?

  • @padisalashanthan98
    @padisalashanthan98 3 года назад +2

    Hey, I am getting the below listed error:
    ERROR: Could not find a version that satisfies the requirement TensorFlow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0)
    ERROR: No matching distribution found for TensorFlow==1.15
    What do I have to do now?

    • @wojtekolejko3904
      @wojtekolejko3904 3 года назад

      I am not sure is it correct, but maybe you should try create virtual enviroment with parameter python==3.7. As I read, python 3.8 do not support tensorflow 1.x, so you should try with previous version. Actually it works for me.

    • @barsozkan63
      @barsozkan63 3 года назад

      u use python 3.8, delete lastest version and download 3.7

  • @longzhong.8149
    @longzhong.8149 3 года назад +1

    from object_detection.protos import string_int_label_map_pb2
    ModuleNotFoundError: No module named 'object_detection'
    what problem with above depiction😥

  • @krishdesai1097
    @krishdesai1097 3 года назад +3

    I added protoc in my research file but once I do the command it says command not found. What should I do?

    • @Felix-pj6fn
      @Felix-pj6fn 3 года назад +1

      You need to put the protoc.exe in this folder "C:\Users\URNAME\AppData\Local\Programs\Python\Scripts" (Replace the URNAME with your name)

  • @abishekrajpurohits1638
    @abishekrajpurohits1638 3 года назад +2

    guys for the protoc command there is no necessity of the warning. if your files in protos folder gets the python file that means the command has been executed

  • @cmdownloader7514
    @cmdownloader7514 4 года назад +1

    Thanks man, it's helped me a lot! Appreciate that.

  • @kaypken
    @kaypken 2 года назад

    Hello there. I seem to face this problem on anaconda prompt regarding pip. " 'pip' is not recognized as an internal or external command,
    operable program or batch file." This is what it shows.

  • @MrUnxpectable
    @MrUnxpectable 4 года назад +1

    Thanks alot this helped me alot for my project!!!

  • @user-xy4vz2uj9m
    @user-xy4vz2uj9m 3 года назад

    Thank you for video. It is very helpful! I have a question about the model config file. In that file, there are some lines like eval_config, and eval_input_reader. Those eval means validation during the train? or test the model?

  • @No_one_knows_01
    @No_one_knows_01 4 года назад +1

    i have followed all the steps, but i m opening jupyter notebook in 'object', it shows 'kernel error'. how i can fix this?

  • @colinsutter6982
    @colinsutter6982 3 года назад +6

    "pip install opencv-python" to install cv2 you do not have to install the wheel file

    • @LazyTech825
      @LazyTech825  3 года назад +1

      Sometimes this works, sometimes it doesn’t - give it a try!

    • @sonoda7723
      @sonoda7723 3 года назад

      thank you, I had problems with the wheel file but this worked out easily

  • @anggafs
    @anggafs 3 года назад

    great tutorial ben. Many Thanks.

  • @renzrafal
    @renzrafal 2 года назад

    hello I have problem with the tensorflow models git. it seems the contents of it from when you created the video is not the same now (2021). please help

  • @anirbanghosh6328
    @anirbanghosh6328 3 года назад

    Thank you it works perfectly

  • @nguyenangthang7473
    @nguyenangthang7473 3 года назад +2

    Hi, I'm following your project and accidentally ran into a problem. What version of python were you using in this video, may I ask?

  • @fengzhang9052
    @fengzhang9052 4 года назад +2

    I like your video so much. Thank you for your work!
    Can you please also talk about Mac? I am stuck on the pycocotools installation :(.
    I use pip install git+@t^&subdirectory=PythonAPI
    The message shows error is in the log file names

    • @LazyTech825
      @LazyTech825  4 года назад

      Unfortunately I do not know the process for Mac. If the command i provided did not work try this one: pip install git+github.com/waleedka/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI

  • @hamdanmahmood346
    @hamdanmahmood346 3 года назад +1

    Thank you, this was incredibly helpful for my school project!

  • @rishikeshborse834
    @rishikeshborse834 3 года назад +1

    ERROR: Could not find a version that satisfies the requirement TensorFlow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.2.2, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.3.2, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0)
    ERROR: No matching distribution found for TensorFlow==1.15
    i am getting this error can u please help

    • @alanhelfer1337
      @alanhelfer1337 3 года назад

      Downgrade your python version
      TensorFlow 2.0.0 -> pip install python==3.6.9

  • @leaduckworth
    @leaduckworth 2 года назад

    In the jupyter file, when I click cell and run all I get the error NameError: name 'TEST_IMAGE_PATH' is not defined. Does anyone know how to fix this? I followed everything in the video so far

  • @adelinvaduva7832
    @adelinvaduva7832 3 года назад

    Something that I don't understand is that you said when an error occurs we should make sure we are in the folder x when we do that action but what if we already done the exact same thing that you said and still get the error?

  • @saiashwalkaligotla6639
    @saiashwalkaligotla6639 4 года назад +1

    hello, I have 3 doubts
    1)Is tensorflow 2.0 gpu version working for object detection.
    2)Do we need to create different environments for different projects
    3)In practice will the companies or some softwares use these architectures like faster rcnn , mobilnet and yolo etc or do they create their own from scratch neural networks layers .
    thanks in advance

    • @LazyTech825
      @LazyTech825  4 года назад +2

      1) TensorFlow 2 just added support for object detection (I should be making a video about it in the future) 2) You don't have to create new environments, but it might be a good idea to do so 3) I can't say for sure but it is most likely a mix of both. For example, in my next video coming out soon I show how to make our own dataset using one of the premade models which can save days of time for computation. There is nothing stopping you from making your own from scratch, but this is what most people do

  • @hamoudi4u
    @hamoudi4u 4 года назад +2

    Would u plz provide us with which python version u use? And some people says that it works only with anaconda 32 bit is that true?

    • @LazyTech825
      @LazyTech825  4 года назад

      I use python 3.7. I’ve been using the 64 bit just fine

    • @RobbieLikesACDC
      @RobbieLikesACDC 4 года назад

      @@LazyTech825 Im using thesame version but pip install TensorFlow==1.15 returns
      ERROR: Could not find a version that satisfies the requirement TensorFlow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0)
      ERROR: No matching distribution found for TensorFlow==1.15

    • @TheCodyuzumaki
      @TheCodyuzumaki 4 года назад +3

      @@RobbieLikesACDC You are probably using python 3.8, who doesn't support TF 1.X. To fix your problem swap your python version to 3,7 through the command "conda install python=3.7.7 and try again

  • @krishnagandhi4296
    @krishnagandhi4296 3 года назад +1

    "NameError: name 'category_index' is not defined", I am getting error on this

  • @fallacyyy
    @fallacyyy 4 года назад +5

    Do the custom model next please :D

    • @LazyTech825
      @LazyTech825  4 года назад +1

      Just posted a new video about custom models!

  • @1hecuteangel
    @1hecuteangel 3 года назад +2

    Your video is awesome and very helpful but i have a slight error while running the last bit of the object detection tutorial notebook. The error is that the 'autotrackable' object has no attribute 'output_shapes', I have tried searching for online help but ended up lost.. any help here?

    • @bor77
      @bor77 3 года назад

      same for me if you've solved it?

    • @1hecuteangel
      @1hecuteangel 3 года назад

      @@bor77 시간이 지나서 잘 기억이 안나지만 텐서플로우 버전 때문에 생긴 에러인것 같았어요.. ㅜㅜ 기억이 잘 안나네요

    • @granatapfel6661
      @granatapfel6661 2 года назад

      you need the updated file there errors in it. updated file is in an issue of github discussions

  • @ivanayudith2419
    @ivanayudith2419 2 года назад +2

    Hey, Thankyou so much, but on my research folder, there's none of the item that named by setup.py, can you help me? thankyou so much~

  • @mayukhmajumdar2640
    @mayukhmajumdar2640 3 года назад

    Thank you for the video. Excellent. Is there a way to export the detected objects to an excel format. I tried a few solutions available online but not working.

  • @christianmoreno7390
    @christianmoreno7390 2 года назад

    Hey, hope all is well! when the api demo is ran on jupyter notebook, I receive this error for this line of code:
    code: (line 24 in api demo)
    model_name = 'ssd_mobilenet_v1_coco_2017_11_17'
    detection_model = load_model(model_name)
    error:
    ImportError: cannot import name 'dtensor' from 'tensorflow.compat.v2.experimental' (C:\Users\chris\AppData\Roaming\Python\Python37\site-packages\tensorflow\_api\v2\compat\v2\experimental\__init__.py)
    Can't find any solution. I've spent hours on this issue, any help is deeply appreciated, thanks!

  • @sohailali5741
    @sohailali5741 4 года назад

    Great tutorial. Can you please make video on evaluation metrics of object detection?

  • @kathrinkajderowicz134
    @kathrinkajderowicz134 4 года назад

    Worked great! Thanks a lot

  • @hadilal-sewaiee7676
    @hadilal-sewaiee7676 3 года назад

    I am in the process of installing the tensorflow API, but then what to do with this message that appears during the installiation "tf-models-official 2.4.0 has requirement tensorflow>=2.4.0, but you'll have tensorflow 1.15.0 which is incompatible."
    what should I do, any help please ?

  • @farzanayasmin8496
    @farzanayasmin8496 3 года назад +1

    How can I find a protoc for windows 64 version? The protoc used in the video is for windows 32 version and I don't see a protoc for windows 64. How can I work with it? Need help.

    • @yourmommy3394
      @yourmommy3394 3 года назад

      The win32 version works both for win32 and win64.

  • @JeonYoonChang
    @JeonYoonChang 3 года назад +1

    thx for the videos. I follow your video all but I have some errors. when I run webcam.py, there is no webcam with no error message. Just end. And running updated an old example.py, outputs folder is still empty. How can I fix these problem?

    • @JeonYoonChang
      @JeonYoonChang 3 года назад

      I solve it! I was in wrong path! thx!

  • @fatihelibol58
    @fatihelibol58 3 года назад

    Hello, I want to print the defined objects to the console. Which variable should I print? could you please help :(

  • @tunaozates
    @tunaozates 4 года назад +2

    When I run the imports cell, I got the following error, I tried a lot of tutorials and got same can you please help?
    ModuleNotFoundError: No module named 'tensorflow.python.tools'

    • @LazyTech825
      @LazyTech825  4 года назад

      Try this:
      pip install -upgrade pip
      pip uninstall tensorflow
      pip install tensorflow==1.15

    • @yarabanda9639
      @yarabanda9639 4 года назад +1

      @@LazyTech825 it gives me this error: No matching distribution found for tensorflow==1.15

    • @TheCodyuzumaki
      @TheCodyuzumaki 4 года назад

      @@yarabanda9639 That's probably because you're using python 3.8, and 1.15 is not supported there. To fix it you can swap to 3.7 version through this command: conda install python=3.7.7

  • @ovnd6825
    @ovnd6825 3 года назад +1

    i keep getting the ModuleNotFoundError: No module named 'object_detection.utils'; 'object_detection' is not a package error :/ anyone else facing this problem (macOS)

    • @devgaur5955
      @devgaur5955 3 года назад

      Yes, facing the same issue. Got any fix for this one ?

  • @soniaaryan5160
    @soniaaryan5160 3 года назад

    At
    10:28
    I got jupyter is not recognised as internal or external command.
    What should I do now?

  • @ameyathavia4529
    @ameyathavia4529 3 года назад

    When i run the updated file i got this - "Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 " what does this mean any why am I getting this error?

  • @imagedetectionyolo2987
    @imagedetectionyolo2987 3 года назад +2

    I am getting error ... please help me in resolving this %%bash
    cd models/research/
    protoc object_detection/protos/*.proto --python_out=.

    • @koskoski66
      @koskoski66 3 года назад +2

      if you are using windows change for %%cmd

    • @22draynor
      @22draynor 3 года назад

      @@koskoski66 This comment needs to be higher. I definitely overlooked this for several hours!

  • @lowqchannel
    @lowqchannel 4 года назад +2

    what the difference of tensorflow and yolo

    • @LazyTech825
      @LazyTech825  4 года назад

      Yolo is another object detection api that generally uses darknet. TensorFlow is a google api which has an object detection api

    • @lowqchannel
      @lowqchannel 4 года назад

      @@LazyTech825 thank u for the feedback. Im absolute beginner. I dont have much ideas of many things in the video. Like whats the software used to edit the code, what must be installed and y are they chosen. Is there any video by you that start from scratch? Thanks

    • @LazyTech825
      @LazyTech825  4 года назад

      At the beginning of the video I talk about the software I’m using. Many of the packages you install are needed by the scripts that run the object detection. I don’t think I would be able to go over all of them as I myself don’t know what they all do in depth

  • @andihaki
    @andihaki 2 года назад

    any tutorial how to detect keypoint (face landmark) not only bounding box? thank you

  • @GauravSingh-ku5xy
    @GauravSingh-ku5xy 3 года назад

    Thanks for the tutorial. But I'm getting an error when I run the file "updated_old_example.py". The error is:
    ValueError: Protocol message StringIntLabelMapItem has no field frequency.
    I have no idea what this means. I'd like some guidance here.

  • @cool_videos6016
    @cool_videos6016 4 года назад +2

    i am not able to download pycoco tools please provide the exact command here

    • @ondereser648
      @ondereser648 4 года назад +2

      pip install pycocotools-windows

    • @ondereser648
      @ondereser648 4 года назад

      this is for windows users

    • @jesseholliday3480
      @jesseholliday3480 3 года назад

      @@ondereser648 This worked for me!!! since I am a windows user

  • @alejandro.l.alonso
    @alejandro.l.alonso 3 года назад

    what can i do if kernel starting, please wait...... when i enter to jupyter to run the object detection api demo¿?

  • @myprojectsmade6079
    @myprojectsmade6079 3 года назад

    thank you u helped a lot

  • @arkgupta1555
    @arkgupta1555 3 года назад +1

    Hi, I've been getting an error while installing the TensorFlow, the error is :
    ERROR: Could not find a version that satisfies the requirement TensorFlow==1.15 (from versions: none)
    ERROR: No matching distribution found for TensorFlow==1.15

    • @arkgupta1555
      @arkgupta1555 3 года назад

      I don't know why I'm getting this error but it is been happening for other versions also. Please help

    • @thibautlehmann221
      @thibautlehmann221 3 года назад +1

      ​@@arkgupta1555 Hello, make sure to have python 3.7 before installing tensorflow, write this in anaconda (in your environment) : conda install python=3.7.0

    • @arkgupta1555
      @arkgupta1555 3 года назад

      @@thibautlehmann221, right now I have python 3.9

    • @trickycloud2193
      @trickycloud2193 3 года назад

      you can check with version 1.14 instead using 1.15

    • @LazyTech825
      @LazyTech825  3 года назад

      make sure you're using python 3.7

  • @otakuguild5603
    @otakuguild5603 3 года назад

    I am using python 3.8 . Would that work or di i need older version ?

  • @nithink94
    @nithink94 3 года назад

    Can you help me to count the number of objects in an image?? is there anything that I can modify in the present code?

  • @anthonygonsalvis121
    @anthonygonsalvis121 3 года назад +1

    PLEASE HELP! Getting tripped by the following bash command in the TF's updated Notebook. I'm a newbie at this. Please dumb it down for me. Thank you in advance. I'm using the object_detection_tutorial model that's currently available on TF's Github. I do have the protoc.exe in the 'research' directory as suggested in the video.
    %%bash
    cd models/research/
    protoc object_detection/protos/*.proto --python_out=.
    /bin/bash: line 2: protoc: command not found
    (followed by several lines of source code traceback, and a final error message...)
    CalledProcessError: Command 'b'cd models/research/
    protoc object_detection/protos/*.proto --python_out=.
    '' returned non-zero exit status 127.

    • @alimagzari7656
      @alimagzari7656 3 года назад

      I'm getting the same error on Jupyter notebook. Did you find a solution? Thanks

  • @sharanrabinsonmohanraj6230
    @sharanrabinsonmohanraj6230 3 года назад

    How can I modify this code to print the particular class....if I have human, dogs and cat in my data set..... I want only the human to be displayed

  • @neuron8186
    @neuron8186 3 года назад

    and next day he goes skateboarding with his bottle

  • @pavinlimpotong9141
    @pavinlimpotong9141 2 года назад

    Hello,
    I download the protoc file and copy and paste the protoc.exe from the bin file to the research file. However, when I run the "protoc object_detection/protos/*.proto --python_out=." in the anaconda prompt, I couldn't get it to compile at all. Anybody else face the same problem? Please help asap.

  • @avikdey4880
    @avikdey4880 4 года назад +4

    I didn't get the warning :(

    • @mohitthorat288
      @mohitthorat288 4 года назад

      Same. Did it work out though?

    • @waitwhat3547
      @waitwhat3547 4 года назад

      same

    • @Lixo_
      @Lixo_ 3 года назад +1

      @@mohitthorat288 I worked anyways, but make sure to have the protoc version 3.4 installed
      using the comand
      "protoc" in the research folder

    • @ibarn055
      @ibarn055 3 года назад +2

      If you're working from the Anaconda command prompt, and your current directory is in 'research,' run this command: for /f %i in ('dir /b object_detection\protos\*.proto') do protoc object_detection\protos\%i --python_out=. I am using TensorFlow 2.3.0 and following this: tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html#id5

  • @nikonissinen6772
    @nikonissinen6772 3 года назад +3

    I can't even get pip installed, nor anaconda or tensorflow
    fun

    • @kys1721
      @kys1721 3 года назад +1

      if you read this use this command
      conda create -n [name] python=[version]
      then use this
      conda install -c conda-forge tensorflow-gpu
      and you will have installed it successfully TensorFlow
      after that, if you want to use jupyter notebook u will need to reference your virtual env
      write this command in the cmd
      python -m ipykernel install --user --name=myenv
      after you start jupyter just choose a different kernel, not Python 3 and delete this command pip install -U --pre tensorflow=="2.*" in the example named object_detection_tutorial.ipynb hope I helped

  • @angelachen641
    @angelachen641 3 года назад +3

    setup.py is in official/pip_package

  • @ayahassan8682
    @ayahassan8682 2 года назад

    python setup.py build
    python: can't open file 'C:\Tensorflow\models
    esearch\setup.py': [Errno 2] No such file or directory
    I still can't find this file after installing proctoc

    • @ScottPoirier
      @ScottPoirier 2 года назад

      setup.py is in \models\official\pip_package directory

  • @redaabouzid2753
    @redaabouzid2753 3 года назад

    Hello sir,
    Please i want to build a model for extract the data from card-id using key-pair values please advice me how i can do that

  • @tipveyapayogrenme8064
    @tipveyapayogrenme8064 3 года назад

    dude when i clicking the object_detection/colab_tutorials/object_detection_tutorial.ipynb I get an 500 : Internal Server Error. WHY this happening ı don't know.

  • @legohistory
    @legohistory 3 года назад

    Can't download Tensorflow version 1.15 ...
    EDIT: had to say: conda create -n object pip python=3.5
    also had to download Visual Studio C++ Workload for pycoco to work on windows

  • @junkmatrix
    @junkmatrix 3 года назад

    Hi Ben, this was very useful. Mucho appreciato. Any chance you can post the written document you were referring to, at 6:25 mark?

  • @TBB271
    @TBB271 3 года назад

    can u please put the link for the colab notebook?

  • @adrianmanuelorayeabrasaldo
    @adrianmanuelorayeabrasaldo 4 года назад +1

    Is it possible to get the coordinates of the object being detected?

    • @LazyTech825
      @LazyTech825  4 года назад +1

      I’ve actually been looking into this also. Haven’t had much time yet but this post looks helpful stackoverflow.com/questions/48915003/get-the-bounding-box-coordinates-in-the-tensorflow-object-detection-api-tutorial

    • @adrianmanuelorayeabrasaldo
      @adrianmanuelorayeabrasaldo 4 года назад

      @@LazyTech825 Thanks for your fast response sir

  • @TenForceFalls
    @TenForceFalls 3 года назад

    I am getting a error saying ERROR: Could not find a version that satisfies the requirement TensorFlow==1.15 (from versions: none)

    • @LazyTech825
      @LazyTech825  3 года назад

      Make sure you're on a compatible version of python, try using 3.7

  • @hazwanhelmy9686
    @hazwanhelmy9686 3 года назад

    excuse me sir, does Esp 32 Cam also can apply to this?

  • @wilfrieddefotsing257
    @wilfrieddefotsing257 2 года назад

    can i use mobilenetv2 as the model ? not the ssd version

  • @harshbhatnagar2386
    @harshbhatnagar2386 3 года назад

    Tfrecords gives the error I have only CPU how can I create the record file in colab .

  • @Preethamvarma338
    @Preethamvarma338 3 года назад

    I am not able to open webcam after running the webcam_detection file
    plz anyone help me with this

  • @umarsethi8980
    @umarsethi8980 3 года назад +1

    hay. i appreciate your effort but this video is confusing. you 1st installed ft1.15 after this in tutorial jupyter notebook in 1st cell there is command to install tf2 so you run whole notebook and you are installing tf2 can you elaborate this? Moreover, tf1.5 unable to run tutorial notebook bcz its crating issues while loading weights i also posted error on your github repository. thanks

    • @LazyTech825
      @LazyTech825  3 года назад

      I dont see where it installs tensorflow 2, if it is in there somewhere that it my mistake it should be using 1.15. Collab doesn't use specific version numbers, so saying 1.15 will switch it to 1.x.x mode

    • @umarsethi8980
      @umarsethi8980 3 года назад

      @@LazyTech825 check 1st cell in your jupyter notebook where you can see pip install tensorflow==2*

  • @puterailham7112
    @puterailham7112 2 года назад

    Does anyone knows how to change the model detection name? Cos I can't seem to be able to.

  • @emilio4961
    @emilio4961 4 года назад +1

    Hi, can I make it detect only one object that I want and if I can how can I do that (custom data set).

    • @emilio4961
      @emilio4961 4 года назад

      using the webcam (live)

    • @LazyTech825
      @LazyTech825  4 года назад +2

      Yes you can do that! I will be making a tutorial soon on how we can make a custom model

    • @emilio4961
      @emilio4961 4 года назад +1

      Lazy Tech alright thanks

  • @nikitanelson9073
    @nikitanelson9073 3 года назад

    Hey I am getting this problem:ImportError: Traceback (most recent call last):
    File "c:\users\pc\anaconda3\envs\objdetect\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in
    from tensorflow.python._pywrap_tensorflow_internal import *
    ImportError: DLL load failed: The specified module could not be found.
    when running the collab example
    How to solve this? Can i run tensorflow api without gpu?

    • @dhruvmanral8284
      @dhruvmanral8284 3 года назад

      yes, tensorflow api can be used using cpu....and try to find the version of tensorflow suitable for the version of python you are using..like tensorflow 2.2 or later require python3.8

  • @Artecd
    @Artecd 2 года назад

    Hello
    How much fps on 1650 or 1660 or titan 6gb?)

  • @ErikBlueGuitar
    @ErikBlueGuitar 3 года назад

    Where do I find the updated_old_example.py?

  • @aysebeyzaunal3472
    @aysebeyzaunal3472 3 года назад

    for the protoc my computer is 64 bit, can i use the one you download ?

    • @Fartcat6992
      @Fartcat6992 2 года назад

      yup! win32 supports x32 and x64 I believe

  • @aysebeyzaunal3472
    @aysebeyzaunal3472 3 года назад

    ı cant download the protocols !! it made a cache error what can ı do?

  • @anthonygonsalvis121
    @anthonygonsalvis121 3 года назад

    Running into ImportError with utils functions using Ben's .py file. Executing Ben's .py file using Anaconda's Spyder IDE. Using Python 3.7 64-bit version and the Python 3.7 Environment Variable. All dependencies are successfully installed in the virtual environment. protoc command executed successfully (didn't get any errors).
    Getting the following error for the line "from utils import label_map_util"
    ImportError: cannot import name 'label_map_util' from 'utils' (C:\ProgramData\Anaconda3\lib\site-packages\utils\__init__.py)
    Tried changing directory to .../object_detection/utils and making corresponding code changes per stackoverflow, etc. But no matter what I do, the error doesn't go away. Very frustrating to keep stumbling right out of the gate...

    • @loryhoof
      @loryhoof 3 года назад

      You got it fixed?

  • @rishikeshborse834
    @rishikeshborse834 3 года назад +1

    ERROR: Could not find a version that satisfies the requirement TensorFlow==1.15
    ERROR: No matching distribution found for TensorFlow==1.15
    I am getting this error
    some one please help

    • @mattvale1
      @mattvale1 3 года назад +1

      same here

    • @kys1721
      @kys1721 3 года назад

      do you use anaconda or python because I had the error when I used python

    • @rishikeshborse834
      @rishikeshborse834 3 года назад

      @@kys1721 yes

    • @kys1721
      @kys1721 3 года назад

      @@rishikeshborse834 I would recommend you create a virtual env in anaconda
      and use this command in it conda install -c conda-forge tensorflow-gpu or this if you cant use the gpu conda install -c conda-forge tensorflow

  • @mohitthorat288
    @mohitthorat288 4 года назад

    Hello, I ran the python script from python IDLE(I don't use pycharm.). I got the error ModuleNotFoundError: No module named 'object_detection'
    Does your virtual environment of 'object' has anything to do with this? Please help. Thanks.

    • @LazyTech825
      @LazyTech825  4 года назад +1

      No, the way I did it with pycharm was set the project directory at a higher folder than the object_detection folder. Doing this makes sure the scripts can find the correct imports

  • @saishashi9978
    @saishashi9978 2 года назад

    unable to get warning message while running protoc object_detection/protos/*.proto --python_out=. can you please guide

  • @waitwhat3547
    @waitwhat3547 4 года назад +1

    I actually did this before using sentdex's tutorial and it worked like 1 year ago
    Now I tried to do this again, no anaconda
    python : 3.5
    tensorflow version: 1.15
    tensorflow gpu with CUDA and cuDNN = 1.15
    protoc version : libprotoc 3.4.0
    protobuf version : 3.13.0
    did everything but I don't get any warning for : protoc object_detection/protos/*.proto --python_out=.
    as a matter of fact I dont get any output at all this is what i get
    D:\Tensorflow\models
    esearch>protoc object_detection/protos/*.proto --python_out=.
    D:\Tensorflow\models
    esearch>
    anyways I went on ahead with your tutorial and at In[5] Imports I got a huge error

    • @chathurafernando3026
      @chathurafernando3026 3 года назад +1

      Please check the research/object_detectio/protos/input_reader proto file.In here after the package line add the import “object_detection/protos/image_resizer.proto”; someone had deleted it from the original file.worked for me

    • @waitwhat3547
      @waitwhat3547 3 года назад

      @@chathurafernando3026 I guess you are right because older version of protoc worked for me

  • @TheCodyuzumaki
    @TheCodyuzumaki 4 года назад

    Hi Ben!
    First of all, thank you for your videos. Facing the typical problems associated to older versions of nice tutorials like Sentdex ones is shit...
    I have one question: You've said that it's advisable to use the 1.15 Tensorflow version, but in the first notebook code cell you're installing Tensorflow 2.X, right? What's the point of installing 1.15 in conda env then?
    And in the next code cells you're executing again the command protoc object_detection/protos/*.proto --python_out=., that you had executed before in conda env, right? Is that necessary?
    Thank you ;)

    • @LazyTech825
      @LazyTech825  4 года назад +1

      I probably left the TF 2.x line in there by accident whoops. Google collab doesn’t care too much about versions so as long as it’s set to TensorFlow 1. I might’ve left that protoc line in there twice but we also have to run it on the collab

    • @TheCodyuzumaki
      @TheCodyuzumaki 4 года назад

      @@LazyTech825 Perfect, thanks for the answer ;)

  • @farzanayasmin8496
    @farzanayasmin8496 3 года назад

    I'm getting the following error while running the updated_old_example.py (I have installed all the packages):
    Traceback (most recent call last):
    File "C:/Users/Student/OneDrive - University Of Houston/Object-detection/models/research/object_detection/updated_old_example.py", line 15, in
    from utils import label_map_util
    File "C:\Users\Student\OneDrive - University Of Houston\Object-detection\models
    esearch\object_detection\utils\label_map_util.py", line 29, in
    from object_detection.protos import string_int_label_map_pb2
    ModuleNotFoundError: No module named 'object_detection'
    How can this issue be solved?

    • @juancarlossalazarvaca7080
      @juancarlossalazarvaca7080 3 года назад

      solved...
      run this in your enviroment project
      python setup.py build
      python setup.py install

  • @deepakraj008
    @deepakraj008 3 года назад

    I am getting error while converting to tflite