Skip to content

The official implementation for "RDDM: Practicing RAW Domain Diffusion Model for Real-world Image Restoration"

License

Notifications You must be signed in to change notification settings

YanCHEN-fr/RDDM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

RDDM: Practicing RAW Domain Diffusion Model for Real-world Image Restoration

The official implementation for "RDDM: Practicing RAW Domain Diffusion Model for Real-world Image Restoration"

RDDM Paper on arXiv

RDDM: Practicing RAW Domain Diffusion Model for Real-world Image Restoration

Yan Chen1,†  Yi Wen1†  Wei Li1  Junchao Liu1  Yong Guo2  Jie Hu1  Xinghao Chen1
1Huawei Noah’s Ark Lab, 2Max Planck Institute for Informatics

Abstract: We present the RAW domain diffusion model (RDDM), an end-to-end diffusion model that restores photo-realistic images directly from the sensor RAW data. While recent sRGB-domain diffusion methods achieve impressive results, they are caught in a dilemma between high fidelity and realistic generation. As these models process lossy sRGB inputs and neglect the accessibility of the sensor RAW images in many scenarios, e.g., in image and video capturing in edge devices, re- sulting in sub-optimal performance. RDDM obviates this limitation by directly restoring images in the RAW domain, replacing the conventional two-stage im- age signal processing (ISP)→Image Restoration (IR) pipeline. However, a simple adaptation of pre-trained diffusion models to the RAW domain confronts the out- of-distribution (OOD) issues. To this end, we propose: (1) a RAW-domain VAE (RVAE), encoding sensor RAW and decoding it into an enhanced linear domain image, (2) a configurable multi-bayer (CMB) LoRA module, adapting diverse RAW Bayer patterns such as RGGB, BGGR, etc. To compensate for the defi- ciency in the dataset, we develop a scalable data synthesis pipeline synthesizing RAW LQ-HQ pairs from existing sRGB datasets for large-scale training. Ex- tensive experiments demonstrate RDDM’s superiority over state-of-the-art sRGB diffusion methods, yielding higher fidelity results with fewer artifacts. RDDM

Overview

RDDM

News

  • [2025.11] This repo is created.

Dependencies & Installation

Please refer to the following simple steps for installation.

git clone https://github.com/YanCHEN-fr/RDDM.git
cd RDDM
conda create -n RDDM python=3.10 -y
conda activate RDDM
pip install -r requirements.txt

Datasets

Training

cd RDDM
bash train.sh

Test

bash test.sh

Results

Qualitative Comparisons on real RAW dataset (DND)

RDDM

Qualitative Comparisons with diffusion-based methods

RDDM

Qualitative Comparisons with GAN-based methods

RDDM

Quantitative Comparisons

RDDM

Acknowledgement

This work is released under the Apache 2.0 license.

About

The official implementation for "RDDM: Practicing RAW Domain Diffusion Model for Real-world Image Restoration"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published