ReRAW: RGB-to-RAW Image Reconstruction via Stratified Sampling for Efficient Object Detection on the Edge

R. Berdan, Beril Besbinar, Christoph Reinders, Junji Otsuka, Daisuke Iso
2/10/2026

No official code found. Best implementation: SonyResearch/ReRAW (39 stars, MIT, last commit 2025-09-24).

Abstract

Edge-based computer vision models running on compact, resource-limited devices benefit greatly from using unprocessed, detail-rich RAW sensor data instead of processed RGB images. Training these models, however, necessitates large labeled RAW datasets, which are costly and often impractical to obtain. Thus, converting existing la- beled RGB datasets into sensor-specific RAW images becomes crucial for effective model training. In this paper, we introduce ReRAW, an RGB-to-RAW conversion model that achieves state-of-the-art reconstruction performance across five diverse RAW datasets. This is accomplished through ReRAW’s novel multi-head architecture predicting RAW image candidates in gamma space. The performance is further boosted by a stratified sampling-based training data selection heuristic, which helps the model better reconstruct brighter RAW pixels. We finally demonstrate that pretraining compact models on a combination of high-quality synthetic RAW datasets (such as generated by ReRAW) and ground-truth RAW images for downstream tasks like object detection, outperforms both standard RGB pipelines, and RAW fine-tuning of RGB-pretrained models for the same task. The code is available at: https://github.com/ SonyResearch/ReRAW

View on arXivView PDF

Code Implementations(1)

SonyResearch/ReRAWCommunity67%
MIT

Implementation of ReRAW: RGB-to-RAW Image Reconstruction via Stratified Sampling for Efficient Object Detection on the Edge

393PythonNov 15, 20241 years agoMIT

Similar Papers

Cite this paper

@article{berdan2026reraw,
  title  = {ReRAW: RGB-to-RAW Image Reconstruction via Stratified Sampling for Efficient Object Detection on the Edge},
  author = {R. Berdan and Beril Besbinar and Christoph Reinders and Junji Otsuka and Daisuke Iso},
  year   = {2026},
  eprint = {2503.03782},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.03782},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.03782.svg)](https://codeofpaper.com/paper/2503.03782)

Discussion