Real-time object detection still forces a choice between accuracy and latency. Most production pipelines either run too slow for edge deployment or sacrifice too much mAP to hit 30 FPS.
TL;DR: DART (Detect Anything Real Time) is an open-source real-time detection framework that fuses a lightweight backbone with class-agnostic proposal generation and fast post-processing. It’s designed to run on commodity GPUs and edge devices without dropping below real-time throughput.
The Problem With Current AI Workflows
Production computer vision teams usually hit three walls. First, heavy backbones like ResNet-101 or EfficientNet-B5 deliver good mAP but choke at 10–15 FPS on a single T4. Second, class-specific models require retraining every time the object taxonomy changes, which is impractical for retail shelves, factory floors, or construction sites where new SKUs appear weekly. Third, the path from PyTorch checkpoint to deployed inference is littered with ONNX export errors, TensorRT calibration drift, and hand-tuned NMS thresholds that break when lighting changes.
DART attacks this by treating detection as a streaming systems problem, not just a model problem. The goal is sustained throughput on fixed hardware, not peak accuracy on a benchmark leaderboard.
How the Architecture Actually Works
[ Input Stream ] (RTSP / Webcam / File / Directory)
│
▼
[ Preprocessing ] → Resize / Letterbox / Normalize / CHW
│
▼
[ Backbone ] → Lightweight CNN + Feature Pyramid (P3–P7)
│
▼
[ Detection Head ] → Class-agnostic boxes + objectness scores
│
▼
[ Post-Processing ] → Confidence filter → NMS / Soft-NMS → Class map
│
▼
[ Output Sink ] → Annotated frames / MP4 / RTSP / HTTP MJPEG / MQTT
Component breakdown:
- Input abstraction – Unified capture interface for RTSP cameras, USB webcam indices, video files, and image directories. No custom glue code per source.
- Backbone – A slim CNN with a feature pyramid. The architecture avoids oversized blocks so feature extraction stays under a few milliseconds per frame on an RTX 3060 or Jetson Orin.
- Detection head – Class-agnostic box regression with objectness scoring. Semantic labels are applied in a separate mapping layer, which means you can swap class lists without retraining the detector.
- Post-processor – Confidence thresholding, non-maximum suppression (or Soft-NMS for overlapping objects), and optional tracking ID assignment. This runs on CPU while the GPU processes the next batch.
- Output sink – Pluggable writers: OpenCV video writer, RTSP restream, or MJPEG over HTTP for dashboard embedding.
The critical path is backbone → head → NMS. Everything else runs on separate threads or processes so the GPU never waits on disk I/O or network serialization.
Quick Start (Copy-Paste Setup)
# Clone the repo
git clone https://github.com/mkturkcan/DART.git
cd DART
# Environment
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
# Weights (check the repo README for exact weight names/links)
python scripts/download_weights.py --model dart-nano --out weights/
# Run on local webcam
python detect.py \
--source 0 \
--weights weights/dart-nano.pt \
--conf 0.25 \
--iou 0.45 \
--device cuda:0 \
--output output.mp4
# Run on an RTSP stream
python detect.py \
--source rtsp://admin:password@192.168.1.10:554/stream \
--weights weights/dart-nano.pt \
--conf 0.30 \
--device cuda:0
If you prefer a config file instead of flags:
# config.yaml
model: dart-nano
source: 0
conf: 0.25
iou: 0.45
device: cuda:0
output: null
Then run:
python detect.py --config config.yaml
Verify CUDA is visible before you start:
python -c "import torch; print(torch.cuda.is_available())"
If it returns False, the pipeline falls back to CPU and you will not hit real-time FPS on anything above 320×320 input.
Real-World Use Cases & Honest Trade-Offs
Three concrete wins:
- Retail shelf monitoring – Count and locate products on a moving conveyor or static shelf at 25–30 FPS on a single edge box. Because the head is class-agnostic, adding a new SKU is a label-map update, not a full retraining job.
- Industrial quality control – Detect defects on fast-moving parts where latency matters more than fine-grained classification. The low-resolution feature pyramid keeps inference under 15 ms per frame.
- Smart-city traffic feeds – Restream RTSP camera feeds with bounding-box overlays over HTTP MJPEG. The decoupled post-processor means you can add more cameras by adding CPU cores, not more GPUs.
Two honest limitations:
- Class-agnostic is not zero-shot. You still need a class-name mapping file and, for domain-specific objects, a fine-tuning step on your own labeled data. DART speeds up inference; it does not eliminate the need for task-specific data.
- Hardware-bound FPS. “Real time” assumes a modern GPU or capable edge NPU. On a CPU-only laptop or an older Jetson Nano, expect single-digit FPS unless you quantize to INT8 or drop input resolution to 320×320.
Direct Links & Daily Open-Source Drops
- DART – Detect Anything Real Time: https://github.com/mkturkcan/DART
🚀 Join VibeNode AI on Telegram
Daily open-source AI drops, Claude Code hooks, and ready-to-import n8n JSON workflows. Search#Drop04in the channel for this week’s deployment kit.
https://t.me/vibenode_ai
Have you deployed a real-time detection model on edge hardware, and what was your actual bottleneck—memory bandwidth, NMS latency, or model export?
Need a fast fixed-price build (24–72h)? I build turnkey landing pages, Telegram bots/Mini Apps, and Python scrapers — test 8 live interactive demos here or DM
@vlad256bakon Telegram.
Top comments (0)