Reputation: 353
I run YOLO V3 or YOLO v4 on Jeston Xavier, DNN OpenCV version, It is very slow barely reaches ~ 7- on how to speed up inference?
Upvotes: 0
Views: 5710
Reputation: 176
You can reduce the image size in the .cfg
file:
width=416
height=416
width
and height
while maintaining the image ratio.You can also try Yolov3-tiny or Yolov4-tiny, which is a smaller network but this also might affect your accuracy. (These solutions have been based on my experience. There is always a trade-off between speed and accuracy when dealing with Yolo or other convolutional networks.)
Upvotes: 0
Reputation: 2535
Two things you could try to speed up inference:
For the last one I would advise following this excellent blog:
Upvotes: 1