| Model | Architecture | Resolution | Size | Format |
|---|---|---|---|---|
| model1.onnx | YOLOv8m | 640px | 94 MB | ONNX |
| model2.onnx | YOLOv8x | 1280px | 249 MB | ONNX |
1import onnxruntime as ort
2from PIL import Image
3import numpy as np
4
5# Load model
6session = ort.InferenceSession("model1.onnx", providers=["CUDAExecutionProvider"])
7
8# Preprocess image (letterbox to 640x640)
9img = Image.open("shelf.jpg").convert("RGB")
10# ... preprocessing code ...
11
12# Run inference
13output = session.run(None, {"images": img_array})[0]