Real-Time Scene-Adaptive Tone Mapping for High-Dynamic Range Object Detection

Gongzhe Li, Linwei Qiu, Peibei Cao, Fengying Xie, Xiangyang Ji, Qilin Sun

TL;DR

This paper introduces a lightweight, end-to-end trainable framework that bridges the gap between 24-bit High-Dynamic Range (HDR) RAW sensor data and standard object detection networks. By using neural photometric calibration and a scaling-invariant tone mapper, the authors achieve state-of-the-art detection accuracy and real-time 4K processing (45 FPS) on edge devices like the NVIDIA Jetson.

What Problem Does This Paper Address?

Modern HDR sensors (like the Sony IMX490) can capture an incredible dynamic range of up to 140 dB—far exceeding the 8-bit (48 dB) Low-Dynamic Range (LDR) sRGB images most object detectors (like YOLO or Faster R-CNN) were designed for.

When you feed raw HDR data directly into these networks, they fail. The extreme luminance contrasts lead to "gradient instability," where the mathematical signals used to train the network essentially collapse. Traditionally, engineers use an Image Signal Processor (ISP) to "tone map" HDR data down to LDR. However, standard ISPs are designed to make images look good to humans, not to help machines detect cars in a dark tunnel. Existing "AI-ISPs" are often too slow for real-time use on autonomous vehicles or lack the flexibility to handle both blinding sunlight and pitch-black nights.

Methods

The authors propose a two-stage "Neural Tone Mapping" pipeline that is optimized specifically for the downstream detection task:

Architecture of the proposed end-to-end neural tone mapping pipeline.
  1. Neural Photometric Calibration: This module regularizes the extreme dynamic range by projecting pixel values into a unified "radiance space." It uses a small feature extractor to predict a scale map ($K$) that adaptively adjusts based on whether the scene is day or night. This prevents the network from being overwhelmed by absolute brightness values.
  2. Scaling-Invariant Tone Mapper ($TM_{SI}$): The authors prove mathematically that a "bias-free" neural network (one consisting only of Convolution, Batch Normalization, and ReLU, with no additive bias terms) is scaling-invariant. This means the network preserves local contrast and details regardless of the global brightness level—a critical property for consistent object detection across varying environments.
  3. End-to-End Optimization: Unlike traditional ISPs, this module is trained alongside the object detector. They use a "Performance Transfer" strategy, taking a model already proficient at detecting objects in LDR sRGB and fine-tuning it to handle HDR RAW data with minimal computational cost.

Datasets

  • RoD (Raw object Detection) Dataset: A challenging dataset containing over 20,000 24-bit HDR RAW images captured with the Sony IMX490 sensor, featuring complex automotive scenes (tunnels, night driving, etc.).
  • RhoVision: Used to test cross-scene generalization, ensuring the model works on data from different environments than the training set.

Key Insights and Ideas

  • The "Bias-Free" Advantage: The most elegant insight is that removing additive bias terms from a CNN makes it functionally equivalent to a local tone mapping operator. This ensures that the relative "shape" of an object is preserved even if the lighting intensity shifts by several orders of magnitude.
  • Gradient Stability Theory: The authors provide a theoretical derivation showing that the gradient of the loss function is proportional to the square of the dynamic range. This explains why HDR data causes training to fail and justifies the need for photometric calibration.
  • Machine vs. Human Vision: The results reinforce that what looks "good" to a human (a pretty, colorful ISP output) isn't necessarily what is best for a detector. Their "Ours (Lite)" model produces images that might look strange to us but allow the detector to "see" through glare and deep shadows more effectively.

Key Results

Comparison of mAP, inference latency, and parameter count against state-of-the-art methods.
  • Speed: The "Lite" version of their model achieves 45 FPS at 4K resolution on an NVIDIA Jetson AGX Orin. This is a massive leap for real-time edge applications.
  • Accuracy: On the RoD dataset, their method achieved a 49.8 mAP (Mean Average Precision), outperforming professional handcrafted ISPs (45.7 mAP) and state-of-the-art AI-ISP methods like RAODNet (46.1 mAP).
  • Robustness: The system showed significant improvements in "transition" scenes, such as a car exiting a dark tunnel into bright sunlight, where traditional auto-exposure often fails.

Limitations and Future Work

While the method is highly efficient, the authors note that it still requires a "cascaded" approach where the tone mapper sits in front of a detector. They suggest that future work could involve designing a "unified" detector that handles HDR data natively without an explicit tone-mapping stage, potentially by further exploiting sensor-level metadata. Additionally, while tested on automotive sensors, the generalization to other types of HDR hardware (like mobile phone sensors) remains an open area for exploration.

Summary updated

BibTeX
@inproceedings{li2025real,
  author = {Gongzhe Li and Linwei Qiu and Peibei Cao and Fengying Xie and Xiangyang Ji and Qilin Sun},
  title = {{Real-Time Scene-Adaptive Tone Mapping for High-Dynamic Range Object Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=hAi0JapiZ7},
}
Figure