Description
I’ve successfully build engines by using prototxt file with INT8 calibrations. Besides, when I use ONNX models with FP16 data, I can also build engines. However, I’m receiving an error with ONNX Model + INT8 calibration. This sounds like a simple error however, I can’t find the source of it. The message is attached below:
Note: I’ve attached the files below. I’m aware of calibrating values are not correct. However, I don’t focus on the accuracy of the model at this point but getting some runtimes with INT8.
Error Message
INFO:EngineBuilder:Using calibration cache file: tensorrt_scripts/calibrator_networks/pose_densenet121_body_calibration
[07/20/2022-17:09:52] [TRT] [E] 4: [standardEngineBuilder.cpp::initCalibrationParams::1398] Error Code 4: Internal Error (Calibration failure occurred with no scaling factors detected. This could be due to no int8 calibrator or insufficient custom scales for network layers. Please see int8 sample to setup calibration correctly.)
[07/20/2022-17:09:52] [TRT] [E] 2: [builder.cpp::buildSerializedNetwork::620] Error Code 2: Internal Error (Assertion engine != nullptr failed. )
Environment
Jetson AGX Orin with Jetpack 5.0.1. Specifically, TensorRT 8.4.0
Relevant Files
I’m using Prototxts files and ONNX models from jetson-inference repo.
engine_building.py.py (5.2 KB)
pose_densenet121_body_calibration (8.5 KB)
pose_densenet121_body.onnx (79.4 MB)
Steps to Reproduce
I’ve attached the code and the model just in case if you need to reproduce. Please dont forget to update the file paths.