Description
AWD.onnx(Rename it).txt (11.7 MB)
When performing inference using awd.onnx (a Yolov8n model with two classes: 0 for ‘closed’ and 1 for ‘open’), the OpenCV DNN inference on sample images yields confidence scores above 90%. However, when using TensorRT for inference (with consistent results on both Jetson and Windows platforms), the obtained confidence scores are around 4%. How can I eliminate this type of bug? Could it be that I did not configure things correctly when building the engine?
sample:
TensorRT Output:
OpenCV DNN Output:
Environment
TensorRT Version: 8.5.2.2
GPU Type: Jetson Orin / NX , RTX3070Ti , RTX 4090
Nvidia Driver Version: Jetson Orin/NX Jetpack 5.1.1 Jetpack 5.1.3 , RTX3070Ti 572.83 , RTX 4090 520.61.05
CUDA Version: Jetson Orin/NX 11.4.315 , RTX3070Ti 12.8 , RTX 4090 11.8
CUDNN Version: Jetson Orin/NX 8.6.0.166
Operating System + Version: Ubuntu 20.04 , Windows 11
Python Version (if applicable): 3.8
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):
Relevant Files
Please attach or include links to any models, data, files, or scripts necessary to reproduce your issue. (Github repo, Google Drive, Dropbox, etc.)
Steps To Reproduce
Please include:
-
Exact steps/commands to build your repro
-
Exact steps/commands to run your repro
-
Full traceback of errors encountered


