8

I have been experimenting trying to solve it for weeks, I am using Google colab since I got a macbook with an apple chip that is not supported by TF. Here is the google colab link with commenting access. click here

Any help is appreciated, and thank you in advance!

I have tried using older versions of TF but nothing changed, I have the TF record and training pipeline files ready.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Ali
  • 115
  • 1
  • 1
  • 2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Apr 16 '23 at 15:08
  • I'm assuming you are asking about one of the Tensorflow requirements, you might need to install some software to get it working. – Garlic Bread Express Apr 16 '23 at 16:04
  • No, I need to solve the error. Althought tensorRT is installed. 2023-04-18 10:43:29.342280: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT Traceback (most recent call last): File "/content/gdrive/MyDrive/TensorFlow/models/research/object_detection/builders/model_builder_tf2_test.py", line 24, in – Ali Apr 18 '23 at 10:45
  • I am facing the same problem, have you solved it @Ali? – Sosy May 25 '23 at 16:47
  • Has anyone had this problem on AWS? – George Adams Jul 08 '23 at 22:10

1 Answers1

15

Try to install pip install tensorrt.

Perhaps you need to read this> How do I install Python packages in Google's Colab?

And check if a GPU is allocated with google colab.

j35t3r
  • 1,254
  • 2
  • 19
  • 53
  • Thank you for the answer, now I have one more thing to experiment with rather than being completely lost haha, but sadly I still have the same error. Runtime is set on GPU T4. 2023-04-18 10:43:29.342280:tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT Traceback (most recent call last): File "/content/gdrive/MyDrive/TensorFlow/models/research/object_detection/builders/model_builder_tf2_test.py", line 24, in – Ali Apr 18 '23 at 10:44
  • check the tensorflow version and the tensor rt version. – j35t3r Apr 19 '23 at 09:24
  • Name: tensorrt Version: 8.6.0 Name: tensorflow Version: 2.12.0 Are they compatible ? – Ali Apr 19 '23 at 10:55
  • try to reinstall tensorflow and play around... – j35t3r Apr 19 '23 at 14:09
  • I have already tried it few time, thank you. – Ali Apr 19 '23 at 15:07
  • cant you create a google colab environment and share it for us? – j35t3r Apr 20 '23 at 06:32
  • pip install nvidia-pyindex pip install nvidia-tensorrt or ` pip3 install tensorrt-5.0.2.6-py2.py3-none-any.whl pip3 install pycuda ` pip is usally for python2 and pip3 is python3 – j35t3r Apr 20 '23 at 06:33
  • here is the google colab: https://colab.research.google.com/drive/1yAr_6q-zEoT-ohdg3ma3j52TDOgd4GBE?usp=sharing. Thank you i will try it now. – Ali Apr 20 '23 at 10:12
  • from the `oontrib` errors I would say that you don't have the exact tensorflow version number. Contrib was used in an earlier version and you install the latest tensorflow version. – j35t3r Apr 21 '23 at 13:05