Description
I’m comparing the MODNet output feature between onnx and trtexec with zeros input and getting the cosine similarity only 0.00029 but the result looks great.
Do anyone have any idea of this issue?
Environment
TensorRT Version: 7.2.3.4
GPU Type: NVIDIA 3080
Nvidia Driver Version: 472.12
CUDA Version: 11.1
CUDNN Version: 8.1.1
Operating System + Version: Windows 10
Relevant Files
https://drive.google.com/file/d/1WINlZfBI6IFP4LeJ2jdDwt9kQjCEMFVQ/view?usp=shar
onnx_zeros.py (1.2 KB)
ing
Steps To Reproduce
Using the trtexec command as below
trtexec.exe --onnx=modnet.onnx --minShapes=‘input’:1x3x192x352 --optShapes=‘input’:1x3x192x352 --maxShapes=‘input’:1x3x192x352 --loadInputs=‘input’:input_seg.txt --exportOutput=output_seg.txt --fp16
The input is all zero.
Using the onnx_zeros.py load onnx model and produce the output feature.