apollo icon indicating copy to clipboard operation
apollo copied to clipboard

gl_camera_visualzier is really slow

Open snuffysasa opened this issue 8 years ago • 5 comments

I finally got the apollo 2.5 perception lowcost visualizer to run on my PC and the visualizer to show up.

I am running using a GTX 1080 and am confused why the visualizer is so slow

I notice the actual perception CNN is running really fast and in realtime... as I can see by rostopic echo /apollo/perception/obstacle... so the actual perception is running well.

However, the visualizer gl_camera_visualizer that shows the bounding boxes... runs very slow and is almost 3 seconds behind. If I lower the resolution of my screen it runs faster.

Any ideas why the GLFW viewer would be so slow?

I am also wondering about cudnn, however, I am not sure this is related to this problem because I believe the DNN inferencing is happening fast enough.

But I notice the perception module (running on GPU) seems to run the same and have the same performance whether I have cuDNN installed or not.

snuffysasa avatar Jul 08 '18 18:07 snuffysasa

Visualization is currently only for debugging. However obviously it is too slow. It seems that reading the rosbag takes the most of time. Later we will provide an option to save and load compressed images.

techoe avatar Jul 09 '18 06:07 techoe

@techoe

Okay I understand. However, it is also slow when using a camera feed in real-time, which isn't using rosbag. and this is also slow. Could there be another reason for this?

snuffysasa avatar Jul 09 '18 15:07 snuffysasa

@techoe

Can you confirm that even with real-time camera feed, playing slow / delayed... is expected behavior currently?

snuffysasa avatar Jul 10 '18 04:07 snuffysasa

Hi @snuffysasa , what change did you make to make lowcost visualizer to work? My popup never show up.

liuyangly25 avatar Aug 22 '18 08:08 liuyangly25

Closed due to inactivity. If the problem persists, pls feel free to reopen it or create a new one and refer to it.

daohu527 avatar Aug 27 '22 13:08 daohu527