电气工程与系统科学 > 图像与视频处理
[提交于 2025年1月22日]
标题:Need for Speed: A Comprehensive Benchmark of JPEG Decoders in Python
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Image loading represents a critical bottleneck in modern machine learning pipelines, particularly in computer vision tasks where JPEG remains the dominant format. This study presents a systematic performance analysis of nine popular Python JPEG decoding libraries on different computing architectures. We benchmark traditional image processing libraries (Pillow, OpenCV), machine learning frameworks (TensorFlow, PyTorch), and specialized decoders (jpeg4py, kornia-rs) on both ARM64 (Apple M4 Max) and x86\_64 (AMD Threadripper) platforms. Our findings reveal that modern implementations using libjpeg-turbo achieve up to 1.5x faster decoding speeds compared to traditional approaches. We provide evidence-based recommendations for choosing optimal JPEG decoders across different scenarios, from high-throughput training pipelines to real-time applications. This comprehensive analysis helps practitioners make informed decisions about image loading infrastructure, potentially reducing training times and improving system efficiency.
提交历史
来自:Vladimir Iglovikov[v1] 2025年1月22日 星期三 01:45:06 UTC