WongKinYiu / yolov7

Implementation of paper - YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors
GNU General Public License v3.0
13.26k stars 4.18k forks source link

How can ı use Yolov7 in Opencv ? #1422

Open vcigorkem opened 1 year ago

vcigorkem commented 1 year ago

I want to use my model that I trained with yolov7 via opencv. For example, I want to detect x object with my model that I trained with yolov7. Later, I want to follow the object that I have detected with tracking algorithms. Please someone help me :/

knoppmyth commented 1 year ago

I've successfully used a v7 model in OpenCV by export it to ONNX. As far as object tracking, I've not done it so I cannot be of assistance.

mikahoy045 commented 1 year ago

Don't forget to reparameterize you're trained custom model (else it will not work). OpenCV should be recompile to use CUDA also because until now I have not succeed to read the image in thread (it can speed up without using cuda).