I try to install TAO BYOM Converter TF2
following this document.
However I encountered an error.
$ conda activate launcher
$ pip3 install nvidia-tao-byom
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.
tensorboard 2.9.1 requires protobuf<3.20,>=3.9.2, but you have protobuf 3.20.2 which is incompatible.
tensorflow 2.9.1 requires protobuf<3.20,>=3.9.2, but you have protobuf 3.20.2 which is incompatible.
Successfully installed altgraph-0.17.4 appdirs-1.4.4 black-19.10b0 click-8.1.7 cryptography-42.0.7 docopt-0.6.2 h5py-2.10.0 ipython-8.12.3 isort-4.3.21 joblib-1.4.2 nbconvert-7.16.4 nvidia-eff-0.5.7 nvidia-tao-byom-0.0.11.2 onnx-1.10.2 onnxconverter-common-1.14.0 onnxruntime-1.10.0 pathspec-0.12.1 pip-api-0.0.33 pipreqs-0.5.0 protobuf-3.20.2 pyarmor-8.5.8 pyarmor.cli.core-6.5.1 pybind11-2.12.0 pyinstaller-6.7.0 pyinstaller-hooks-contrib-2024.6 regex-2024.5.15 ruamel.yaml-0.18.6 ruamel.yaml.clib-0.2.8 scikit-learn-1.3.2 scipy-1.10.1 skl2onnx-1.10.4 threadpoolctl-3.5.0 toml-0.10.2 typed-ast-1.5.5 yarg-0.1.9
Then I tried,
$ pip3 install protobuf==3.19.6
$ pip3 install --force-reinstall tensorflow==2.9.1
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.
onnxconverter-common 1.14.0 requires protobuf==3.20.2, but you have protobuf 3.19.6 which is incompatible.
$ pip3 install protobuf==3.20.2
$ pip3 install nvidia-tao-byom
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.
tensorboard 2.9.1 requires protobuf<3.20,>=3.9.2, but you have protobuf 3.20.2 which is incompatible.
tensorflow 2.9.1 requires protobuf<3.20,>=3.9.2, but you have protobuf 3.20.2 which is incompatible.
So, things is going round in circles.
What should I do for this?
Besides, when I tried to use tao_byom
command, numpy error occured.
$ tao_byom --help
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'typeDict'
I solve this as
$ pip3 install numpy==1.21
Is this solution ok for TF2?
4 posts - 2 participants