ultralytics+
Extra features for ultralytics/ultralytics.
installation
pip install ultralyticsplus
push to 🤗 hub
ultralyticsplus --exp_dir runs/detect/train --hf_model_id HF_USERNAME/MODELNAME
load from 🤗 hub
from ultralyticsplus import YOLO, render_result
# load model
model = YOLO('HF_USERNAME/MODELNAME')
# set model parameters
model.overrides['conf'] = 0.25 # NMS confidence threshold
model.overrides['iou'] = 0.45 # NMS IoU threshold
model.overrides['agnostic_nms'] = False # NMS class-agnostic
model.overrides['max_det'] = 1000 # maximum number of detections per image
# set image
image = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'
# perform inference
results = model.predict(image, imgsz=640)
# parse results
result = results[0]
boxes = result.boxes.xyxy # x1, y1, x2, y2
scores = result.boxes.conf
categories = result.boxes.cls
scores = result.probs # for classification models
masks = result.masks # for segmentation models
# show results on image
render = render_result(model=model, image=image, result=result)
render.show()
Metadata
Release files for ultralyticsplus 0.1.0
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 |
|---|---|---|---|---|
| ultralyticsplus-0.1.0.tar.gz | 25.4 kB | Without provenance | Details for ultralyticsplus-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ultralyticsplus-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ultralyticsplus-0.1.0-py3-none-any.whl |
Total release size: 49.4 kB
Release files / ultralyticsplus-0.1.0.tar.gz
| Download URL | ultralyticsplus-0.1.0.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3e0fdff06bd331a92ccb774ee709da80d4f040caf7c1fa2b4d994918e9b0418
|
|
BLAKE2b-256 checksum How to use checksums |
3fbb87c1c17ddc930fe1adbea4720b197e5230ce38d0d3f3bf6d0ce6f9e70ad7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / ultralyticsplus-0.1.0-py3-none-any.whl
| Download URL | ultralyticsplus-0.1.0-py3-none-any.whl |
|---|---|
| Size | 23.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26275c16ba638d9fc5357b2dcf508e4477bd0031ed096d9892670717326e2f92
|
|
BLAKE2b-256 checksum How to use checksums |
276cff87519141c81e7a4b47c0fa8831e5e4100cf4f3c2db940f159219e30e59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for ultralyticsplus 0.1.0
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.