Qiuzhongyuan / pointpillars_pytorch_trt

Apache License 2.0
77 stars 24 forks source link

No importer registered for op: VoxelGeneratorV1. #12

Open FreemanGong opened 3 years ago

FreemanGong commented 3 years ago

I have finished the compiling of Tensorrt & Tiny-Tensorrt, but when I run this command "$ ./unit_test --onnx_path model.onnx --data_path reduce_bin_dir --calibrate_path calibrate_data_dir", I met the error as follows:

gong@gong-Default-string:/media/gong/2A76244B762419D9/workspace/pointpillars_40fps_project/pointpillars_pytorch_trt-master/trt/tiny-tensorrt7.2/build$ ./unit_test --onnx_path /media/gong/2A76244B762419D9/workspace/pointpillars_40fps_project/pointpillars_pytorch_trt-master/pytorch/tools/pointpillars_large_model.onnx --data_path /media/gong/2A76244B762419D9/workspace/pointpillars_40fps_project/pointpillars_pytorch_trt-master/pytorch/data/kitti --calibrate_path /media/gong/2A76244B762419D9/workspace/pointpillars_40fps_project/pointpillars_pytorch_trt-master/pytorch/data/kitti cali_files name:/media/gong/2A76244B762419D9/workspace/pointpillars_40fps_project/pointpillars_pytorch_trt-master/pytorch/data/kitti/kitti_dbinfos_train.pkl

fileName:/media/gong/2A76244B762419D9/workspace/pointpillars_40fps_project/pointpillars_pytorch_trt-master/pytorch/data/kitti/kitti_dbinfos_train.pkl bin file length: 33398 num: 2087 [2021-08-24 16:58:13.610] [info] build onnx engine from /media/gong/2A76244B762419D9/workspace/pointpillars_40fps_project/pointpillars_pytorch_trt-master/pytorch/tools/pointpillars_large_model.onnx...

Input filename: /media/gong/2A76244B762419D9/workspace/pointpillars_40fps_project/pointpillars_pytorch_trt-master/pytorch/tools/pointpillars_large_model.onnx ONNX IR version: 0.0.6 Opset version: 10 Producer name: pytorch Producer version: 1.7 Domain:
Model version: 0 Doc string:

ModelImporter.cpp:135: No importer registered for op: VoxelGeneratorV1. Attempting to import as plugin. builtin_op_importers.cpp:3659: Searching for plugin: VoxelGeneratorV1, plugin_version: 1, plugin_namespace: INVALID_ARGUMENT: getPluginCreator could not find plugin VoxelGeneratorV1 version 1 ERROR: builtin_op_importers.cpp:3661 In function importFallbackPluginImporter: [8] Assertion failed: creator && "Plugin not found, are the plugin name, version, and namespace correct?" [2021-08-24 16:58:14.029] [error] error: could not parse onnx engine [2021-08-24 16:58:14.029] [error] error: could not deserialize or build engine Segmentation fault (core dumped)

So, how can I solve this problem, I'm looking forward to your reply!

jianxiezhendong commented 3 years ago

referrence to https://github.com/Qiuzhongyuan/pointpillars_pytorch_trt/issues/9

sean-wade commented 3 years ago

referrence to https://github.com/Qiuzhongyuan/pointpillars_pytorch_trt/issues/9

sorry, the link seems deperated... Can you tell us how to solve it ?

jianxiezhendong commented 3 years ago

export LD_LIBRARY_PATH={TensorRT}/build/:$LD_LIBRARY_PATH source ~/.bashrc You can try it.

sean-wade commented 3 years ago

export LD_LIBRARY_PATH={TensorRT}/build/:$LD_LIBRARY_PATH source ~/.bashrc You can try it.

ok, thanks a lot!

jianxiezhendong commented 3 years ago

echo "export LD_LIBRARY_PATH={TensorRT}/build/:$LD_LIBRARY_PATH" >> ~/.bashrc source ~/.bashrc Sorry.The first line has a mistake, I have modified it.