Coder Social home page Coder Social logo

anyir's Introduction

AnyIR

Any Image Restoration with Efficient Automatic Degradation Adaptation

The official PyTorch Implementation of AnyIR for All-in-One Image Restoration

1 University of Pisa, Italy,
2 University of Trento, Italy,
3 University of Würzburg, Germany,
4 ETH Zürich, Switzerland,
5 INSAIT Sofia University, Bulgaria,

paper

Latest

  • 07/18/2024: Repository is created. Our code will be made publicly available upon acceptance.

Method


Abstract Reconstructing missing details from degraded low-quality inputs poses a significant challenge. Recent progress in image restoration has demonstrated the efficacy of learning large models capable of addressing various degradations simultaneously. With the emergence of mobile devices, there is a growing demand for an efficient model to restore any degraded image for better perceptual quality. However, existing models often require specific learning modules tailored for each degradation, resulting in complex architectures and high computation costs. Different from previous work, in this paper, we propose a unified manner to achieve joint embedding by leveraging the inherent similarities across various degradations for efficient and comprehensive restoration. Specifically, we first dig into the sub-latent space of each input to analyze the key components and reweight their contributions in a gated manner. The intrinsic awareness is further integrated with contextualized attention in an X-shaped scheme, maximizing local-global intertwining. Extensive comparison on benchmarking all-in-one restoration setting validates our efficiency and effectiveness, i.e., our network sets new SOTA records while reducing model complexity by approximately \textbf{-82\%} in trainable parameters and \textbf{-85\%} in FLOPs. Our code will be made publicly available upon acceptance.

Installation

Environments

# Step1: Create the virtual environments via micromamba or conda:
micromamba create -n anyir python=3.9 -y
or
conda create -n anyir python=3.9 -y

# Step2: Prepare PyTorch and other libs
pip install -r requirements.txt

Datasets

Citation

If you find our work helpful, please consider citing the following paper and/or ⭐ the repo.

@misc{ren2024any,
      title={Any Image Restoration with Efficient Automatic Degradation Adaptation}, 
      author={Bin Ren and Eduard Zamfir and Yawei Li and Zongwei Wu and Danda Pani Paudel and Radu Timofte and Nicu Sebe and Luc Van Gool},
      year={2024},
      eprint={2407.13372},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Acknowledgements

This code is built on PromptIR and AirNet.

anyir's People

Contributors

amazingren avatar

Stargazers

LIU WENYANG avatar meisa233 avatar  avatar  avatar  avatar Henry avatar Yu Guo (郭彧) avatar Jingbo Lin avatar  avatar  avatar Elad Meir avatar  avatar Eduard Zamfir avatar  avatar

Watchers

bro_q_dev avatar  avatar vince avatar Ahmad Mustafa Anis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.