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

Поделиться
HTML-код
  • Опубликовано: 27 янв 2025

Комментарии • 1 тыс.

  • @alvarohenriquez497
    @alvarohenriquez497 4 года назад +9

    This is a great video. For those who have experienced the 'cudart64_110.dll' error, its because you are installing Tensorflow 2.4.1 so the cuda and cudnn versions must be updated. This is the easiest way I think:
    1. Activate your conda object-detection environment - 'conda activate name_of_env'
    2. Issue 'conda list' command and check Tensoflow, cudatoolkit, and cudnn versions. If its tensorflow 2.4.1 the cuda stuff is probably not listed.
    3. For Tensorflow 2.4.1 you will need cudatoolkit 11.0.3 and cudnn 8.0.5.39
    4. If cudatoolkit and cudnn are installed, but with lower versions, you will need to remove them
    a. conda remove cudatoolkit
    b. conda remove cudnn
    4. Install from the nvidia conda channel
    a. conda install --channel nvidia cudatoolkit=11.0.3
    b. conda install --channel nvidia cudnn=8.0.5.39
    5. Close your terminal session, then open a new one, go to your environment and test your install.
    python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000,1000])))"
    6. The first line of output should be:
    2021-02-16 19:55:16.628819: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudart64_110.dll
    With this, I am able to run different versions of cuda in different environments.

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

      Awesome work @Alvaro, thanks for sharing!

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

      Hey, I got this error: PackagesNotFoundError: The following packages are not available from current channels:
      Additionally, the cudann & cudatoolkit versions Nicholas mentioned in his video do not appear in 'conda list' and have to be removed under add or remove program in windows
      I googled and found this to be the correct command for installing instead:
      conda install -c anaconda cudatoolkit
      i did not install cudann to a newer version, and testing with your code with line 5 gave me the sucessfully opened messages, and a final output:
      tf.Tensor(100.03393, shape=(), dtype=float32)

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

      @@brokeunistudent2474 hmmm, are you using conda install or pip install?

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

      @@brokeunistudent2474 That's because you haven't added the nvidia channel to anaconda. But as long as it works, right.

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

      @@brokeunistudent2474 Also, to add a channel do the following:
      conda config --append channels nvidia
      I like using the nvidia channel because I know that I'm getting the latest official packages

  • @sharveensmith9947
    @sharveensmith9947 3 года назад +9

    You're a lifesaver my dude, exactly what I was looking for. Love the way you make it easy to understand and go through step by step

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

      Anytime @Sharveen, so glad it was useful!!

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

      @@NicholasRenotte Real lifesaver, if I wait for my school to reply my email on this issue, i believe i will 100% fail my course

  • @elvissanca43
    @elvissanca43 Год назад +35

    tutorial for 2024 versions pls

    • @vambylamby83
      @vambylamby83 7 месяцев назад

      Tried it, according to the website guide and chatgpt, a lot of errors so far, I am having zero success in setting them up.

    • @imamhanafi7458
      @imamhanafi7458 5 месяцев назад +5

      yes, i tried this on 2024 the build from research script didnt work, depedencies didnt match each other :(

    • @vambylamby83
      @vambylamby83 5 месяцев назад

      @@imamhanafi7458 google already stopped supporting tensorflow, so yeah might as well go PYTORCH

    • @PeterosnSteven
      @PeterosnSteven 25 дней назад

      @@imamhanafi7458 What did you do bro

    • @PeterosnSteven
      @PeterosnSteven 21 день назад

      @@imamhanafi7458 What did you do bro? Is it resolved?

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

    Greetings sir! Thank you very much my training is now working using GPU. I am having a hard time searching. I switch from windows to linux then go back to windows. I have encountered issues with the cuda then I have read your comment downgrading from tf 2.4 to 2.3.1 solves my problem. Right now I am doing real time sign language recognition system that involves basic words and phrases in FSL. Again thank you very much for making this video . Please stay safe and God bless your family sir

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

      Thanks so much @Mark!! Glad you got it up and running!

  • @dan3370
    @dan3370 4 года назад +6

    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!

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

      Thanks a billion @Dan 🙏🙏!

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

      Please Help to resolve this issue.... it occurs at 23:10
      during running command python -m pip install .
      Installing build dependencies ... error
      ERROR: Command errored out with exit status 1:
      command: 'C:\Python38-32\python.exe' 'C:\Python38-32\lib\site-packages\pip' install -ignore-installed --no-user --prefix 'C:\.......\pip-build-env-s04_mitd\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i pypi.org/simple - wheel setuptools 'Cython>=0.29.2' 'numpy==1.13.3; python_version=='"'"'3.5'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.14.5; python_version>='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.5'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version>='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"''
      cwd: None
      Complete output (31 lines):
      Traceback (most recent call last):
      File "C:\Python38-32\lib
      unpy.py", line 194, in _run_module_as_main
      return _run_code(code, main_globals, None,
      File "C:\Python38-32\lib
      unpy.py", line 87, in _run_code
      exec(code, run_globals)
      File "C:\Python38-32\lib\site-packages\pip\__main__.py", line 26, in
      sys.exit(_main())
      File "C:\Python38-32\lib\site-packages\pip\_internal\cli\main.py", line 73, in main
      command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
      File "C:\Python38-32\lib\site-packages\pip\_internal\commands\__init__.py", line 105, in create_command
      module = importlib.import_module(module_path)
      File "C:\Python38-32\lib\importlib\__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
      File "", line 1014, in _gcd_import
      File "", line 991, in _find_and_load
      File "", line 975, in _find_and_load_unlocked
      File "", line 671, in _load_unlocked
      File "", line 783, in exec_module
      File "", line 219, in _call_with_frames_removed
      File "C:\Python38-32\lib\site-packages\pip\_internal\commands\install.py", line 17, in
      from pip._internal.cli.req_command import RequirementCommand, with_cleanup
      File "C:\Python38-32\lib\site-packages\pip\_internal\cli
      eq_command.py", line 23, in
      from pip._internal.req.constructors import (
      File "C:\Python38-32\lib\site-packages\pip\_internal
      eq\__init__.py", line 10, in
      from .req_install import InstallRequirement
      File "C:\Python38-32\lib\site-packages\pip\_internal
      eq
      eq_install.py", line 10, in
      import uuid
      File "C:\Python38-32\lib\site-packages\uuid.py", line 138
      if not 0

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

      @@HaiderSafdar hmmm, not too sure about that error but it looks like it's to do with UUID on AIX. What do you get if you run pip install uuid?

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

      @@NicholasRenotte when i ran pip install uuid it gives already satisfied..installed..
      i have problem with installation of pycocotools it's they are necessary to run with this.

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

      @@HaiderSafdar A bit late, but maybe it helps other peeps. uuid comes budled with Python starting at version 2.5 and it should not be installed separately. People report that after uninstalling it (pip uninstall uuid), things would work fine.

  • @TaranehGanjizadeh
    @TaranehGanjizadeh 2 месяца назад +2

    I think the hardest part of any project is installing all the needed packages! it takes so mush time every single time!

  • @matt-cq6nd
    @matt-cq6nd 4 года назад +15

    Thanks for this clear and straightforward tutorial! Great work

  • @wardah_asad788
    @wardah_asad788 9 месяцев назад +2

    Thanks for this Life Saving tutorial ❤... I was having a hard time while watching your video of sign language translation but this tutorial solved my problem

  • @xno_elysiumx3744
    @xno_elysiumx3744 3 года назад +5

    If there are problems by using "cd object_detection/packages/tf2/setup.py ." Use "copy object_detection\packages\tf2\setup.py ." Use \ Instead of /. This should Work!!

  • @shubham-pp4cw
    @shubham-pp4cw 3 года назад +3

    Even though video is half an long but installing all the others file will take more than double the time of the video. However is simple enough such any one can perform or install . Thank you for making such good video

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

    ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml'
    HELP :S

  • @a.za.z1445
    @a.za.z1445 3 года назад +1

    Thanks for the clear instruction well appreciate hints I had these errors in step 5
    ERROR: astroid 2.2.5 requires typed-ast>=1.3.0; implementation_name == "cpython", which is not installed.
    ERROR: apache-beam 2.28.0 has requirement avro-python3!=1.9.2,=1.8.1, but you'll have avro-python3 1.10.2 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.1 has requirement grpcio~=1.32.0, but you'll have grpcio 1.36.1 which is incompatible.
    ERROR: tensorflow 2.4.1 has requirement numpy~=1.19.2, but you'll have numpy 1.16.4 which is incompatible.
    ERROR: tensorflow 2.4.1 has requirement six~=1.15.0, but you'll have six 1.12.0 which is incompatible.
    ERROR: google-api-core 1.26.1 has requirement six>=1.13.0, but you'll have six 1.12.0 which is incompatible.
    ERROR: google-api-python-client 2.0.2 has requirement six=1.13.0, but you'll have six 1.12.0 which is incompatible.
    ERROR: tensorflow-metadata 0.28.0 has requirement absl-py=0.9, but you'll have absl-py 0.12.0 which is incompatible.

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

      Hmmm, was there a larger error @A.Z A.Z.?

    • @a.za.z1445
      @a.za.z1445 3 года назад +1

      @@NicholasRenotte
      NO I haven't see any other big errors
      I will repeat the steps again step by step :)
      I will update the comment if I had the same error :)
      Thanks for your answer

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

      @@a.za.z1445 anytime, let me know how you go!

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

    For some reason the ls command is not working for me, I have tried adding git bash bin to path and its other folder but it still is not working niether is the cp command

    • @thecoder2406
      @thecoder2406 6 месяцев назад

      You need to add it on eveviroment path variable

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

    you are a legend man. Keep up the great work.

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

    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
    label_map = label_map_util.load_labelmap(args.labels_path)
    File "C:\Users\baigj\anaconda3\envs\tensorflow1\lib\site-packages\object_detection\utils\label_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
    label_map = label_map_util.load_labelmap(args.labels_path)
    File "C:\Users\baigj\anaconda3\envs\tensorflow1\lib\site-packages\object_detection\utils\label_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.. :-|

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

      Have you installed from scratch? So fresh install of Python etc?

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

      @@NicholasRenotte yes i have installed everything from scratch

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

      @@javedbaig6563 can you check what version of Tensorflow you are using? Run this inside of a notebook:
      import tensorflow as tf
      print(tf.__version__)

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

      @@NicholasRenotte 2.3.1

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

      im encountering the exact same error. Could you solve it?

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

    Thank you and take a lots of love brother. Keep doing this great works.

  • @edjai2000
    @edjai2000 2 года назад +7

    Hi @Nicholas, thank you for this content. That is the most straightforward tutorial about this topic.
    I have a question. I have followed all instructions step by step of your video, and everything was working just fine, but then...in the minute 23.14, when you run the tensorflow installation code (python -m pip install .) I am getting a bunch of errors related to opencv.
    These are some of the errors I am getting:
    the error message is gigantic, but I think the most important line is this: ERROR:
    "Could not build wheels for opencv-python, opencv-python-headless which use PEP 517 and cannot be installed directly"
    What do you think it is happening here? and waht are the possible solutions for this?
    Thanks for the great job, man.

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

    At 20:10 should we navigate to D drive or we can also paste the clone model with out navigating to D drive

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

    Hi! I am currently using windows 11, what CUDA and CUDNN version do you recommend to download? Thank you

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

    One problem that happend in the tutorial notebook was as follows. the Cell with the 4. copy model config to training folder, that part did not work in my jupyter notebook. Im using anaconda and conda environments for this. But instead of running the complicated cp script, I think you can just copy paste the file manually? My error message in this cell was simply this : "A subdirectory or file Tensorflow\workspace\models\my_ssd_mobnet already exists.
    'cp' is not recognized as an internal or external command,
    operable program or batch file."

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

      Correct, this is something I've updated in the next set of tutorials. You can fix this by converting all of the / to \\ in windows and changing the command to copy instead of cp.

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

    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

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

      Heya @Eldridge, let's dig into it. This looks like you might be using a newer version of Tensorflow as it's lookng for CUDA 11 rather than 10.1. There's two things you can do, downgrade Tensorflow to 2.3.1 or install CUDA 11! I haven't tested the tutorial on tf 2.4.0 though.

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

      @@NicholasRenotte yeahh i manage buy upgrading to cuda 11 and cudnn 8. something, it works!, by the way im trying to create 3rd labelling which is incorrect, but it doesnt work that well, do you have any suggestion? i change the labelling already and label the image as nomask mask and incorrect.

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

      @@eldridgerexroy awesome! Is it just not performing or you're getting errors?

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

      @@NicholasRenotte not performing, it detect only no mask and the other is not displaying, i use 70 images, 50 train 20 test

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

      @@eldridgerexroy hmm, how many in each training class? If I divide 50 by 3 that's only ~17 images per class. You could try adding a bunch more images and train for longer!

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

    Hi @Nicholas, have another question:
    You mentioned in your tutorial a RUclips folder by the minute 24:16, within you install Jupyter and run a tutorial.
    I am not sure if I have understood this part correctly.
    Is the RUclips folder and the Jupyter tutorial installed altogether with the python -m pip install . command??
    Thanks again

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

    Hey @Nicholas,
    I've tried multiple times and it always says "Failed building wheel for pycocotools" when I start the installation. Any idea what the issue might be?

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

      Heya @kartik, is there a broader error?

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

      I do have the same error and am still trying to solve it. @kartik 1819 did you find a solution?

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

      @@michaels8371 Same here, any of you got anything?

    • @DanielRuiz-yn4pe
      @DanielRuiz-yn4pe 3 года назад +1

      Same :(

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

    please help! i get the following: AttributeError: module 'tensorflow' has no attribute 'gfile' . I did exactly the same you did. I have Python 3.7

  • @diegocaumont5677
    @diegocaumont5677 4 года назад +7

    Just a comment for your RUclips algorithm ;)

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

    Worked perfectly (no gpu). Thank you very much

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

      Hello friend, did you install the protocols?

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

      @@juancarloschizallambo6955 Yes, I just don't have any gpu on my machine that's why I mentioned (no gpu)

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

      Did anything change for you in terms of the installation and setup? ...or did you follow the video instructions in the same fashion? I ask because I do not have a GPU on my machine

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

      @@oneshellconsulting3931Hello friend I tell you to install all the steps except GPU what you will observe is the processing speed when the system trains it is not so fast it is slow but it goes well

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

      @@oneshellconsulting3931 Hello, you just need to skip the CUDNN part, on my machine with a GPU, I had to add the CUDNN part, but on my laptop without any GPU, I just skipped it. But training an object detection network without GPU can take a loooonnnnng time. Use transfer Learning as much as you can :]

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

    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 😊

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

      Heya @Harsh, that doesn't sound quite right 😅! Let's dig into it:
      1. When you start your training does it identify your GPU? And sucessfully load cudnn and cudart?
      2. Are you using an nVidia GPU?
      3. Did you install the TF versions using the object detection package? Did you have tf installed previously

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

      @@NicholasRenotte
      1. How can I know if identifies the GPU and load cudnn and cudart?
      2. Yes Nvidia Geforce GTX 1050
      3. I had tf installed previously but I did follow the 5th step(Install Tensorflow Object Detection API for use with Python) and did everything same.
      On installing Cuda at the finishing step I get this message
      {The installed version of Nsight Visual Studio Edition is newer than the one to be installed. To reinstall, or change the Nsight configuration, first uninstall Nsight and then reinstall.}

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

      @@vaibhavchotani6059
      1. You should see a line like this when you start training: ruclips.net/video/dZh_ps8gKgs/видео.html
      2. Looks like that GPU is fine: www.nvidia.com/en-us/geforce/forums/geforce-graphics-cards/5/251179/gtx-1050-and-cuda-8/
      3. Did you get any errors after triggering the install?
      Hmm, possibly uninstall Nsight and reinstall as part of your CUDA setup? Did you have Visual Studio already installed?

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

      Hi @@vaibhavchotani6059. May be it not actually for you, but for me help:
      1. Reinstall driver for gpu card (last version)
      2.Downgrade tensorflow-gpu version up 2.4.1 to 2.3.0

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

      Check for logs, if it is saying could not load cudart64.dll then your GPU is not being detected , to resolve that you have to install compatible versions of Tensorflow and Tensorflow-GPU.

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

    I have git installed in my system but still, the cp command is not working on the command prompt as well as ls command is also not working, is there may be any particular reason behind it??

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

      Try changing the cp command to copy and swapping all of the forward slashes with \\

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

      @@NicholasRenotte Thank you!!

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

      @@matthewthomas8508 anytime!

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

    Great content, but I am having major compatibility errors when executing "python -m pip install"

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

      Thanks @Reece, what's the error!

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

      @@NicholasRenotte It appears that I have now installed it correctly, but when I am trying to update Config for transfer learning "config = config_util.get_configs_from_pipeline_file(CONFIG_PATH)" I get this error "NameError: name 'config_util' is not defined"

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

      @@reecemoon8639 might have missed an import there. Double check you ran this cell after step 5. (config_util is in the second line):
      import tensorflow as tf
      from object_detection.utils import config_util
      from object_detection.protos import pipeline_pb2
      from google.protobuf import text_format

  • @HassnShahir
    @HassnShahir Год назад

    you are saving lives, maan ♥

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

    This what stack me in the middle of ur tutorial. Please help me
    D:\models
    esearch>cp object_detection/packages/tf2/setup.py .
    'cp' is not recognized as an internal or external command,
    operable program or batch file.

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

      Heya @Mirkena, try changing cp to copy and changing all the forward slashes to \\

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

      "copy object_detection\packages\tf2\setup.py .", this should probably work

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

      Install Git bash then it would be work

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

    Why are you navigating to the d: in the cmd? while you've installed everything on c:?

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

      Working drive is on D and I normally setup my virtual environments there!

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

    Hey Nicholas, thanks so much for this video.
    Nicholas, I have a problem during the installation. I'll try to explain you. Before to install the TensorFlow Object Detection, I've installed the TensorFlow 2.1 by source, due to the Compute Capability of my graphic card. When I've installed the TensorFlow Object Detection, my TF version was changed into 2.6, this version requires other CUDA configurations. I've reinstalled the TF 2.1 to run with CUDA, but the Object Detection API does not work. Do you have any suggestion to this issue ??? Because I tried many times, but without success. Thanks you for all your videos, this help-me a lot.

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

      Would ideally be looking at using TF 2.3.1 at a bare minimum and using the associated CUDA/cuDNN installs.

  • @lucifernoob6170
    @lucifernoob6170 5 месяцев назад

    17:36 The Additional Packages where they come from?

  • @emirgundogan6623
    @emirgundogan6623 9 месяцев назад +4

    tutorial 2024 pls

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

    after installing git bash it says 'cp' is not recognized as an internal or external command, and when i type copy it says The syntax of the command is incorrect.
    plz help me

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

      My bad @7 Seas Gamer, after updating it to copy, change all the forward slashes / to double backslashes \\. I've got this updated in the upcoming tutorial.

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

      @@NicholasRenotte It shows The syntax of the command is incorrect. Pls help sir.

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

      @@NicholasRenotte thanks done you are gr8

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

      @@CricinfoWithAB if you're running on windows can you change all the / to double backslashes e.g. \\ I've got this fixed in the code for the mega tutorial coming up.

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

      @@aniruddha683 got it working?

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

    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 🔥 .

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

      Heya @Harsh, I think i might do a tflite conversion video this week. Is the plan to deploy to a mobile device?

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

    models
    esearch>copy .object_detection/packages/tf2/setup.py .
    The system cannot find the file specified.
    The file is there but I can not fix this error. Could you please help? (23:00 in the video)

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

      There's a leading . in your command @Mehmet, you've got this:
      copy .object_detection/packages/tf2/setup.py .
      But it should be this:
      copy object_detection/packages/tf2/setup.py .

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

      @JONATHAN MOGOVAN can you try this, assuming you're running on windows yah? copy object_detection\packages\tf2/setup.py .

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

    Thank you for this amazing tutorial im just stuck at the last step where you copy the setup.py
    Tried to write copy but i had an error so i downloaded git bash and tried cp and that also did not work so i tried doing it in powershell it worked but there was some issues when i did the python pip install some libraries had issues like tensorflow 2.6.0 has requirement six~=1.15.0, but you have 1.12.0 which is incompatible and many others like this. Is this an issue because i used powershell?

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

      Shouldn't be, stick to copy by ensure all / are \ when calling from PS.

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

      @@NicholasRenotte thank you the object detection got installed but im having an issue with the TF records it does create records but they are empty and gives such an error
      Traceback (most recent call last):
      File "Tensorflow/scripts/generate_tfrecord.py", line 168, in
      tf.app.run()
      File "C:\Users\SAYTECH\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 40, in run
      _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
      File "C:\Users\SAYTECH\Anaconda3\lib\site-packages\absl\app.py", line 312, in run
      _run_main(main, args)
      File "C:\Users\SAYTECH\Anaconda3\lib\site-packages\absl\app.py", line 258, in _run_main
      sys.exit(main(argv))
      File "Tensorflow/scripts/generate_tfrecord.py", line 158, in main
      tf_example = create_tf_example(group, path)
      File "Tensorflow/scripts/generate_tfrecord.py", line 132, in create_tf_example
      classes.append(class_text_to_int(row['class']))
      File "Tensorflow/scripts/generate_tfrecord.py", line 101, in class_text_to_int
      return label_map_dict[row_label]
      KeyError: 'hello'

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

      I am facing the same problem how can I resolve it?

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

      @@rashmitiwari6490 which problem exactly? The TF records one or the copy of setup.py?

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

      Setup.py problem

  • @xinpengliu-n1t
    @xinpengliu-n1t 3 года назад

    Thanks have been expressed in the graduation thesis --- college students from China

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

      Awesome work guys!! What was your thesis on?

    • @xinpengliu-n1t
      @xinpengliu-n1t 3 года назад

      @@NicholasRenotte Target Detection Based on Jetson

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

    Hi Nicholas,
    I know this issue has been mentioned several times in the comment section but I tried a few things and it still doesn't works for me, so I was hoping for your advise on this.
    I think you made an error file to address such issues, but here I even tried chaging gfile to tf.io.gfile wherever it was there in the code but didn't help much.
    It could be due to the version of tensor flow 2.6.0 but I am not sure
    how to downgrade or whether that is the main issue or not, and if I try
    downgrading then which steps will I have to repeat from the setup?
    But, while this (-m install pip .) ran I got a number of errors, I didn't record them, most were yellow meaning asking to update the version and few were red (I don't remeber what the errors were, now).
    Anyhow, went ahead and ran Tutorial file in jupyter notebook, and at 2.Create TF records ,
    I got the following error :
    Traceback (most recent call last):
    File "Tensorflow/scripts/generate_tfrecord.py", line 61, in
    label_map = label_map_util.load_labelmap(args.labels_path)
    File "C:\Users\XXXX\anaconda3\lib\site-packages\object_detection\utils\label_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
    label_map = label_map_util.load_labelmap(args.labels_path)
    File "C:\Users\XXXX\anaconda3\lib\site-packages\object_detection\utils\label_map_util.py", line 132, in load_labelmap
    with tf.gfile.GFile(path, 'r') as fid:
    AttributeError: module 'tensorflow' has no attribute 'gfile'
    Finally got stuck here and couldn't continue further, please suggest something for this situation

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

      Once you've swapped out tf.gfile to tf.io.gfile. Restart your environment and reimport.

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

      @@NicholasRenotte nvm I tried a lot, but I'm just a beginner and I don't understand a lot of things.
      I'm quitting on this one..

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

    Hello Nicholas,
    I am glad to see that you are growing so fast. I believe you are a hidden gem for whose interested in Ai.
    I have a real quick question that, I want to disable the confidence percentage is shown on each bounding box. How can I deal with that?
    Best,

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

      I am leaving like on your other videos to break youtube algorithms...

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

      Update: I was able to figured it out. All i needed to add "skip_scores=True" into viz_utils.visualize_boxes_and_labels_on_image_array function. In case anyone needed.
      I want to hide it because some people think that it is a possibility of the bounding box rather it's just a softmax output.

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

      my next task is to generate coordinates from predicted images and crop the bounding boxes.

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

      Yessss! Awesome work @Mike, thank's for that tip btw. So you're cropping to a region of interest as well? Got a mega tutorial on OD coming up, 🤞 you'll enjoy it. I'll talk a lot about performance tuning and deployment as well!

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

      @@NicholasRenotte Actually I was going to crop it but then my advisor professor advised me to extract the coordinates to csv file only. But I am excited to watch your tutorial about cropping ROI. Keep up with good work. I love watching you. Thank you for everything.!!

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

    Can you do the same for MacOS pleaseeee?
    I've been doing a research project and been stuck with an error since the last week! Nobody is really doing/teaching it on Macs.
    from object_detection.utils import dataset_util, label_map_util #this is line 30
    Traceback (most recent call last):
    File "/content/generate_tfrecord.py", line 30, in
    from object_detection.utils import dataset_util, label_map_util
    ModuleNotFoundError: No module named 'object_detection'
    I've tried changing the path in the terminal and a lot more following the threads, but I really cannot solve this issue. If someone can help me, I'll be really thankful!
    MacOS Catalina 10.15.3
    Doing it on Google Collab

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

      Heya @Siddarth, just checking are you running the code on Jupyter on the Mac or in Colab?

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

      @@NicholasRenotte Collab on the Mac... but I’m getting a PIL error in Jupyter

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

      @@NicholasRenotte I have changed the path, installed dependencies but I'm still getting errors.
      I have been stuck with this since a week, and need to submit this project (and paper) by the weekend... Can you please help me?
      (Maybe we can have a call)

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

      @@sid4752 sure, what errors are you seeing now?!

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

      @@NicholasRenotte Hey Nick, thank you so much for getting back to every message of mine my man.
      I’ve heard that there are issues in general with object detection api for MacOS. (In their website they only mentioned Windows/Linux, I should’ve noticed that first).
      So, I actually left that project and worked with Keras and CNN, and I now have a model with 99% accuracy, which is perfect for my research project.
      Can you make your further videos using MacOS or a Linux environment? (As windows is pretty straightforward to follow anyway)
      God bless you and your work! 🙏
      I can’t believe you’re replying to every message and helping us learn! Thank you!
      (And has anyone told you, you look like Chris Lynn? ;) )

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

    Hi Nicholas, you know that this video has got outdated, but is really helpful in terms of what applications to install sequentially. Can you atleast share what versions of all the applications above needs to be installed today for the latest TF OD?

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

      Hmmm, what makes you say it's outdated, as in the version of Tensorflow?

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

      @@NicholasRenotte Yes the version of Tensorflow. You see after installing the setup.py , and again dowgrading to Tensorflow 2.3.1 doesn't actually make it work properly as you recommended in some comment before.
      Hence, I request you to share all the compatible versions of Anaconda, CUDA, CUDA_DNN, etc. for the latest version of Tensorflow 2.4.1
      These versions of the softwares used in the video no longer are compatible for installing TF 2.4.1.

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

      @@binayakpanda5749 Is their a solution. I have the issue that it doesn't work this way.

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

    i am having a problem in building wheel for opencv-python (pep 517) while installing tensorflow

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

    Hi thanks for the video, I had to use absolute paths in order to get it to work, just in case some one gets issues using the jupyter notebook

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

      Thanks so much @Ronald, awesome for sharing!

    • @MS-rw3rh
      @MS-rw3rh 3 года назад +1

      I am having problems Please explain more

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

      @@MS-rw3rh heya, want to share what's happening?

    • @MS-rw3rh
      @MS-rw3rh 3 года назад

      @@NicholasRenotte My terminal shows this: ' None of the MLIR optimization passes are enabled'. I am stuck. It is not letting the model train. In your video, it shows a loss. I have been waiting for 2 days. Please help me.

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

    Great content!! I'm now setting things up, but I would like to know what you recommend for these ERRORs:

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

      ERROR: astroid 2.2.5 requires typed-ast>=1.3.0; implementation_name == "cpython", which is not installed.
      ERROR: httplib2 0.19.1 has requirement pyparsing=2.4.2, but you'll have pyparsing 2.4.0 which is incompatible.
      ERROR: pyarrow 4.0.1 has requirement numpy>=1.16.6, but you'll have numpy 1.16.4 which is incompatible.
      ERROR: apache-beam 2.32.0 has requirement avro-python3!=1.9.2,=1.8.1, but you'll have avro-python3 1.10.2 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: sacrebleu 2.0.0 has requirement numpy>=1.17, but you'll have numpy 1.16.4 which is incompatible.
      ERROR: tensorflow-metadata 1.2.0 has requirement absl-py=0.9, but you'll have absl-py 0.13.0 which is incompatible.
      ERROR: tensorboard 2.6.0 has requirement google-auth=1.6.3, but you'll have google-auth 2.1.0 which is incompatible.
      ERROR: tensorflow 2.6.0 has requirement numpy~=1.19.2, but you'll have numpy 1.16.4 which is incompatible.
      ERROR: tensorflow 2.6.0 has requirement six~=1.15.0, but you'll have six 1.12.0 which is incompatible.

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

      I'm not sure if it's because I had installed some of these things before. NOTE: - Protoc version changed (3.18 instead of 3.14); for the rest I used the recommended.

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

      What version of Python are you using? Suggest 3.7.3 for a stable implementation when using the versions of libs I recommend in the vid.

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

      @@NicholasRenotte That's the one I'm using! I followed the rest of the steps and managed to develop the detector (SLR system), but still not sure if everything is working as it should.
      For example, is there a way to determine whether my GPU is the one performing the job? (By code, I'd say)
      General question: Is there some instruction to see a list of the layers used by a model or should I look for that information within documentation?
      Thanks for answering and for your dedication!!

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

    Hi, in 2.07 I cannot use the cp or copy command it give me syntax error for "copy" and it cannot recognize "cp"

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

    I m going through all your object detection videos , like the mask one and also hand sign , the next major step is to deploy this model using fastapi in AWS EC2, for real time detection , wouldn't that be amazing

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

    python -m pip install . this command doesn't work properly. can you give any idea?

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

      What folder are you running it from? You should ideally be in the object detection folder when you're running the install :)

  • @allea-zb7kl
    @allea-zb7kl 8 месяцев назад

    From the training process, can we see the weight and bias results for each layer that will be used for test data?

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

    I could not get the object detection API installed properly after the protoc command in the models/research folder. It appears the protoc command ran in powershell without problem. I had previously gotten the cudatoolkit 10.1 and cudnn 7.6.5 DLLs linking nicely in the short test commands like the import tensorflow as tf and perform some operation on it. My previous tensorflow pip package was 2.2.0 as instructed in the requirements. So then I followed the official guide tensorflow object detect api, and entered these commands cp object_detection/packages/tf2/setup.py .
    python -m pip install .
    After that install command from my anaconda env prompt, my conda env went a little bit haywire in the sense that tensorflow updated itself automatically to tensorflow 2.4.1 and also some other tf-models package or whatever. Now my cudatoolkit and cudnn is no longer working because it expects cuda 11.1 or something like that more advanced version. Im not sure should I actually uninstall those old Cuda and cudnn from nvidia and update it to 11.1 version cudatoolkit and corresponding cudnn? The tensorflow api and github do say that 2.2.0 is the latest stable version, so Id like to keep at the stable version. doees anyone have any tips? the model_builder_tf2_test.py does seem to work but no cuda DLL because the version is not incompatible because tensorflow 2.4.1

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

      Heya @Lauri, a little delayed, I'm going to be releasing a new walkthrough that simplifies the install in 2 days with new code. Should simplify the install a heap.

    • @凯乐-z9i
      @凯乐-z9i 3 года назад

      is this problem solved? im facing the same issue ..

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

    hi nicholas, I'm facing a problem at the final step "python -m pip install ." throwing an error "ERROR: Could not install packages due to an OSError: [WinError 206] The filename or extension is too long", Can you help me resolve it :)

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

    Im getting an error in last step of command prompt showing not git available ...could u please help me find out..

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

      Double check you've got git for windows installed @manohar gitforwindows.org/

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

    In 22:10 when u am trying to copy the setup to directory.. I am getting an error called Syntax of the command is incorrect.
    I have installed gitbash.. I tried both cp and copy.
    When i am using copy its showing Syntax of the command is incorrect

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

      Heya @Md Saqlin Mushtaq, if you're on windows try changing the command to copy and change all of the forward slashes to \\

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

      @@NicholasRenotte thanks mate.. I was using Windows 8, i think that is why i was facing such problem and git was not installing correctly, its running fine in windows 10. Thank you again 🙏

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

      @@otakuguild5603 ah, interesting. Awesome work though!!

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

    cant find version 3.10 of python when installing it through anaconda and Ive already installed python 3.10. What should i do ?

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

      Try using an older version of Python, I used 3.7.3 here. Haven't tested on the latest tbh.

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

    Not able to setup and complete the project , tried more than 50 times.. lots of error comes in eac step we go ahead.. please help me

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

    On the last step of testing the installation, even though it recognises my gpu, it stops at ''2021-04-11 21:43:14.235759: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:116] None of the MLIR optimization passes are enabled (registered 2)'', and doesn't continue the training process.

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

      Heya @Pepper Man, this particular error is just part of the information log. That being said if the training is stuck, here's what I'd recommend.
      1. Stop all Jupyter Servers
      2. Clear the my_ssd_mobnet folder of everything by the pipeline.config
      3. Kick training off again
      4. If you're still getting errors, try a fresh install, perhaps with a virtual environment to minimize conflicts (e.g. ruclips.net/video/yqkISICHH-U/видео.html)

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

    Anaconda can’t install tensorflow with opencv! Unsatisfableerror! How to fix it?

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

    i try to install last cmd but opencv is't install what can i do correct version in this project to install

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

      Heya @mani, possibly try a clean install inside of a Virtual Environment. If after installing it's still not appearing, try restarting the notebook!

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

    @22:15 "D:\models
    esearch>copy object_detection/packages/tf2/setup.py ."
    the code of copying is giveing me a syntax error: The syntax of the command is incorrect.
    installed gitbash and trie it with "cp" instead of "copy" still got the same error
    any idea what am i doing wrong?

    • @laraibamjad9275
      @laraibamjad9275 6 месяцев назад +1

      Write it as D:\models
      esearch> copy object_detection\packages\tf2\setup.py .

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

    Thank you so much. This video is a live savior from that nasty error

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

    I didn't install CUDA and CUDNN because my laptop doesn't have NVIDIA, but when I run this command "python -m pip install" everything looks fine. but an error message appears.
    What should I do ??
    Successfully built object-detection pycocotools seqeval
    ERROR: astroid 2.2.5 requires typed-ast>=1.3.0; implementation_name == "cpython", which is not installed.
    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-metadata 0.26.0 has requirement absl-py=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=1.13.0, but you'll have six 1.12.0 which is incompatible.
    ERROR: google-cloud-bigquery 2.6.1 has requirement six=1.13.0, but you'll have six 1.12.0 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.

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

      Can you try downgrading to Tensorflow 2.3.1. Run pip install -U tensorflow==2.3.1.

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

      ​@@NicholasRenotte everything is done. I just need to install this, no need to install tensorflow==2.3.1.
      pip install grpcio == 1.32.0
      pip install numpy == 1.19.2
      pip install six == 1.15.0
      Thank You

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

      @@dwikiahmamaulana2176 awesome stuff! Great work!!

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

    @Nicholas Renotte
    I have the same specifications as yours but my system does not run on GPU for training. its rather showing that cudaart64_110.dll . I have 10.1 . Help me please to solve this error.

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

      Heya @Bro, this is possibly because you're using Tensorflow 2.4.0 instead of 2.3.1. You can either install CUDA 11 and the matching CUDNN version or downgrade Tensorflow to 2.3.1.

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

      And also update video card driver

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

    And when i want to install cuda, it says that no supported version of visual studio was found. I've already installed a the Microsoft visual Studio as mention in 2nd step but still..

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

    facing error in step 5 its say install tensorflow
    followed all your steps correctly twice but it still says no module found tensorflow
    should i have to install tensorflow seperatly

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

      Heya @Bhavishya, are you installing it into the same kernel that you're running your notebook in? What do you get if you run !pip list from your notebook?

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

    i have 32 bit anacoda so am not able to install tensorflow package.please help me to install tensorflow package

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

    Hi I followed all the steps in this tutorial. But when i ran the python command in the end, it seems to show "cudart64_110.dll not found" but we downloaded 10.1 version right? How do I solve this?

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

      Heya @gayathri, this might mean you're using a different version of Tensorflow (most likely 2.4.x). Try changing it to 2.3.1 and it should work!

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

      @@NicholasRenotte thankyouu💕

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

    Hi, I am not able to run this command it cp object_detection/packages/tf2/setup.py .
    It says the cp is not recognized as internal or external command.

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

      Heya @Vishnuprasad, if you're on a windows machine switch cp to copy and change all / to \\ should solve that error!

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

      @@NicholasRenotte helpful

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

    After running 'python -m pip install .', first error started when it was preparing wheels, and then it tried to build dependencies and installing scipy several times, always getting errors and trying to install a previous version. Anyone can help me?

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

      Heya @Thiago, was there a particular dependency it was failing at?

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

      @@NicholasRenotte Hey man! It seems the scipy. It try to install it and then a big error appear in prompt, and them try to install a previous version of it, but never succeed

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

      @@thiagocvasconcelos hmmm, can you share the error with me. Can help you dig into it?

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

      Did you solve the problem? Since I am getting the exact same error :/

  • @geshanmahawatte7301
    @geshanmahawatte7301 10 месяцев назад

    when installing dependencies it says the version is not satisfied with the requirement. what should i do

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

    Hi Nicholas , thank you for this video ,, I have error in python -m pip install the error is ERROR: Could not build wheels for opencv-python, opencv-python-headless which use PEP 517 and cannot be installed directly what i have to do ,, can you help me

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

    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.

    • @d63810728
      @d63810728 4 года назад +15

      i have the same problem, then i used copy instead of cp, the error messaeg was the syntax of the command is incorrect. This is after I installed git bash.. so i'm stuck here as well..... i reversed the "/" into "\" and used copy. but once i got through, i encountered an error in the tutorial.ipynb....
      D:\models
      esearch>copy object_detection/packages/tf2/setup.py
      The syntax of the command is incorrect.
      D:\models
      esearch>copy object_detection/packages/tf2/setup.py .
      The syntax of the command is incorrect.
      D:\models
      esearch>copy object_detection\packages\tf2\setup.py .
      Overwrite .\setup.py? (Yes/No/All): Yes
      1 file(s) copied.

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

      @@d63810728 it worked thank you so much

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

      Coming through in the clutch @Daniel, awesome work! How did you go @Rakshit?

    • @王玟方
      @王玟方 4 года назад

      @@d63810728 thanks you so much~

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

      @@d63810728 Thank you so much man i was stuck on this step for 20 mins

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

    Bro I have intel graphics card what can I do for install tensorflow.......

  • @abaan.a_
    @abaan.a_ 2 года назад +1

    Thank for training!
    cp object_detection/packages/tf2/setup.py . is not recognized file program. i got it .. How to solve.. please help me

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

      me too :')

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

      Just copy it manually, if the command doesn't work can just manually copy my guys!

    • @abaan.a_
      @abaan.a_ 2 года назад

      @@NicholasRenotte Yes I followed your video on how to install step - step.
      I was able to make it work in 2 hrs. but still, error and can't.. 😓
      please, you will upload to again Install Tensor flow Object Detection From Scratch in 5 Steps | Python Deep Learning" 2022

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

    keep on, very well explaned

  • @kapilpal9608
    @kapilpal9608 Год назад

    'git' is not recognized as an internal or external command,
    operable program or batch file.it's showing this in cmd when i tried to install tensor flow api

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

    It says Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found altough I have followed you and the path on environment variables is also added to the bin of the CUDA folder

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

      Just checking, you installed CUDA 11? This indicates that your TF version is looking for CUDA 11 and it wasn't found!

  • @QuanLe-xy7uh
    @QuanLe-xy7uh Год назад

    i got Getting requirements to build wheel did not run successfully. what can i do to resolve this? this is when i tried to do the last command in tensorflow install

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

    while installing in the last step while copying the setup.py in my windows machine it is showing wrong syntax i am using the comand same as you told with using copy instead of cp but still not working

  • @Sanjay-cl5ct
    @Sanjay-cl5ct 9 месяцев назад +1

    ERROR: Failed building wheel for grpcio-tools pls help

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

    Really great video and simple yet straight to the point, just wanted to ask by any chance if my GPU is AMD what is the alternative for CUDA and CUDNN

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

      I haven't tested it out but it should be tensorflow-rocm which leverages AMD acceleration.

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

    Hi @Nicholas
    I have completed 4 steps, while performing step 5 when i run this command "protoc object_detection/protos/*.proto --python_out=." i am getting output as ./object_detection/protos/anchor_generator_pb2.py: Permission denied.

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

      Could you try running with elevated permissions @Minal?

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

      @@NicholasRenotte heyy yes i had not run cmd as administrator that is why i was getting this issue. Thankyou so much,your videos insipire me❤

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

      @@minalsawant1443 sooo good to hear! Glad you got it working!!

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

      @@NicholasRenotte sir i have a question why mine got "The syntax of the command is incorrect."? thank you

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

    OH MY GOD YOU ARE A SAVIOR !!!!!!!

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

    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

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

      Heya @Sushma, can you try installing GitBash if you're on a windows machine?

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

      Thank you sir. I installed git bash but still getting same error.

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

      @@sushmanaik2228 hmm, weird, can you try restarting your notebook or command prompt?

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

      @@NicholasRenotte hello sir im getting the same error after reinstalling gitbash and restarting command prompt and copy command dosent work...says syntax is incorrect

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

      @@blazed9389 can you paste your command here for me?

  • @woolyLinks8072
    @woolyLinks8072 Год назад

    hey guys, im brand new to python. for the tensorflow install cmds dont work right for me. i created a workspace folder. made a Venv (virtual environment) and did : pip install tensorflow

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

    Help!
    I'm not sure what protocol buffer to currently download since there are new ones since you uploaded this video.
    I'm using windows

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

    ImportError: cannot import name 'model_lib_v2' from 'object_detection'

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

      Heya @Harish, have you run through the full install?

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

      i received that error when i try to train on colab, were you able to fix it?

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

      Heya @@mikecooper8142 have you run through the full install? Also check this out it shows how to install on Colab: colab.research.google.com/github/cloud-annotations/google-colab-training/blob/master/object_detection.ipynb#scrollTo=Wv5h2bwBVO0V

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

    Hello im stuck in api part im gettin "object_detection/protos/*.proto: No such file or directory". Could you pls help me out ?

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

      Heya @Sezer, try running through the installation from the 5hr tutorial. I cleaned up the protoc install.

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

      @@NicholasRenotte okay thx i also found a solution, instead of running the code as “*.proto” i should have done Run the code one by one ( for whole .py files)

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

    how to install Microsoft Visual Studio and C++ Build Tools for mac?

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

    Sir, my GPU is intell graphics HD 5500 what is the alternative for CUDA and CUDNN.
    and what changes i need to do in the code ?? to run it without errors

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

      Sir one more doubt the protoc on the git hub is protoc-3.13.3 but you have used 3.14 is that fine ??

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

      Unfortunately there isn't one!

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

      I also have intel graphics card what can I do bro pls explain.......

  • @SK-fi7oi
    @SK-fi7oi 3 года назад +1

    hello Nicholas, i have tensorflow 2.5 installed and i get this error "AttributeError: module 'tensorflow' has no attribute 'gfile'" when i try to use generate_tfrecord.py
    . Did the problem comes from the version of tensorflow??

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

      All good! Try replacing references to tf.gfile with tf.io.gfile and you should be good to go!

    • @SK-fi7oi
      @SK-fi7oi 3 года назад

      @@NicholasRenotte thank you for your response but I have already did it and and I still get this error :
      \AppData\Roaming\Python\Python38\site-packages\object_detection\utils\label_map_util.py", line 132, in load_labelmap
      with tf.gfile.GFile(path, 'r') as fid:
      AttributeError: module 'tensorflow' has no attribute 'gfile'

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

    thank you so much, excellent content!

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

    'utf-8' codec can't decode byte 0xc1 in position 103: invalid start byte When I execute jupyter notebook below
    config = config_util.get_configs_from_pipeline_file(CONFIG_PATH)
    what maybe the problem...? any guess?

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

    After running 'python -m pip install . ' saying python was not found, run without arguments to install from Microsoft Store, or disable this shortcut from settings

  • @dareanddashing2871
    @dareanddashing2871 Год назад

    thank you for your tutorial sir but for protoc in github we cant able to find out windows version. what can i do now

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

    At 23:19 in the video I get the error ERROR: Could not install packages due to an OSError: [WinError 3] The system cannot find the path specified: 'C:\\Users\albornolab\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\tensorflow_model_optimization\\python\\core\\api\\quantization\\keras\\experimental\\default_n_bit\\default_n_bit_transforms'

  • @AkashGupta-zd1tz
    @AkashGupta-zd1tz 3 года назад +1

    Thank you soo much mate:)

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

    Protoc is not recognised ….. even after i added it into the path

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

    i tried my best but cp command not working at my computer, please give me details solution

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

      Switch up cp to copy and should be good to go!