liu-qingzhen / Pointpillars-ROS

Pointpillars with ROS Rviz
38 stars 6 forks source link

'TorchInferenceContext' object has no attribute 'get_inference_input_dict_ros' #3

Open zhangzhijuan opened 2 years ago

zhangzhijuan commented 2 years ago

I get this error when inference the model: 'TorchInferenceContext' object has no attribute 'get_inference_input_dict_ros' . I check second_ros.py and second/pytorch/inference.py, and it exactly has no 'get_inference_input_dict_ros' attribute. How to solve this problem? Thanks!!!

BIT-DYN commented 2 years ago

作者这个好像不全,建议使用second_ros代码 https://github.com/cedricxie/second_ros

liu-qingzhen commented 2 years ago

I get this error when inference the model: 'TorchInferenceContext' object has no attribute 'get_inference_input_dict_ros' . I check second_ros.py and second/pytorch/inference.py, and it exactly has no 'get_inference_input_dict_ros' attribute. How to solve this problem? Thanks!!!

It's about the same to use second_ros on PointPillars model. I start this repo for some code lost in second_ros. I recommend to use second_ros to test your PointPillars model first, and check the error to find the corresponding code in pointpillars_ros and replace it.

I am not sure if my pointpillars_ros version is after compiling or not, so there may be some possible mistakes. But for me, it works on my computer and the code are uploaded with no changes.

There are 2 pointpillars GitHub repo when I was working on it, nutonomy and Small_Munich, one can not run, another cannot. I cannot tell which one is the right now, it's such a long time ago.

I have not been working on this topic for more than a year, so there may not be update anymore. Moreover, it is very time-consuming to debug in training and inference with this original code. If you just want to run the code without doing any changes or fitting your own dataset, don't spend much time on this. You can check if there are some well-developed repo in MMLab and Open3D etc..