Yolov9-Pip: Packaged version of the Yolov9 repository
This repo is a packaged version of the Yolov9 model.
⭐ Installation
pip install yolov9pip
🌠 Yolov9 Inference
import yolov9
# load pretrained or custom model
model = yolov9.load(
"yolov9-c.pt",
device="cpu",
)
# 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 = "data/zidane.jpg"
# perform inference
results = model(imgs)
# inference with larger input size and test time augmentation
results = model(img, size=640)
# 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()
😍 Contributing
pip install -r dev-requirements.txt
pre-commit install
pre-commit run --all-files
🤗 Citation
@article{wang2024yolov9,
title={{YOLOv9}: Learning What You Want to Learn Using Programmable Gradient Information},
author={Wang, Chien-Yao and Liao, Hong-Yuan Mark},
booktitle={arXiv preprint arXiv:2402.13616},
year={2024}
}
Acknowledgement
A part of the code is borrowed from Yolov5-pip. Many thanks for their wonderful works.
Metadata
Release files for yolov9pip 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yolov9pip-0.0.4.tar.gz | 222.3 kB | Without provenance | Details for yolov9pip-0.0.4.tar.gz |
Release files / yolov9pip-0.0.4.tar.gz
| Download URL | yolov9pip-0.0.4.tar.gz |
|---|---|
| Size | 222.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b14c5dd040db0d38da5ae580907e716c4fada9c672cbcee98719d476a5c8336
|
|
BLAKE2b-256 checksum How to use checksums |
44f4c665d9b8595fa80b3826014cd9da84400e7fba879cbfd6dc5341d757fff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for yolov9pip 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.