Skip to main content

ONNX-PREDICT-YOLOV8

This repository is a light weight library to ease the use of ONNX models exported by the Ultralytics YOLOv8 framework.

Example Usage

from onnxruntime import InferenceSession
from PIL import Image
from opyv8 import Predictor

model = Path("path/to/file.onnx")
# List of classes where the index match the class id in the ONNX network
classes = model.parent.joinpath("classes.names").read_text().split("\n")
session = InferenceSession(
    model.as_posix(),
    providers=[
        "CUDAExecutionProvider",
        "CPUExecutionProvider",
    ],
)
predictor = Predictor(session, classes)
img = Image.open("path/to/image.jpg")
print(predictor.predict(img))

Metadata

Release files for onnx-predict-yolov8 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for onnx-predict-yolov8 1.0.6
File Size Uploaded
onnx-predict-yolov8-1.0.6.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for onnx-predict-yolov8 1.0.6
File Interpreter ABI Platform
onnx_predict_yolov8-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / onnx-predict-yolov8-1.0.6.tar.gz

Download URL onnx-predict-yolov8-1.0.6.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
04f06b5c191e18f3091e9f0251436eb97f8250c67ad88c76f9c838792c1acf27
BLAKE2b-256 checksum
How to use checksums
4ecc0c88095ab89d7e2cd8f490045ae4ba021dbe54869612dc550c6916a96a36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.7.2 CPython/3.11.1

Release files / onnx_predict_yolov8-1.0.6-py3-none-any.whl

Download URL onnx_predict_yolov8-1.0.6-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0de24a7f84fdd4cef6a79549ad87ad001f9a69962dd8553e89b31e393cc9c91
BLAKE2b-256 checksum
How to use checksums
3a224698f38bac087ad68c0a6feed9460d868c6c9ecf663dce85c16456b08eee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.7.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page