Yolov7-Pip: Packaged version of the Yolov7 repository
Overview
This repo is a packaged version of the Yolov7 model.
Installation
pip install yolov7detect
Yolov7 Inference
import yolov7
model = yolov7.load('yolov7.pt')
model.conf = 0.25
model.iou = 0.45
model.classes = None
imgs = 'inference/images'
results = model(imgs)
results = model(img, size=1280, augment=True)
predictions = results.pred[0]
boxes = predictions[:, :4]
scores = predictions[:, 4]
categories = predictions[:, 5]
results.show()
Citation
@article{wang2022yolov7,
title={{YOLOv7}: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors},
author={Wang, Chien-Yao and Bochkovskiy, Alexey and Liao, Hong-Yuan Mark},
journal={arXiv preprint arXiv:2207.02696},
year={2022}
}
Acknowledgement
A part of the code is borrowed from Yolov5-pip. Many thanks for their wonderful works.