yolo-seg-ort
yolo-seg-ort
采用纯ONNX Runtime实现YOLOv11-seg的onnx模型。
探索本项目的文档 »
查看发布
·
报告Bug
·
提出新特性
1. 模型转换
from ultralytics import YOLO
# Load the YOLO11 model
model = YOLO("best.pt")
# Export the model to ONNX format
model.export(format="onnx") # creates 'yolo11n.onnx'
2. 安装依赖
pip install -r requirements.txt
3. 用法
from yolo_seg_ort import YOLOSeg
import cv2
onnx_path = "best.onnx"
image_path = "test.jpg"
image = cv2.imread(image_path)
model = YOLOSeg(
onnx_model=onnx_path,
classes=["Grass", "Ground", "Ramp", "Road", "Stairs"],
conf=0.25,
iou=0.7,
imgsz=640,
)
result = model(image)
if result:
result[0].save("./results.jpg")
# result[0].show()
else:
print("未检测到任何对象或结果为空。")
4. 结果
5. 贡献者
6. 许可证
本项目采用 MIT 许可证。有关详细信息,请查看 LICENSE 文件。
Metadata
Release files for yolo-seg-ort 1.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 | |
|---|---|---|---|
| yolo_seg_ort-1.0.1.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yolo_seg_ort-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.1 kB
Release files / yolo_seg_ort-1.0.1.tar.gz
| Download URL | yolo_seg_ort-1.0.1.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8550cc137f35fe237a5b1e9c396ce21ed8276cc62ac0526682f137b44a74dc2c
|
|
BLAKE2b-256 checksum How to use checksums |
435960cc431fb82819cce5861d168a0e276903458f0cea59c9c4cde5159354af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2025.
Transparency logRelease files / yolo_seg_ort-1.0.1-py3-none-any.whl
| Download URL | yolo_seg_ort-1.0.1-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bb682a242584748716048f2c16141a510347eda71f266660de7d0cbde7d1a52
|
|
BLAKE2b-256 checksum How to use checksums |
951f8fb7f6e0c678f91c93b171dd7b52ed6e3b2b7939b8c29b3d9942bba8805c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2025.
Transparency log