sampleUffSSD on jetsonTX2

I want to use the sampleUffSSD in TensorRT 4.0 on JetsonTX2.
Referring to README.txt, I need to install UFF converter. The method is written on the link below.

I installed the PYTHON API using the installation command below, but it failed.
pip2 install tensorrt-

The error message is as follows.
Requirement ‘tensorrt-’ looks like a filename, but the file does not exist
tensorrt- is not a supported wheel on this platform.

I find a topic that says ‘PYTHON API is not available for jetson platform’.

Can UFF converter be used on JetsonTX2?


TensorRT python API is not available on Jetson but converter works.
You can find the installation steps of the converter here:


Thanks for reply.

First, I installed UFF exporter following procedure.
1.sudo pip install tensorflow-1.5.0rc0-cp27-cp27mu-linux_aarch64.whl
2.sudo pip install TensorRT-

Next, get the pre-trained Tensorflow model (ssd_inception_v2_coco) from:

Finally, convert to uff following command, but it failed.
convert-to-uff tensorflow --input-file frozen_inference_graph.pb -O NMS -p

The error message:
File “/usr/local/bin/convert-to-uff”, line 11, in
File “/usr/local/lib/python2.7/dist-packages/uff/bin/”, line 105, in main
File “/usr/local/lib/python2.7/dist-packages/uff/converters/tensorflow/”, line 149, in from_tensorflow_frozen_model
return from_tensorflow(graphdef, output_nodes, preprocessor, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/uff/converters/tensorflow/”, line 41, in from_tensorflow and click on the ‘TensoRT Python API’ link""".format(err))
ImportError: ERROR: Failed to import module (No module named graphsurgeon)
Please make sure you have graphsurgeon installed.
For installation instructions, see:

To solve the problem, I think that it is nessesary to install “graphsurgeon”.
However, I did not khow hot to do it.

Please show me to solve this problem.


graphsurgeon is included our TensorRT python API and is only available for x86 user.
Please convert your model on a desktop GPU and do inference on Jetson with the converted model afterward.


This is really unfortunate as the three required wheels are all python (major) version and architecture agnostic. You can script the extraction and installation of the required wheels.

I had to do so when containerizing the repo. You can use a multi-stage docker file to extract the wheels and then install them. You can look here for an example

You must pass a URL arg which I’ve left out to source the archive as nvidia won’t let you download it publicly. I’ve uploaded the archive to my own blob storage account which I then download it from.