Increase Jetson Inference speed

I have a Jetson nano 4GB, I use it with 5W.
This code has an SPF of 17

With the model SSD-Mobilenet-v2

My question is: how do I make it faster? Maybe 22 FPS. Like the one in this video: Jetson AI Fundamentals - S3E4 - Object Detection Inference - YouTube

It occurs to me that you can do two things:

  1. Decrease the size of the image that is read via the camera (/dev/video0)
  2. That it only read/recognize/detect people that is what I want.

Do you know how to do point 1 and 2?


Have you tried to maximize the device’s performance first?

$ sudo jetson_clocks

Since Nano is relatively limited in computing resources, a common alternative is to do the inference periodically.
This can be done via Deepstream SDK:


1 Like

I’ve seen that command several times but I’ve never run it and I don’t know what it’s for. I thought it’s some clock/time thing, isn’t it? What exactly does it do?

Hi @usuario1918, the jetson_clocks script will lock their clocks to their maximum values as defined by the current power mode (in your case, 5W mode). Typically there is the Dynamic Voltage & Frequency Scaling (DVFS) governor which adapts the clocks based on workload (jetson_clocks disables this). Once is up & running though, the clocks should already be pretty stable.

In that YouTube video, Jetson Nano was running in 10W mode, which gives more performance. If you require higher FPS, are you able to change from 5W to 10W mode?

1 Like

I can use 10W (with the barrel connector and the joint of the two pins), but when I started it (the jetson inference) it closed. Maybe because I didn’t run sudo jetson_clocks?

Did the window close, or did the system turnoff? My guess is that your power supply wasn’t capable of supplying the load needed for 10W mode. Running jetson_clocks may make that more immediately obvious, since it will draw more power all the time (as opposed to only under considerable workloads) If it continues to be an issue, you may want to look into upgrading your power supply.

1 Like

How many times should I run that command ( sudo jetson_clocks)? Every time I turn on the jetson nano or just once?

I am reading that it is used to use the maximum power of Jetson nano.

Hi @usuario1918, you should run it after each reboot if you want it to remain active. Although changing the nvpmodel to 10W mode will be the main thing that improves your performance with jetson-inference. Running detectnet/ on a continuous video stream or camera on Jetson Nano will result in the clocks being maximized by the dynamic load governor anyways.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.