We compared YOLOv8n, DETR R50, and RF-DETR Nano to see how CNN-based, transformer-based, and hybrid object detectors perform on real-world traffic footage.
Our research used the UA-DETRAC dataset , which contains more than 140,000 frames from 100 traffic surveillance videos.
The results were interesting, but the biggest finding wasn't which model performed best. It was how much all three struggled when evaluated on a different visual domain.
The Three Models
We evaluated three approaches:
YOLOv8n: A lightweight CNN-based detector that uses convolutional features for object detection.
DETR R50: A transformer-based detector that combines a ResNet-50 backbone with attention-based object prediction.
RF-DETR Nano: A hybrid detector that combines convolutional feature extraction with transformer attention.
One important detail: RF-DETR was evaluated as a class-agnostic detector , meaning it identified vehicle-like objects without distinguishing cars, buses, and other vehicle categories.
This limits direct…