NVIDIA-ISAAC-ROS / isaac_ros_argus_camera

ROS 2 packages based on NVIDIA libArgus library for NVIDIA-accelerated CSI camera support.
https://developer.nvidia.com/isaac-ros-gems
Apache License 2.0
64 stars 12 forks source link

Performance seems seems bad #28

Open nakai-omer opened 1 year ago

nakai-omer commented 1 year ago

Hello,

Running this on a Jetson Xavier NX with a Raspberry Pi IMX277. Video is very laggy, barely moving, I couldn't even use it to run camera calibration. While running, CPU usage raises by ~20%. This is the only node running. JTOP Baseline (before running): Screenshot from 2023-07-19 12-36-18

JTOP during run: Screenshot from 2023-07-19 12-38-25

Image is also pixilated: Screenshot from 2023-07-19 12-20-01

BTW, running video source from the Jetson-Inference packages yields better image results, though it flips the image over: Screenshot from 2023-07-19 12-43-58

A USB camera with no gpu-optimized driver is working much smoother.

ikhann commented 1 year ago

Hi, After reviewing your jtop, it appears that there is room to optimize the performance of your Jetson:

  1. Run the following command to set the GPU and CPU clock to max. See Maximizing Jetson Orin Performance for more details:

    sudo /usr/bin/jetson_clocks

    Note: Every time you reboot the board, it will be get back to the normal value.

  2. Run the following command to set the to power to MAX settings. See Power Mode Controls for more details:

    sudo /usr/sbin/nvpmodel -m 0
nakai-omer commented 1 year ago

@ikhann Thanks for the quick response. I will try changing the clocks. Power mode is already at the max. Nevertheless, using a basler USB3 camera, with their non gpu-optimized driver, gives much better performance, than a MIPI-CSI2 camera using this lib.

swapnesh-wani-nvidia commented 1 year ago

We are aware of the performance issues with IMX 219 and 277. Will update this once it is resolved.