AttributeError: 'NoneType' object has no attribute 'serialize'


I am following the above link to convert from .pb to .engine, .onnx is successfully created, but while building the engine I get the error shown below, can you please help to resolve this?

TensorRT Version: 6.0
CUDA version: 10.0
Device: Jetson Nano
OS and Version: Ubuntu 18.04

Can you try using the latest TRT release?

Thanks

1 Like

Thank you Sunil for your kind response.
I will do it.
Btw I have TRT v6, can I get the steps to upgrade to v7? and TRT v7 supports CUDA 10.0? or do I need to agin upgrade CUDA for TRT v7?

Thanks in advance.

You can try Jetpack 4.4 DP release.

Thanks

1 Like

Thank you @SunilJB.
TRT v7 won’t support in Jetpack 4.3?

Jetpack 4.3 includes support for TensorRT 6.0.1 and cuDNN 7.6.3.
Jetpack 4.4 DP supports TRT v7.1, please refer below link for more details:
https://docs.nvidia.com/jetson/jetpack/release-notes/index.html

You can also refer to below ONNX sample which should work in TRT 6 as well:
https://docs.nvidia.com/deeplearning/tensorrt/archives/tensorrt-710-ea/sample-support-guide/index.html#onnx_mnist_sample

Thanks

1 Like

Thank you so much, Sunil.

@SunilJB, recently I used this Script (https://github.com/jkjung-avt/tensorrt_demos/blob/master/yolov3_onnx/onnx_to_tensorrt.py) to convert from ONNX to .engine(where I used TRT v6, Jetpack 4.3) which worked perfectly. What are the possible changes for Resnet50?

You can refer to this sample:
https://docs.nvidia.com/deeplearning/tensorrt/archives/tensorrt-710-ea/sample-support-guide/index.html#introductory_parser_samples

Thanks