Some weeks ago I was running without any problems in google colab the notebooks for training: yolo_v4, yolo_v4tiny, yolo_v3 and ssd (TAO Toolkit | NVIDIA NGC). Now, I am running the same notebooks from the same github repository without making any change and tao setup is not performed properly. Now I cannot run any model. When I run “https://github.com/NVIDIA-AI-IOT/nvidia-tao/blob/main/tensorflow/setup_env.sh” I got next messages
Successfully built addict future mpi4py posix-ipc prettytable pycocotools-fix pycuda recordclass retrying seaborn semver simplejson tabulate DLLogger promise pytools fire pathtools termcolor
Installing collected packages: zipp, typing-extensions, six, ipython-genutils, decorator, traitlets, setuptools, pyrsistent, importlib-metadata, attrs, wcwidth, tornado, pyzmq, python-dateutil, pyparsing, pycparser, ptyprocess, parso, nest-asyncio, jupyter-core, jsonschema, entrypoints, webencodings, pygments, prompt-toolkit, pickleshare, pexpect, packaging, nbformat, MarkupSafe, jupyter-client, jedi, cffi, backcall, async-generator, testpath, pandocfilters, nbclient, mistune, jupyterlab-pygments, jinja2, ipython, defusedxml, dataclasses, bleach, argon2-cffi-bindings, terminado, Send2Trash, prometheus-client, numpy, nbconvert, ipykernel, argon2-cffi, urllib3, smmap, protobuf, notebook, jmespath, h5py, docutils, widgetsnbextension, termcolor, scipy, qtpy, PyYAML, platformdirs, Pillow, orderedmultidict, onnx, kiwisolver, keras-preprocessing, keras-applications, jupyterlab-widgets, idna, gitdb, cycler, chardet, certifi, botocore, uritemplate, tifffile, threadpoolctl, shortuuid, setproctitle, sentry-sdk, s3transfer, requests, qtconsole, PyWavelets, pytz, pytools, pyjwt, psutil, promise, pathtools, pathlib2, onnxconverter-common, networkx, matplotlib, mako, llvmlite, keras, jupyter-console, joblib, ipywidgets, imageio, GitPython, future, furl, flatbuffers, fire, docker-pycreds, cython, Click, appdirs, xmltodict, wandb, uplink, uff, tqdm, toposort, tf2onnx, tabulate, simplejson, shapely, semver, seaborn, scikit-learn, scikit-image, retrying, requests-toolbelt, recordclass, pycuda, pycocotools-fix, pyarrow, prettytable, posix-ipc, pandas, opencv-python, onnxruntime, onnx-graphsurgeon, nvidia-ml-py, numba, mpi4py, keras2onnx, keras-metrics, jupyter, grpcio, graphsurgeon, DLLogger, cryptography, clearml, boto3, argparse, argcomplete, addict
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nvidia-tao 4.0.0 requires idna==2.10, but you have idna 2.7 which is incompatible.
nvidia-tao 4.0.0 requires six==1.15.0, but you have six 1.13.0 which is incompatible.
nvidia-tao 4.0.0 requires tabulate==0.8.7, but you have tabulate 0.7.5 which is incompatible.
nvidia-tao 4.0.0 requires urllib3>=1.26.5, but you have urllib3 1.24.3 which is incompatible.
google-colab 1.0.0 requires ipykernel~=4.6.0, but you have ipykernel 5.5.6 which is incompatible.
google-colab 1.0.0 requires ipython~=5.5.0, but you have ipython 7.16.3 which is incompatible.
google-colab 1.0.0 requires notebook~=5.2.0, but you have notebook 6.4.10 which is incompatible.
google-colab 1.0.0 requires pandas~=0.24.0, but you have pandas 0.25.3 which is incompatible.
google-colab 1.0.0 requires requests~=2.21.0, but you have requests 2.20.1 which is incompatible.
google-colab 1.0.0 requires six~=1.12.0, but you have six 1.13.0 which is incompatible.
google-colab 1.0.0 requires tornado~=4.5.0, but you have tornado 6.1 which is incompatible.
Then, when I try to run any command of tao like !tao yolo_v4 -h I got next error:
Using TensorFlow backend.
Traceback (most recent call last):
File “/usr/local/bin/yolo_v4”, line 5, in
from iva.yolo_v4.entrypoint.yolo_v4 import main
File “/usr/local/lib/python3.6/dist-packages/iva/init.py”, line 10, in
import third_party.keras.mixed_precision as MP
File “/usr/local/lib/python3.6/dist-packages/third_party/keras/mixed_precision.py”, line 11, in
import keras
File “/usr/local/lib/python3.6/dist-packages/keras/init.py”, line 3, in
from . import utils
File “/usr/local/lib/python3.6/dist-packages/keras/utils/init.py”, line 6, in
from . import conv_utils
File “/usr/local/lib/python3.6/dist-packages/keras/utils/conv_utils.py”, line 9, in
from … import backend as K
File “/usr/local/lib/python3.6/dist-packages/keras/backend/init.py”, line 89, in
from .tensorflow_backend import *
File “/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py”, line 5, in
import tensorflow as tf
ModuleNotFoundError: No module named ‘tensorflow’
What could be the problem? maybe recent updates of google colab?
General information:
• Hardware (T4)
• Google Colab (Yolo_v4/Yolo_v4tiny/Yolo_v3/etc). I want to emphasize that I am running in google colab and not in a docker container. In google colab we cannot run the containers. I am running in colab because I do not have a local machine with GPU
• How to reproduce the issue ? You could reproduce it by only running the notebooks from the oficial github in google colab:
