arXiv:2610.26644cs.CVOct 2026

Manuscript Offprint

arXiv:2610.26644

Dual-Scale Condition-Shift Editing for Robust Real-World Image Demoiréing

Shiyang Zhou, Haijin Zeng, Congpei Qiu, Zhengcen Li, Ping Chen, Xiangming Wang, Zheng Li, Yongyong Chen, Jingyong Su

ABSTRACT

Robust demoiréing of screen-recaptured images remains challenging: moiré varies in frequency, color, and spatial support across display-camera pairs and capture conditions. Dedicated restoration networks trained on finite paired data struggle with this diversity, especially when low-frequency color banding and high-frequency stripes co-occur. We present DemoiréEdit, a content-preserving editing framework that adapts the natural-image prior of a pretrained flow-matching editor to demoiréing. First, an endpoint-supervised training objective supplements velocity matching with pixel, perceptual, and frequency-domain restoration losses. Second, a dual-scale condition-shift strategy performs global correction at low resolution, then refines the image at full resolution by shifting the denoising condition from the first-stage output to the original input for detail recovery. We also introduce DailyMoiré130, a benchmark of challenging moiré in everyday screen photography, comprising 130 smartphone captures across diverse displays with low-frequency color banding, fine high-frequency stripes, and mixed-frequency interference. On the challenging DailyMoiré130 benchmark, our method achieves the lowest residual moiré area and receives 71.3% overall-quality preference in a blind Best-of-7 study with 31 participants. We also evaluate on paired FHDMi/UHDM, reducing residual moiré confidence by 47.1%/9.3% and increasing MUSIQ by 4.3%/2.0% over the best baseline for each metric.

1 INTRODUCTION

Moiré artifacts arise from the spatial-frequency interference between a display’s pixel array and a camera’s sensor grid during screen recapture (Sidorov & Kokaram, 2002; Sun et al., 2018; Wang et al., 2023a). Unlike noise or blur with a statistically stable spectrum, moiré has no fixed frequency signature: low-frequency color banding and high-frequency stripes can co-occur within the same image (Figs. 1 and 2). Their mixture varies with viewing angle, device pairing, and local scene content (Sun et al., 2018; Yuan et al., 2019), making the degradation difficult to characterize with a single spectral model.

Existing approaches train dedicated convolutional or transformer networks from scratch on dataset-specific moiré pairs (Sun et al., 2018; He et al., 2019; Zheng et al., 2020; Liu et al., 2020; He et al., 2020; Yu et al., 2022; Xiao et al., 2024; Zhong et al., 2024; Liu et al., 2025). These models lack a broader natural-image prior, and their restoration quality can degrade on scenes, devices, or capture conditions outside the training distribution. Moreover, existing benchmarks cover relatively limited device pairings and capture conditions (Sun et al., 2018; Yuan et al., 2019; 2020; He et al., 2020; Yu et al., 2022; Xu et al., 2024). This limited diversity underrepresents complex real-world moiré, limiting how accurately these benchmarks assess demoiréing performance in the wild.

Our key observation is that dedicated demoiréing models trained on limited paired data often struggle to restore complex real-world textures under challenging out-of-distribution moiré corruption. Their ability to recover the underlying content is constrained by the visual patterns represented in their training data. In contrast, a pretrained image editor provides a broader natural-image prior acquired through large-scale pretraining, offering the potential to restore content under severe moiré corruption beyond the coverage of task-specific paired data (Rombach et al., 2022; Brooks et al., 2023; Saharia et al., 2022; Zhang et al., 2023; Wang et al., 2024; Lin et al., 2024; Yu et al., 2024). This motivates treating demoiréing as a content-preserving editing task and adapting a pretrained flow-matching image editor (Wu et al., 2025) to exploit this prior.

However, applying this generative prior to demoiréing requires adapting it to the fidelity demands of image restoration. We therefore supplement standard velocity matching with endpoint restoration losses that directly supervise the restored image. The remaining challenge is to handle the co-occurrence of low-frequency color banding and high-frequency stripes while preserving fine details. To address this, DemoiréEdit uses a dual-scale condition-shift strategy that first performs global correction at low resolution and then refines the image at full resolution. Since the corrected estimate provides global guidance but lacks fine detail, early denoising steps use the Stage 1 output, whereas later steps return to the original input for detail recovery.

To evaluate challenging moiré encountered in daily life, we introduce DailyMoiré130: 130 smartphone captures of signage, monitors, and laptops exhibiting low-frequency color banding, fine high-frequency stripes, and mixed-frequency interference (Fig. 4). These captures lack aligned clean targets; evaluation combines residual moiré metrics with separate human judgments of suppression, detail preservation, and overall quality.

On DailyMoiré130, our method achieves the lowest residual moiré area and receives 71.3% overall-quality preference in a blind Best-of-7 study with 31 participants. We also evaluate on paired FHDMi/UHDM, reducing residual moiré confidence by 47.1%/9.3% and increasing MUSIQ by 4.3%/2.0% over the best baseline for each metric (Tab. 2). Our contributions are:

• We reformulate demoiréing as content-preserving editing and introduce endpoint-supervised flow training to adapt a pretrained editor for faithful restoration.

• We propose dual-scale condition-shift inference to separate global moiré correction from full-resolution detail recovery.

• We introduce DailyMoiré130, a benchmark targeting challenging moiré in everyday screen photography, with a reference-free evaluation protocol. The dataset is publicly available to support future comparisons (Appendix D).

References (70)