mmdet3d_onnx_tools icon indicating copy to clipboard operation
mmdet3d_onnx_tools copied to clipboard

when onnx2tensorRT, for tok op has some ERROR

Open melon0504 opened this issue 2 years ago • 5 comments

ERROR: builtin_op_importers.cpp:3345 In function importTopK: [8] Assertion failed: inputs.at(1).is_weights() ERROR: failed to parse onnx file

melon0504 avatar May 06 '22 02:05 melon0504

try this. https://github.com/onnx/onnx-tensorrt

speshowBUAA avatar May 06 '22 05:05 speshowBUAA

I used onnx-tensorrt to fix the problem,but now here has new error.

[==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from PointPillars [ RUN ] PointPillars.build_model | ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄> | ../model/pts_pfe.trt > |_____________________> (_/) ||
(•ㅅ•) ||
/   づ
Binding 0 (input.1): Input. Binding 1 (38): Output. | ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄> | ../model/pts_backbone_with_anchors.trt > |_____________________> (_
/) ||
(•ㅅ•) ||
/   づ
Binding 0 (0): Input. Binding 1 (225): Output. Binding 2 (227): Output. Binding 3 (273): Output. temp_points.size() :5040001 ERROR: ../rtSafe/cuda/genericReformat.cu (1294) - Cuda Error in executeMemcpy: 1 (invalid argument) ERROR: FAILED_EXECUTION: std::exception ERROR: ../rtSafe/cuda/genericReformat.cu (1294) - Cuda Error in executeMemcpy: 1 (invalid argument) ERROR: FAILED_EXECUTION: std::exception /home/ruiming/ROS/PointPillars_mmdet_secfpn/test/pointpillars_test.cc:151: Failure Expected equality of these values: num_objects Which is: 0 228 138.28 ms ERROR: ../rtSafe/cuda/cudaScaleRunner.cpp (119) - Cuda Error in execute: 1 (invalid argument) ERROR: FAILED_EXECUTION: std::exception ERROR: ../rtSafe/cuda/genericReformat.cu (1294) - Cuda Error in executeMemcpy: 1 (invalid argument) ERROR: FAILED_EXECUTION: std::exception /home/ruiming/ROS/PointPillars_mmdet_secfpn/test/pointpillars_test.cc:151: Failure Expected equality of these values: num_objects Which is: 0 228 19.93 ms ERROR: ../rtSafe/cuda/cudaScaleRunner.cpp (119) - Cuda Error in execute: 1 (invalid argument) ERROR: FAILED_EXECUTION: std::exception ERROR: ../rtSafe/cuda/genericReformat.cu (1294) - Cuda Error in executeMemcpy: 1 (invalid argument)

melon0504 avatar May 06 '22 06:05 melon0504

perharps there are conficts between different tensorrt version. Try onnx model file as well.

speshowBUAA avatar May 06 '22 08:05 speshowBUAA

可以加下QQ(758341407),或者微信咨询一下吗

melon0504 avatar May 07 '22 01:05 melon0504

可以

speshowBUAA avatar May 07 '22 09:05 speshowBUAA