Convert-to-uff: command not found

Hi ,

I’m trying to follow this tutorial: https://docs.nvidia.com/deeplearning/sdk/tensorrt-sample-support-guide/index.html#end_to_end_tensorflow_mnist . I’m using the terminal window on this directory /usr/src/tensorrt/samples/python/end_to_end_tensorflow_mnist.
When I try to execute this command : 2. Convert the .pb file to .uff using the convert-to-uff utility: convert-to-uff models/lenet5.pb I get this error: convert_to_uff: command not found

How can i solve it?

thanks in advance,

Pablo.

Hi,

If you’ve already installed the uff python package, you should be able to do something like this in bash/linux:

UFF_PATH="$(python -c 'import uff; print(uff.__path__[0])')"
chmod +x ${UFF_PATH}/bin/convert_to_uff.py
ln -sf ${UFF_PATH}/bin/convert_to_uff.py /usr/local/bin/convert-to-uff

Inside of our NGC containers, this is wrapped in a convenience script at /opt/tensorrt/python/python_setup.sh.

If you haven’t installed UFF, please do following the instructions here: https://docs.nvidia.com/deeplearning/sdk/tensorrt-install-guide/index.html

1 Like

Thanks, but know I have problems installing the NGC container du this error:

"–gpus" requires API version 1.40, but the Docker daemon API version is 1.39

I’ve tried to install the docker again, but stil have the docker server API version 1.39. Anything I can do to solve this problem?

thanks.