YOLOX vs RF-DETR
YOLOX or RF-DETR? Choose by speed and footprint versus accuracy on crowded scenes. Both train from the same export, so you can train both and compare.
Pictograph trains two object detectors from the same export. Use YOLOX when speed and a small footprint matter, and RF-DETR when accuracy on crowded or cluttered scenes matters.
Pick in one table
| If you care most about | Train | Why |
|---|---|---|
| Real-time or edge inference | yolox |
A compact network, fast and small to deploy |
| A small or clean dataset | yolox |
Learns quickly and rarely overfits a few hundred images |
| Crowded or cluttered scenes (shelves, traffic, aerial) | rfdetr_detection |
Sees the whole image, so overlapping objects stay apart |
| Many overlapping objects | rfdetr_detection |
Predicts each object once, with no duplicate boxes to merge |
| The lowest cost per run | yolox |
Fewer GPU-seconds to a usable model |
How they differ
- YOLOX is an anchor-free YOLO-family detector. It predicts a dense grid of boxes and merges duplicates (non-maximum suppression): fast to run, cheap to train, a compact ONNX graph.
- RF-DETR is a real-time DETR, a transformer that predicts each object once. It usually reaches a higher mAP on hard data, but costs more compute per image and wants more data.
Speed and cost
YOLOX reaches a usable model in fewer GPU-seconds (what a run costs)
and serves faster: on a live 1080p camera and an L4 GPU, YOLOX-s answers a frame in 3.75 ms
(FP16) and RF-DETR small in 7.2 ms (TF32), capture to result
(measured). For RF-DETR, gpu_type="auto" picks the
cheapest GPU its config fits; large images or batches may need an a100.
Train both and compare
Both read the same export and report mAP. Unsure? Train both and keep the better one:
from pictograph import Client, TrainingRun
client = Client()
yolox: TrainingRun = client.training.create(
dataset="road-signs",
export="road-signs-v1",
pipeline_type="yolox",
name="road-signs-yolox",
config={"epochs": 50, "batch_size": 16},
)
rfdetr: TrainingRun = client.training.create(
dataset="road-signs",
export="road-signs-v1",
pipeline_type="rfdetr_detection",
name="road-signs-rfdetr",
gpu_type="auto",
config={"epochs": 50, "batch_size": 8},
)
print(yolox.metrics.get("mAP"), rfdetr.metrics.get("mAP"))
Beyond boxes
Masks, pose, semantic maps and image labels each have one pipeline (list); YOLOX has no mask or keypoint variant, so segmentation and pose train on the RF-DETR family.