rebeccaeexu / RRID

[ECCV 2024] Image Demoireing in RAW and sRGB Domains
4 stars 0 forks source link
demoireing eccv2024

[ECCV 2024] RRID

Image Demoireing in RAW and sRGB Domains #Paper Link

Shuning Xu, Binbin Song, Xiangyu Chen, Xina Liu and Jiantao Zhou

Updates

Overview

image-20240701125450731

image-20240701125517073

Moiré patterns frequently appear when capturing screens with smartphones or cameras, potentially compromising image quality. Previous studies suggest that moiré pattern elimination in the RAW domain offers greater effectiveness compared to demoiréing in the sRGB domain. Nevertheless, relying solely on RAW data for image demoiréing is insufficient in mitigating the color cast due to the absence of essential information required for the color correction by the image signal processor (ISP). In this paper, we propose to jointly utilize both RAW and sRGB data for image demoiréing (RRID), which are readily accessible in modern smartphones and DSLR cameras. We develop Skip-Connection-based Demoiréing Module (SCDM) with Gated Feedback Module (GFM) and Frequency Selection Module (FSM) embedded in skip-connections for the efficient and effective demoiréing of RAW and sRGB features, respectively. Subsequently, we design a RGB Guided ISP (RGISP) to learn a device-dependent ISP, assisting the process of color recovery. Extensive experiments demonstrate that our RRID outperforms state-of-the-art approaches, in terms of the performance in moiré pattern removal and color cast correction by 0.62dB in PSNR and 0.003 in SSIM.

Demoireing Results

image-20240701125619798

image-20240701125646976

Fig. 3: Qualitative comparison on RAW image demoiréing TMM22 dataset

Environment

Prepare

  1. Download TMM22 dataset.
  2. Download the pre-trained model.

How To Test

PYTHONPATH="./:${PYTHONPATH}" CUDA_VISIBLE_DEVICES=0 python test.py -opt options/test/Test.yml

How To Train

PYTHONPATH="./:${PYTHONPATH}" CUDA_VISIBLE_DEVICES=0 python train.py -opt options/train/Train.yml
PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0,1,2,3 \
python -m torch.distributed.launch --nproc_per_node=4 --master_port=4321 train.py -opt options/train/Train.yml --launcher pytorch

Results

The inference results on benchmark datasets are available at Dropbox link.

Citations

BibTeX

@article{xu2023image,
  title={Image Demoireing in RAW and sRGB Domains},
  author={Xu, Shuning and Song, Binbin and Chen, Xiangyu and Zhou, Jiantao},
  journal={arXiv preprint arXiv:2312.09063},
  year={2023}
}