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
# load pretrained or custom model
model = yolov7.load('yolov7.pt')
# set model parameters
model.conf = 0.25 # NMS confidence threshold
model.iou = 0.45 # NMS IoU threshold
model.classes = None # (optional list) filter by class
# set image
imgs = 'inference/images'
# perform inference
results = model(imgs)
# inference with larger input size and test time augmentation
results = model(img, size=1280, augment=True)
# parse results
predictions = results.pred[0]
boxes = predictions[:, :4] # x1, y1, x2, y2
scores = predictions[:, 4]
categories = predictions[:, 5]
# show detection bounding boxes on image
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.
Metadata
Release files for yolov7-easy 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yolov7_easy-0.0.1.tar.gz | 122.9 kB | Details |
Release files / yolov7_easy-0.0.1.tar.gz
| Download URL | yolov7_easy-0.0.1.tar.gz |
|---|---|
| Size | 122.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
619aebf99ab298dd2f1035d0c124b3a3ce7de40d31bef453519944d1f5fcdf12
|
|
BLAKE2b-256 checksum How to use checksums |
d251deb95fd25532bdddc549a5c8f389c16051026c58e7dc1617c60d97d71cc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|