deepinsight / insightface

State-of-the-art 2D and 3D Face Analysis Project
https://insightface.ai
23.31k stars 5.41k forks source link

关于SCRFD人脸检测模型onnx转tensorrt(c++)报错:Assertion failed: !isDynamic(tensorPtr->getDimensions()) && "InstanceNormalization does not support dynamic inputs!" #1980

Open Lucky-BenXie opened 2 years ago

Lucky-BenXie commented 2 years ago

你好,我现在在用scrfd的onnx转tensorrt报了这个错误,貌似是算子不支持动态输入 我的转换命令是./trtexec --onnx=scrfd_10g.onnx --saveEngine=scrfd_10g_fp32.trt --workspace=4096 --minShapes=input:1x3x640x640 --optShapes=input:8x3x640x640 --maxShapes=input:32x3x640x640 --shapes=input:8x3x640x640,请问这是什么原因导致的?

nttstar commented 2 years ago

You may fix the input-shape while doing the onnx model conversion.