-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add single frame ros inference script #193
base: master
Are you sure you want to change the base?
Conversation
Thank you for the contribution. |
it 's kind of visualization tool to test those Lidar-based 3D Detection Method. the version.py problem will be fixed. |
Hi, Perfectly running inference.py with PointPillars trained on Kitti but failed when using PointPillars_MultiHead (trying to inference 360º point cloud). [ERROR] [1596543042.259403, 117.434018]: bad callback: <function rslidar_callback at 0x7f24f23dd378> Please can you solve this problem or give hints to solve it? Thanks |
please update the newest pull request, and notice the model trained on KITTI and Nuscens has different input. |
Thanks. Updating to latest commit and adding a fake timestamp column to point cloud worked. |
@muzi2045 Thanks, nice work! |
Thank you for this @muzi2045 |
Why isn't this merged in? |
Hi, |
play your rosbag, and change the subscribe topic in script.
notice the output jsk_boundingboxs frame_id should same as input pointcloud frame_id. |
Okay, thank you. So in this case the detection results (bounding boxes) are based on my topics cloud and not the given .npy or .bin file? |
@tsbhun98 the given .npy or .bin is used to build the network and the first time forward, that's all. |
@muzi2045 I'm working on implementing this branch, but having some difficulty with dependencies (right now the latest version of CUDA breaks numba). Can you share what the specifics of your environment are (CUDA version, Linux distro/version, and anything else that might be helpful)? |
CUDA 10.0 |
Hello, I am a novice to ros. I want to know how to use this code? I need to compile the CMakeList.txt and package.xml files, and then use rosrun to run this file after Cmake compilation? |
@QYWT Hi, I'm relatively new to ROS too but managed to make this code work a couple weeks ago. You need to create a catkin workspace and a package inside it. In the workspace you need to use the catkin build (or the older catkin_make) command to complie your code. Then you can run the node with rosrun. If you are not familiar with these I suggest you visit this site and go through the beginner level tutorials: http://wiki.ros.org/ROS/Tutorials |
@tsbalazs According to your suggestion, I have successfully run the code, but I cannot subscribe to the topic /pp_boxes in rviz. Have you encountered this problem? |
@QYWT For some reason if you want to add it by topic it is unvisualizable. In the displays section click add and choose the "By display type" option (it is the default option). Choose BoundingBoxArray and it will be listed in the displays section. Double click on it and change the Topic to pp_boxes. |
@tsbalazs |
@muzi2045 excuse me , |
I'm sorry about this. The models in PCDet mostly use 64 lines of data, and their performance on 16 lines will be very poor. |
@QYWT ,
|
@QYWT |
@muzi2045 thanks for your works mate! I would like to know if the inference script supports pointpillars, or not? |
yeah, it support pointpillars. |
@muzi2045 Thank you! This is very needed indeed! |
Thank you very much for your help. I successfully did target detection on rviz, but the total callback time was about 0.25 seconds, which made it impossible to reach the real time. Can I reduce the calculation time by modifying the ROI area when inputting the neural network? (I should operate in which python file) Or do you have better suggestions? thank you very much! |
print the cost time when you run the python script and find which part cost the most. |
Hello, I use rosbag for visualization and found that the color of the boundingbox is random? Can I set a fixed color? @muzi2045 |
try to use fixed color box with ROS markarray. |
Thank you very much for your suggestions. If I want to display id on each boundingbox, how should I achieve it? |
there has no tracking process, so the id is random. |
If I need to track the process, is it necessary to use the markerarray of ROS? |
Hello, I've achieved train, real-time inference and visualization on simulation. See https://github.com/OrangeSodahub/CRLFnet . A ROS interface was built there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolute paths need to be modifed.
Similar one but in the whole bag or runtime on ROS: https://github.com/Kin-Zhang/OpenPCDet_ros |
Hi, I made a ROS 2 Humble version inspired by this thread: https://github.com/pradhanshrijal/pcdet_ros2
|
Hi |
add single frame ros inference script (currently only test on PVRCNN model)
depends:
rospy
ros_numpy
pyquaternion
and etc...