r/computervision • u/Entire-Bite1136 • 7d ago
Showcase Real-world inference benchmarks: Linux CUDA EP vs Windows DirectML on mobile GTX 1650 Ti (i5-10300H)
Lobo-to-lobo comparison on the same serviced laptop hardware (Intel i5-10300H + discrete mobile GTX 1650 Ti with GDDR6). Bypassing heavy Python dependencies via a lightweight native C-API pipeline.
The Pipeline:
- Frame capture to RAM (NV12 format).
- Localized detection: YOLOX-nano (640x640) inside a targeted 3x3 control zone. Pure FP32 to ensure bounding box geometry stability.
- Feature extraction: 256x256 ROI crop processed for 44 distinct texture/geometry metrics.
- Classification: Downstream CPU-bound LightGBM classifier evaluating extracted features.
Key Technical Outcomes (Part 6): Windows 11 + DirectML backend: Hitting a stable 106–111 FPS (~5.0 ms inference latency). Standard DX12 compute shader translation introduces slight frame-pacing variance (t_max up to 11 ms). Linux + Native NVIDIA CUDA EP backend: Delivering a constant 114–116 FPS (~4.1 ms inference latency) with a strictly bounded t_max limit. Shifting from DirectML to the native CUDA driver layer reduces raw execution overhead on the Turing architecture. Preprocessing overhead: Isolated at 1.5–2.2 ms inside OS threads, remaining consistent across both environments.
Best regards.
olesha-ai