AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.57k stars 7.94k forks source link

Jetson TX2 - Deployement challenges #4089

Open arfin-agnext opened 4 years ago

arfin-agnext commented 4 years ago

I am getting 4 PFS on Jetson TX2, used YoloV3.cfg

  1. Please suggest, how can we achieve 15~30 FPS(video or realtime) on Jetson TX2 with YoloV3.cfg?
  2. If 20~30 FPS not possible, then other than YoloV3.cfg, which config file will be better as per speed and accuracy?
  3. Is it good advice to use an IP camera instead of Jetson TX2, as there can be a possibility of data loss because of low internet bandwidth/speed?
  4. Please share an IP camera model name(if not use Jetson TX2), that will be good for training and testing?
jesusatgar commented 4 years ago

I have been using YOLOV3-TINY, if you need more FPS and reasonably good results, it is the way to go.

nodir93uzbek commented 4 years ago
  1. Use yoloV3 tiny weight and cfg. You can achieve 24~30 on Jetson TX2.
  2. If you use yolov3-tiny.prn, fps is about 45 on Jetson TX2
  3. I have not experience IP cam with Jetson TX2
jesusatgar commented 4 years ago
  1. Use yoloV3 tiny weight and cfg. You can achieve 24~30 on Jetson TX2.
  2. If you use yolov3-tiny.prn, fps is about 45 on Jetson TX2
  3. I have not experience IP cam with Jetson TX2

I didn't know about tiny-prn. Looks very promising, thanks for pointing it out.

arfin-agnext commented 4 years ago

@jesusatgar @nodir93uzbek Thanks for the reply. with yolov3-tiny.cfg, i am getting 11 ~ 13 FPS, on Jetson TX2 I am dumping the output on result.txt and result.avi as well.

Am i missing some configuration to set, as i should get around 25 FPS ?

i will try yolov3-tiny-prn.cfg

jesusatgar commented 4 years ago

Can you share your .cfg file with us? Maybe you should try lowering the width and height parameters if you are not using the default ones.

arfin-agnext commented 4 years ago

yolov3-tiny.cfg - https://storage.googleapis.com/agnext-arfin/yolov3-tiny.cfg

arfin-agnext commented 4 years ago

Tested on 1920x1080 video resolution. I am getting 11 ~ 13 FPS, on Jetson TX2 because of high resolution?

If high is the issue, then what resolution will be better?

arfin-agnext commented 4 years ago

Now if I change 1920x1080 video resolution to 1280 x720 FPS fluctuates between 20 ~ 30 FPS

Is this fine, or FPS should not fluctuates?

jesusatgar commented 4 years ago

Your .cfg seems to be OK. Then it is probably your input image resolution, the TX2 seems to struggle with Full HD and greater resolutions (from what I've experienced). If 20-30 FPS is enough for you, keep it on 1280x720. If not, try to use the tiny-prn .cfg and play with the input resolution until you get what suits your needs.