Skip to content

PyTorch code for our paper "BinaryDemoire: Moiré-Aware Binarization for Image Demoiréing"

Notifications You must be signed in to change notification settings

zhengchen1999/BinaryDemoire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

BinaryDemoire: Moiré-Aware Binarization for Image Demoiréing

Zheng Chen, Zhi Yang, Xiaoyang Liu, Weihang Zhang, Mengfan Wang, Yifan Fu, Linghe Kong, Yulun Zhang,"BinaryDemoire: Moiré-Aware Binarization for Image Demoiréing", arXiv, 2026

[project] [arXiv] [supplementary material]

🔥🔥🔥 News

  • 2025-02-04: This repo is released.

Abstract: Image demoiréing aims to remove structured moiré artifacts in recaptured imagery, where degradations are highly frequency-dependent and vary across scales and directions. While recent deep networks achieve high-quality restoration, their full-precision designs remain costly for deployment. Binarization offers an extreme compression regime by quantizing both activations and weights to 1-bit. Yet, it has been rarely studied for demoiréing and performs poorly when naively applied. In this work, we propose BinaryDemoire, a binarized demoiréing framework that explicitly accommodates the frequency structure of moiré degradations. First, we introduce a moiré-aware binary gate (MABG) that extracts lightweight frequency descriptors together with activation statistics. It predicts channel-wise gating coefficients to condition the aggregation of binary convolution responses. Second, we design a shuffle-grouped residual adapter (SGRA) that performs structured sparse shortcut alignment. It further integrates interleaved mixing to promote information exchange across different channel partitions. Extensive experiments on four benchmarks demonstrate that the proposed BinaryDemoire outperforms the state-of-the-art binarization methods.

⚒️ TODO

  • Release code and pretrained models
  • Test our binarization method on more models

🔎 Method Overview

🔎 Results

Quantitative Results (click to expand)
  • Results in Tab. 2 of the main paper

Qualitative Results (click to expand)
  • Results in Fig. 7 of the main paper

More Qualitative Results
  • More results in Fig. 2 of the supplementary material

📎 Citation

If you find the code helpful in your research or work, please cite our work.

@article{chen2026binarydemoire,
    title={BinaryDemoire: Moiré-Aware Binarization for Image Demoiréing},
    author={Chen, Zheng and Yang, Zhi and Liu, Xiaoyang and Zhang, Weihang and Wang, Mengfan and Fu, Yifan and Kong, Linghe and Zhang, Yulun},
    journal={arXiv preprint arXiv:2602.03176},
    year={2026}
}

💡 Acknowledgements

This project is based on ESDNet, BBCU, and Bi-DiffSR.

About

PyTorch code for our paper "BinaryDemoire: Moiré-Aware Binarization for Image Demoiréing"

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •