I am trying to use TensorRT to optimize a machine learning model. The file I have is in the format .hdf5, and I am successfully able to convert this to .pb. As I understand it, I need to then convert .pb to .onnx, then from .onnx I can use TensorRT. However, I am getting errors converting from protobuffer to onnx. I have looked at multiple example codes and it has not worked. Is anyone able to help me with this? I have attached the relevant .hdf5 file.
best_model.hdf5 (53.4 KB)
Hi,
Suppose you can convert the hdf5 model into ONNX format directly.
Could you give it a try with the following tool?
Thanks.
Hello, thanks for the reply. I tried converting the model, but I’m getting import errors. I tried fixing what I could, but I’m still getting an error importing tensorflow.python.keras.layers normalization_v2. Any ideas?
Hi,
How do you install the TensorFlow package?
We just verified the Keras importing in our l4t-tensorflow:r32.7.1-tf2.7-py3
container on JetPack 4.6.1.
Maybe you can also give it a try.
Thanks.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.