GithubHelp home page GithubHelp logo

ashutoshkulkarni4998 / umwtransformer Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 1.92 MB

Inference code for "Unified Multi-Weather Transformer for Multi-Weather Image Restoration".

Python 100.00%
computer-vision dehazing deraining desnowing low-level-vision transformers

umwtransformer's Introduction

Unified Transformer Network for Multi-Weather Image Restoration [ECCVW-2022]

video Poster

Inference code for the manuscript "Unified Transformer Network for Multi-Weather Image Restoration"

Abstract

Vision based applications routinely involve restoration as a preprocessing step, making it impossible to have separate architectures for different types of weather restoration. But, most of the existing methods focus on weather specific application. Further, the methods for multi-weather image restoration have high computational constraints. To overcome these limitations, we propose a compact transformer based network, with 4.5M parameters (1/10th of the existing method) for unified (simultaneous) removal of rain, snow and hazy effect with single set of trained parameters. We propose two parallel streams to handle the degradations: First, original resolution transformer stream (ORTS) focuses mainly on extracting fine level features through original scales of the inputs. Second, multi-level feature aggregation stream (MFAS) learns different sizes of the weather degradations. Further, it also uses coarse outputs from the first stream and utilizes edge boosting skip connections (EBSC) for propagating crucial edge details essential for image restoration. Finally, we present a memory replay training approach for generalization of the proposed network on multi-weather degraded scenarios. Substantial experiments on synthetic as well as realworld images, along with extensive ablation studies, demonstrate that the proposed method performs competitively with the existing methods for multi-weather image restoration.

Arrange the testing images in the format:

    UMWTransformer-main
    ├── testing_data
    |   |── input         # degraded images (In realworld case, keep the same image in both the folders)
    |   |── gt            # clean images

Download the pretrained checkpoint from here.

To run the inference code, run the following commands:

python test.py

Acknowledgement:

This code is derived from UFormer.

umwtransformer's People

Contributors

ashutoshkulkarni4998 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

umwtransformer's Issues

[Aerial Image Dehazing with Attentive Deformable Transformers] asking for training files

With regards to the paper "Aerial Image Dehazing with Attentive Deformable Transformers" published in WACV 2023, I really want to apply your intriguing model to address my domain in Agriculture. Without training files, I cannot employ your idea correctly and efficiently. Therefore, could you please upload the training file?

I did email to your mail written in the paper "[email protected]". Would you please reply my request?
Thank you very much.

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.