Name | yolonnx JSON |
Version |
0.2.0
JSON |
| download |
home_page | https://www.cs.aau.dk/ |
Summary | This package lets you run your YOLOv8 detection and classification models using ONNXRuntime. |
upload_time | 2024-09-06 12:23:14 |
maintainer | None |
docs_url | None |
author | None |
requires_python | <3.13,>=3.10 |
license | MIT |
keywords |
onnx
yolov8
onnxruntime
vision
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# You Only Look ONNX
This repository is a light weight library to ease the use of ONNX models exported by the Ultralytics YOLOv8 framework.
## Example Detector Usage
```python
from pathlib import Path
from onnxruntime import InferenceSession
from PIL import Image
from yolonnx.services import Detector
from yolonnx.to_tensor_strategies import PillowToTensorContainStrategy
model = Path("path/to/file.onnx")
session = InferenceSession(
model.as_posix(),
providers=[
"CUDAExecutionProvider",
"CPUExecutionProvider",
],
)
predictor = Detector(session, PillowToTensorContainStrategy())
img = Image.open("path/to/image.jpg")
print(predictor.run(img))
```
## Example Classifier Usage
```python
from pathlib import Path
from onnxruntime import InferenceSession
from PIL import Image
from yolonnx.services import Classifier
from yolonnx.to_tensor_strategies import PillowToTensorContainStrategy
model = Path("path/to/file.onnx")
session = InferenceSession(
model.as_posix(),
providers=[
"CUDAExecutionProvider",
"CPUExecutionProvider",
],
)
predictor = Classifier(session, PillowToTensorContainStrategy())
img = Image.open("path/to/image.jpg")
print(predictor.run(img))
```
Raw data
{
"_id": null,
"home_page": "https://www.cs.aau.dk/",
"name": "yolonnx",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.13,>=3.10",
"maintainer_email": null,
"keywords": "ONNX, YOLOv8, onnxruntime, vision",
"author": null,
"author_email": "Kasper Fromm Pedersen <kasperf@cs.aau.dk>",
"download_url": "https://files.pythonhosted.org/packages/0e/e7/394d7c3bdd7e86be0c1ea473d1879114d068eed34017c50beb2d4b53b600/yolonnx-0.2.0.tar.gz",
"platform": null,
"description": "# You Only Look ONNX\nThis repository is a light weight library to ease the use of ONNX models exported by the Ultralytics YOLOv8 framework.\n\n## Example Detector Usage\n```python\nfrom pathlib import Path\n\nfrom onnxruntime import InferenceSession\nfrom PIL import Image\n\nfrom yolonnx.services import Detector\nfrom yolonnx.to_tensor_strategies import PillowToTensorContainStrategy\n\nmodel = Path(\"path/to/file.onnx\")\nsession = InferenceSession(\n model.as_posix(),\n providers=[\n \"CUDAExecutionProvider\",\n \"CPUExecutionProvider\",\n ],\n)\n\npredictor = Detector(session, PillowToTensorContainStrategy())\nimg = Image.open(\"path/to/image.jpg\")\nprint(predictor.run(img))\n```\n\n## Example Classifier Usage\n```python\nfrom pathlib import Path\n\nfrom onnxruntime import InferenceSession\nfrom PIL import Image\n\nfrom yolonnx.services import Classifier\nfrom yolonnx.to_tensor_strategies import PillowToTensorContainStrategy\n\nmodel = Path(\"path/to/file.onnx\")\nsession = InferenceSession(\n model.as_posix(),\n providers=[\n \"CUDAExecutionProvider\",\n \"CPUExecutionProvider\",\n ],\n)\n\npredictor = Classifier(session, PillowToTensorContainStrategy())\nimg = Image.open(\"path/to/image.jpg\")\nprint(predictor.run(img))\n\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "This package lets you run your YOLOv8 detection and classification models using ONNXRuntime.",
"version": "0.2.0",
"project_urls": {
"Homepage": "https://www.cs.aau.dk/",
"Repository": "https://github.com/fromm1990/yolonnx"
},
"split_keywords": [
"onnx",
" yolov8",
" onnxruntime",
" vision"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "44aa531c222764914e2b8de9ff1158cb157f49c5ac178d3f66e26582e4a2db85",
"md5": "f0d5794cdfe1b880ab6586bb3584cf71",
"sha256": "fb4fff3e7631a0a8956850ea27d44b6fb198565a47cfe22317a6c616fd09a42b"
},
"downloads": -1,
"filename": "yolonnx-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f0d5794cdfe1b880ab6586bb3584cf71",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.10",
"size": 7810,
"upload_time": "2024-09-06T12:23:12",
"upload_time_iso_8601": "2024-09-06T12:23:12.873734Z",
"url": "https://files.pythonhosted.org/packages/44/aa/531c222764914e2b8de9ff1158cb157f49c5ac178d3f66e26582e4a2db85/yolonnx-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0ee7394d7c3bdd7e86be0c1ea473d1879114d068eed34017c50beb2d4b53b600",
"md5": "3295060129a18645fce64e06516a0c2f",
"sha256": "1a5a5e503f4971000415cced87eefe458d688c3cef613af60838756e65144fbe"
},
"downloads": -1,
"filename": "yolonnx-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "3295060129a18645fce64e06516a0c2f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.10",
"size": 5793,
"upload_time": "2024-09-06T12:23:14",
"upload_time_iso_8601": "2024-09-06T12:23:14.493691Z",
"url": "https://files.pythonhosted.org/packages/0e/e7/394d7c3bdd7e86be0c1ea473d1879114d068eed34017c50beb2d4b53b600/yolonnx-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-06 12:23:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fromm1990",
"github_project": "yolonnx",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "yolonnx"
}