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.
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)
@@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
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
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!
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 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.
@@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.
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
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!!
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
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 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
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
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.. :-|
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.
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."
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.
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
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.
@@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.
@@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!
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
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?
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
@@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
@@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 :]
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 😊
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
@@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.}
@@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?
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
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.
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 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"
@@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
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.
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.
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
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 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.
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 🔥 .
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)
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 .
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 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'
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
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,
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.
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!
@@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.!!
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 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 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? ;) )
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 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.
@@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.
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.
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 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!!
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
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
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.
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 :)
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 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 🙏
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.
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)
@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?
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 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
@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.
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.
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..
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
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?
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?
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 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
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
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.
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.
@@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
'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
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
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
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
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 hello sir im getting the same error after reinstalling gitbash and restarting command prompt and copy command dosent work...says syntax is incorrect
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
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
@@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)
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
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 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'
'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?
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
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'
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.
Awesome work @Alvaro, thanks for sharing!
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)
@@brokeunistudent2474 hmmm, are you using conda install or pip install?
@@brokeunistudent2474 That's because you haven't added the nvidia channel to anaconda. But as long as it works, right.
@@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
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
Anytime @Sharveen, so glad it was useful!!
@@NicholasRenotte Real lifesaver, if I wait for my school to reply my email on this issue, i believe i will 100% fail my course
tutorial for 2024 versions pls
Tried it, according to the website guide and chatgpt, a lot of errors so far, I am having zero success in setting them up.
yes, i tried this on 2024 the build from research script didnt work, depedencies didnt match each other :(
@@imamhanafi7458 google already stopped supporting tensorflow, so yeah might as well go PYTORCH
@@imamhanafi7458 What did you do bro
@@imamhanafi7458 What did you do bro? Is it resolved?
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
Thanks so much @Mark!! Glad you got it up and running!
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!
Thanks a billion @Dan 🙏🙏!
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
@@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?
@@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.
@@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.
I think the hardest part of any project is installing all the needed packages! it takes so mush time every single time!
Thanks for this clear and straightforward tutorial! Great work
Thanks so much @Matthäus 🙏!
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
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!!
Thanks for sharing!
Thank you bro!
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
ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml'
HELP :S
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.
Hmmm, was there a larger error @A.Z A.Z.?
@@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
@@a.za.z1445 anytime, let me know how you go!
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
You need to add it on eveviroment path variable
you are a legend man. Keep up the great work.
Thanks so much @Efe, definitely!
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.. :-|
Have you installed from scratch? So fresh install of Python etc?
@@NicholasRenotte yes i have installed everything from scratch
@@javedbaig6563 can you check what version of Tensorflow you are using? Run this inside of a notebook:
import tensorflow as tf
print(tf.__version__)
@@NicholasRenotte 2.3.1
im encountering the exact same error. Could you solve it?
Thank you and take a lots of love brother. Keep doing this great works.
Thank you sooo much @Sudipta! 🙏
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.
I'm having the same problem. Does anyone know how to fix this please?
Same
yes same error.Suggest a way to fix this
Sí, el mismo error.
same
At 20:10 should we navigate to D drive or we can also paste the clone model with out navigating to D drive
Hi! I am currently using windows 11, what CUDA and CUDNN version do you recommend to download? Thank you
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."
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.
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
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.
@@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.
@@eldridgerexroy awesome! Is it just not performing or you're getting errors?
@@NicholasRenotte not performing, it detect only no mask and the other is not displaying, i use 70 images, 50 train 20 test
@@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!
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
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?
Heya @kartik, is there a broader error?
I do have the same error and am still trying to solve it. @kartik 1819 did you find a solution?
@@michaels8371 Same here, any of you got anything?
Same :(
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
Just a comment for your RUclips algorithm ;)
YEAHHHYA Thanks @Diego!
Worked perfectly (no gpu). Thank you very much
Hello friend, did you install the protocols?
@@juancarloschizallambo6955 Yes, I just don't have any gpu on my machine that's why I mentioned (no gpu)
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
@@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
@@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 :]
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 😊
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
@@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.}
@@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?
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
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.
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??
Try changing the cp command to copy and swapping all of the forward slashes with \\
@@NicholasRenotte Thank you!!
@@matthewthomas8508 anytime!
Great content, but I am having major compatibility errors when executing "python -m pip install"
Thanks @Reece, what's the error!
@@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"
@@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
you are saving lives, maan ♥
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.
Heya @Mirkena, try changing cp to copy and changing all the forward slashes to \\
"copy object_detection\packages\tf2\setup.py .", this should probably work
Install Git bash then it would be work
Why are you navigating to the d: in the cmd? while you've installed everything on c:?
Working drive is on D and I normally setup my virtual environments there!
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.
Would ideally be looking at using TF 2.3.1 at a bare minimum and using the associated CUDA/cuDNN installs.
17:36 The Additional Packages where they come from?
tutorial 2024 pls
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
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.
@@NicholasRenotte It shows The syntax of the command is incorrect. Pls help sir.
@@NicholasRenotte thanks done you are gr8
@@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.
@@aniruddha683 got it working?
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 🔥 .
Heya @Harsh, I think i might do a tflite conversion video this week. Is the plan to deploy to a mobile device?
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)
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 .
@JONATHAN MOGOVAN can you try this, assuming you're running on windows yah? copy object_detection\packages\tf2/setup.py .
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?
Shouldn't be, stick to copy by ensure all / are \ when calling from PS.
@@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'
I am facing the same problem how can I resolve it?
@@rashmitiwari6490 which problem exactly? The TF records one or the copy of setup.py?
Setup.py problem
Thanks have been expressed in the graduation thesis --- college students from China
Awesome work guys!! What was your thesis on?
@@NicholasRenotte Target Detection Based on Jetson
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
Once you've swapped out tf.gfile to tf.io.gfile. Restart your environment and reimport.
@@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..
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,
I am leaving like on your other videos to break youtube algorithms...
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.
my next task is to generate coordinates from predicted images and crop the bounding boxes.
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!
@@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.!!
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
Heya @Siddarth, just checking are you running the code on Jupyter on the Mac or in Colab?
@@NicholasRenotte Collab on the Mac... but I’m getting a PIL error in Jupyter
@@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)
@@sid4752 sure, what errors are you seeing now?!
@@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? ;) )
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?
Hmmm, what makes you say it's outdated, as in the version of Tensorflow?
@@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.
@@binayakpanda5749 Is their a solution. I have the issue that it doesn't work this way.
i am having a problem in building wheel for opencv-python (pep 517) while installing tensorflow
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
Thanks so much @Ronald, awesome for sharing!
I am having problems Please explain more
@@MS-rw3rh heya, want to share what's happening?
@@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.
Great content!! I'm now setting things up, but I would like to know what you recommend for these ERRORs:
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.
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.
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.
@@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!!
Hi, in 2.07 I cannot use the cp or copy command it give me syntax error for "copy" and it cannot recognize "cp"
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
Yah, just added FastApi to the list!
python -m pip install . this command doesn't work properly. can you give any idea?
What folder are you running it from? You should ideally be in the object detection folder when you're running the install :)
From the training process, can we see the weight and bias results for each layer that will be used for test data?
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
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.
is this problem solved? im facing the same issue ..
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 :)
Im getting an error in last step of command prompt showing not git available ...could u please help me find out..
Double check you've got git for windows installed @manohar gitforwindows.org/
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
Heya @Md Saqlin Mushtaq, if you're on windows try changing the command to copy and change all of the forward slashes to \\
@@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 🙏
@@otakuguild5603 ah, interesting. Awesome work though!!
cant find version 3.10 of python when installing it through anaconda and Ive already installed python 3.10. What should i do ?
Try using an older version of Python, I used 3.7.3 here. Haven't tested on the latest tbh.
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
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.
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)
Anaconda can’t install tensorflow with opencv! Unsatisfableerror! How to fix it?
i try to install last cmd but opencv is't install what can i do correct version in this project to install
Heya @mani, possibly try a clean install inside of a Virtual Environment. If after installing it's still not appearing, try restarting the notebook!
@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?
Write it as D:\models
esearch> copy object_detection\packages\tf2\setup.py .
Thank you so much. This video is a live savior from that nasty error
it works?
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.
Can you try downgrading to Tensorflow 2.3.1. Run pip install -U tensorflow==2.3.1.
@@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
@@dwikiahmamaulana2176 awesome stuff! Great work!!
@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.
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.
And also update video card driver
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..
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
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?
i have 32 bit anacoda so am not able to install tensorflow package.please help me to install tensorflow package
Can you try reinstalling the 64bit version?
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?
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!
@@NicholasRenotte thankyouu💕
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.
Heya @Vishnuprasad, if you're on a windows machine switch cp to copy and change all / to \\ should solve that error!
@@NicholasRenotte helpful
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?
Heya @Thiago, was there a particular dependency it was failing at?
@@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
@@thiagocvasconcelos hmmm, can you share the error with me. Can help you dig into it?
Did you solve the problem? Since I am getting the exact same error :/
when installing dependencies it says the version is not satisfied with the requirement. what should i do
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
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.
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.
@@d63810728 it worked thank you so much
Coming through in the clutch @Daniel, awesome work! How did you go @Rakshit?
@@d63810728 thanks you so much~
@@d63810728 Thank you so much man i was stuck on this step for 20 mins
Bro I have intel graphics card what can I do for install tensorflow.......
Run on CPU is the only option atm.
Thank for training!
cp object_detection/packages/tf2/setup.py . is not recognized file program. i got it .. How to solve.. please help me
me too :')
Just copy it manually, if the command doesn't work can just manually copy my guys!
@@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
keep on, very well explaned
'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
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
Just checking, you installed CUDA 11? This indicates that your TF version is looking for CUDA 11 and it wasn't found!
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
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
ERROR: Failed building wheel for grpcio-tools pls help
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
I haven't tested it out but it should be tensorflow-rocm which leverages AMD acceleration.
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.
Could you try running with elevated permissions @Minal?
@@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❤
@@minalsawant1443 sooo good to hear! Glad you got it working!!
@@NicholasRenotte sir i have a question why mine got "The syntax of the command is incorrect."? thank you
OH MY GOD YOU ARE A SAVIOR !!!!!!!
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
Heya @Sushma, can you try installing GitBash if you're on a windows machine?
Thank you sir. I installed git bash but still getting same error.
@@sushmanaik2228 hmm, weird, can you try restarting your notebook or command prompt?
@@NicholasRenotte hello sir im getting the same error after reinstalling gitbash and restarting command prompt and copy command dosent work...says syntax is incorrect
@@blazed9389 can you paste your command here for me?
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
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
ImportError: cannot import name 'model_lib_v2' from 'object_detection'
Heya @Harish, have you run through the full install?
i received that error when i try to train on colab, were you able to fix it?
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
Hello im stuck in api part im gettin "object_detection/protos/*.proto: No such file or directory". Could you pls help me out ?
Heya @Sezer, try running through the installation from the 5hr tutorial. I cleaned up the protoc install.
@@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)
how to install Microsoft Visual Studio and C++ Build Tools for mac?
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
Sir one more doubt the protoc on the git hub is protoc-3.13.3 but you have used 3.14 is that fine ??
Unfortunately there isn't one!
I also have intel graphics card what can I do bro pls explain.......
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??
All good! Try replacing references to tf.gfile with tf.io.gfile and you should be good to go!
@@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'
thank you so much, excellent content!
Thanks a ton @Nelson!
'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?
Using non-standard chacters?
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
thank you for your tutorial sir but for protoc in github we cant able to find out windows version. what can i do now
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'
Thank you soo much mate:)
Protoc is not recognised ….. even after i added it into the path
i tried my best but cp command not working at my computer, please give me details solution
Switch up cp to copy and should be good to go!