Aller au contenu
ModelPrésentéExterne
Browse files

Yolox Onnx

ONNX bundle of Megvii-BaseDetection/YOLOX covering all seven published size variants in a single repo. Apache-2.0 licensed alternative to Ultralytics YOLOv8 (which is AGPL-3.0).

TypeOtherModèle de baseMegvii-BaseDetection/YOLOXVersionYolox darknetCClasse

Source du modèle

Type
Other
Taille du fichier
3,49–378 MB
Modèle de base
Megvii-BaseDetection/YOLOX
Version
vYolox darknet
Mis à jour
1 nov. 2026
Source
Hugging Face

Description de la source

YOLOX — ONNX (full size ladder)

ONNX bundle of Megvii-BaseDetection/YOLOX covering all seven published size variants in a single repo. Apache-2.0 licensed alternative to Ultralytics YOLOv8 (which is AGPL-3.0).

Not converted locally — these are the ONNX checkpoints Megvii publishes alongside YOLOX itself.

Credit: Megvii.

What this repo contains

FileParamsSizemAP (COCO val)Inference cost
yolox_nano.onnx0.9M3.5 MB25.8smallest, mobile/edge
yolox_tiny.onnx5.1M20 MB32.8mobile / fast CPU
yolox_s.onnx9.0M35 MB40.5recommended general default
yolox_m.onnx25.3M97 MB46.9balanced
yolox_l.onnx54.2M207 MB49.7quality > speed
yolox_x.onnx99.1M378 MB51.1maximum accuracy
yolox_darknet.onnx63.7M244 MB47.7Darknet backbone variant, mostly historical

All variants share the same 80-class COCO label set and the same input/output tensor signature — you can swap sizes without rewriting inference code.

How to use

import onnxruntime as ort
import numpy as np

sess = ort.InferenceSession("yolox_s.onnx")

# Input: [1, 3, 640, 640] float32, RGB, NOT normalized (YOLOX expects raw [0,255]).
# Letterbox-pad images to 640x640 maintaining aspect ratio before feeding.
outputs = sess.run(None, {"images": img_tensor})[0]

# Outputs: [1, 8400, 85]
#   8400 = anchor predictions (P3/P4/P5 grids combined)
#   85   = (cx, cy, w, h, obj_conf, *80 class probs)
# Decode by multiplying obj_conf × max(class_probs), apply NMS.

Reference postprocessing in Python and C++: Megvii's YOLOX/demo/ONNXRuntime.

Which one should I use?

  • CPU / mobile / NPU: yolox_nano or yolox_tiny
  • General-purpose: yolox_s (the recommended default)
  • GPU, accuracy matters: yolox_l or yolox_x
  • yolox_darknet is included for reproducibility but the CSPDarknet-backbone variants above generally supersede it.

Why not YOLOv8?

YOLOv8 (Ultralytics) is AGPL-3.0 — using it in commercial or closed-source software triggers strong copyleft obligations. YOLOX is Apache-2.0 and roughly comparable on accuracy. The DatumV catalog uses YOLOX as the default detector for this reason.

License

Apache-2.0 — same as upstream. LICENSE file included.

Sources

1 source
Hugging FacePrincipalVersion 9206d80cbad9ed54986edeff8d7457eb5333882a
huggingface.co/Heliosoph/yolox-onnx/tree/9206d80cbad9ed54986edeff8d7457eb5333882a

Vérifié 1 nov.

Download files

Artefacts du modèle

7 artefacts

yolox_darknet.onnx

onnx · 243 MB · SHA-256 10ccc527877c…5d05 · Hugging Face

Download file

yolox_l.onnx

onnx · 207 MB · SHA-256 7860ae79de6c…a411 · Hugging Face

Download file

yolox_m.onnx

onnx · 96,6 MB · SHA-256 21ff6cfdeb53…5b3f · Hugging Face

Download file

yolox_nano.onnx

onnx · 3,49 MB · SHA-256 c789161ed43c…0b7d · Hugging Face

Download file

yolox_s.onnx

onnx · 34,2 MB · SHA-256 c5c2d13e59ae…8063 · Hugging Face

Download file

yolox_tiny.onnx

onnx · 19,3 MB · SHA-256 427cc366d34e…b0f7 · Hugging Face

Download file

yolox_x.onnx

onnx · 378 MB · SHA-256 c892d7aaf1c4…7c55 · Hugging Face

Download file

Extraits de sources

2 extraits

--- license: apache-2.0 library_name: onnx tags: - object-detection - yolox - coco - onnx base_model: Megvii-BaseDetection/YOLOX pipeline_tag: object-detection language: - en --- # YOLOX — ONNX (full size ladder) ONNX bundle of [Megvii-BaseDetection/YOLOX](https://github.com/Megvii-BaseDetection/YOLOX) covering all seven published size variants in a single repo. Apache-2.0 licensed alternative to Ultralytics YOLOv8 (which is AGPL-3.0). Not converted locally — these are the ONNX checkpoints Megvii publishes alongside YOLOX itself. Credit: Megvii. ## What this repo contains | File | Params | Size | mAP (COCO val) | Inference cost | |---|---|---|---|---| | `yolox_nano.onnx` | 0.9M | 3.5 MB | 25.8 | smallest, mobile/edge | | `yolox_tiny.onnx` | 5.1M | 20 MB | 32.8 | mobile / fast CPU | | `yolox_s.onnx` | 9.0M | 35 MB | 40.5 | **recommended general default** | | `yolox_m.onnx` | 25.3M | 97 MB | 46.9 | balanced | | `yolox_l.onnx` | 54.2M | 207 MB | 49.7 | quality > speed | | `yolox_x.onnx` | 99.1M | 378 MB | 51.1 | maximum accuracy | | `yolox_darknet.onnx` | 63.7M | 244 MB | 47.7 | Darknet backbone variant, mostly historical | All variants share the same 80-class COCO label set and the same input/output tensor signature — you can swap sizes without rewriting inference code. ## How to use ```python import onnxruntime as ort import numpy as np sess = ort.InferenceSession("yolox_s.onnx") # Input: [1, 3, 640, 640] float32, RGB, NOT normalized (YOLOX expects raw [0,255]). # Letterbox-pad images to 640x640 maintaining aspect ratio before feeding. outputs = sess.run(None, {"images": img_tensor})[0] # Outputs: [1, 8400, 85] # 8400 = anchor predictions (P3/P4/P5 grids combined) # 85 = (cx, cy, w, h, obj_conf, *80 class probs) # Decode by multiplying obj_conf × max(class_probs), apply NMS. ``` Reference postprocessing in Python and C++: [Megvii's YOLOX/demo/ONNXRuntime](https://github.com/Megvii-BaseDetection/YOLOX/tree/main/demo/ONNXRuntime). ## Which one should I use? - **CPU / mobile / NPU:** `yolox_nano` or `yolox_tiny` - **General-purpose:** `yolox_s` (the recommended default) - **GPU, accuracy matters:** `yolox_l` or `yolox_x` - **`yolox_darknet`** is included for reproducibility but the CSPDarknet-backbone variants above generally supersede it. ## Why not YOLOv8? YOLOv8 (Ultralytics) is **AGPL-3.0** — using it in commercial or closed-source softwa...

Source context: 0 downloads · 0 likes · Pipeline object-detection · Library onnx · Repo Heliosoph/yolox-onnx