Navigate:
~$YOLOX0.1%

YOLOX: Anchor-free object detection model

PyTorch anchor-free object detector with scalable model variants.

LIVE RANKINGS • 02:15 PM • STEADY
OVERALL
#385
25
AI & ML
#105
4
30 DAY RANKING TREND
ovr#385
·AI#105
STARS
10.3K
FORKS
2.4K
7D STARS
+5
7D FORKS
+5
Tags:
See Repo:
Share:

Learn more about YOLOX

YOLOX is an object detection model that removes the anchor-based detection mechanism used in earlier YOLO versions, replacing it with an anchor-free approach. The architecture is implemented in PyTorch with a companion MegEngine implementation available separately. The model family includes variants ranging from YOLOX-Nano with 0.91M parameters to YOLOX-X with 99.1M parameters, enabling deployment across different computational constraints. Common applications include real-time object detection in computer vision pipelines, with support for edge deployment through quantization and conversion to optimized inference formats.

YOLOX

1

Anchor-Free Detection

Eliminates anchor boxes from the detection pipeline, removing hyperparameter tuning for anchor dimensions and aspect ratios. Simplifies training workflow while maintaining accuracy comparable to anchor-based YOLO versions.

2

Multi-Framework Deployment

Export trained models to ONNX, TensorRT, ncnn, OpenVINO, and MegEngine with built-in conversion scripts. Enables deployment across cloud GPUs, edge devices, and mobile hardware without manual optimization.

3

Scalable Model Variants

Provides five model sizes from Nano (0.91M parameters) to X (99.1M parameters) with consistent architecture. Allows selection based on target hardware constraints, from resource-limited embedded devices to high-performance server inference.


import torch
from yolox.exp import get_exp

exp = get_exp(None, "yolox-s")
model = exp.get_model()
ckpt = torch.load("yolox_s.pth", map_location="cpu")
model.load_state_dict(ckpt["model"])
model.eval()

img = torch.randn(1, 3, 640, 640)
outputs = model(img)

v0.3.0

YOLOX 0.3.0

  • support loading YOLOX model through `torch.hub` #1189
  • support just-in-time compile op #1241
  • support wandb logger #1144
  • support `freeze` function for torch module #1156
  • support showing YOLOX demo in a live window #1138
v0.2.0

```pip install yolox``` could help you to install yolox now.

  • Saved 30% memory useage in COCO training. #1066
  • Log per class AP & AP during evaluation. #1026 #1052
  • Users could install yolox from pip now! Supports on more platform is coming. #1020 #1079
  • Optimize dynamic matching in label assignment. #861
v0.1.1rc0

0.1.1 pre release

  • Support image caching for faster training, which requires large system RAM.
  • Remove the dependence of apex and support torch amp training.
  • Optimize the preprocessing for faster training
  • Replace the older distort augmentation with new HSV aug for faster training and better performance.
  • d: number of gpu devices

See how people are using YOLOX

Loading tweets...


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers