RAW-Adapter: Adapting Pre-trained Visual Model to Camera RAW Images and A Benchmark
Ziteng Cui, Jianfei Yang, Tatsuya Harada
TL;DR
This work introduces RAW-Adapter, a lightweight framework that aligns RAW camera data with sRGB-pretrained models through input-level adapters (predicting ISP-like parameters and color mappings) and model-level adapters (injecting ISP priors into backbone features). It also presents RAW-Bench, a 17-type RAW-corruption suite to evaluate in-domain and out-of-domain robustness, and a RAW-based data augmentation strategy to boost OOD generalization. Empirical results across object detection and semantic segmentation demonstrate SOTA or near-SOTA performance and improved robustness under diverse degradations, including cross-sensor transfers, with a modest parameter footprint. Together, RAW-Adapter and RAW-Bench offer a practical path toward robust, efficient RAW-domain perception suitable for real-world applications like autonomous driving and surveillance.
Abstract
In the computer vision community, the preference for pre-training visual models has largely shifted toward sRGB images due to their ease of acquisition and compact storage. However, camera RAW images preserve abundant physical details across diverse real-world scenarios. Despite this, most existing visual perception methods that utilize RAW data directly integrate image signal processing (ISP) stages with subsequent network modules, often overlooking potential synergies at the model level. Building on recent advances in adapter-based methodologies in both NLP and computer vision, we propose RAW-Adapter, a novel framework that incorporates learnable ISP modules as input-level adapters to adjust RAW inputs. At the same time, it employs model-level adapters to seamlessly bridge ISP processing with high-level downstream architectures. Moreover, RAW-Adapter serves as a general framework applicable to various computer vision frameworks. Furthermore, we introduce RAW-Bench, which incorporates 17 types of RAW-based common corruptions, including lightness degradations, weather effects, blurriness, camera imaging degradations, and variations in camera color response. Using this benchmark, we systematically compare the performance of RAW-Adapter with state-of-the-art (SOTA) ISP methods and other RAW-based high-level vision algorithms. Additionally, we propose a RAW-based data augmentation strategy to further enhance RAW-Adapter's performance and improve its out-of-domain (OOD) generalization ability. Extensive experiments substantiate the effectiveness and efficiency of RAW-Adapter, highlighting its robust performance across diverse scenarios.
