Git Product home page Git Product logo

adnet-1's Introduction

ADNet: Attention-guided Deformable Convolutional Network for High Dynamic Range Imaging

By Zhen Liu1,2, Wenjie Lin1, Xinpeng Li1, Qing Rao1, Ting Jiang1, Mingyan Han1, Haoqiang Fan1, Jian Sun1 and Shuaicheng Liu3,1*

1Megvii Technology, 2Sichuan University, 3University of Electronic Science and Technology of China

This is the official Pytorch implementation of ADNet: Attention-guided Deformable Convolutional Network for High Dynamic Range Imaging.

arXiv

Introduction

In this paper, we present an attention-guided deformable convolutional network for hand-held multi-frame high dynamic range (HDR) imaging, namely ADNet. This problem comprises two intractable challenges of how to handle saturation and noise properly and how to tackle misalignments caused by object motion or camera jittering. To address the former, we adopt a spatial attention module to adaptively select the most appropriate regions of various exposure low dynamic range (LDR) images for fusion. For the latter one, we propose to align the gamma-corrected images in the feature-level with a Pyramid, Cascading and Deformable (PCD) alignment module. The proposed ADNet shows state-of-the-art performance compared with previous methods, achieving a PSNR-l of 39.4471 and a PSNR-µ of 37.6359 in NTIRE 2021 Multi-Frame HDR Challenge.

Usage

Requirements

  • Python 3.7.0
  • Pytorch 1.2.0
  • torchvision 0.4.0
  • CUDA 10.0 on Ubuntu 18.04
  1. Install python environment

    conda create -n adnet python=3.7
    conda activate adnet
    pip install -r requirement.txt
    
  2. Build DCN for PCD module

cd DCN_v2
./make.sh    # build dcn
python testcuda.py # run examples and gradient check on gpu

Dataset

Download the dataset from NTIRE2021 HDR Challenge. To training our model, we first crop the training images to size 256x256 patches with a stride of 128.

Training

python train.py

Acknowledgement

Part of our codes are adapted from AHDRNet and EDVR we thank the authors for their contributions.

BibTex

@inproceedings{liu2021adnet,
  title={ADNet: Attention-guided deformable convolutional network for high dynamic range imaging},
  author={Liu, Zhen and Lin, Wenjie and Li, Xinpeng and Rao, Qing and Jiang, Ting and Han, Mingyan and Fan, Haoqiang and Sun, Jian and Liu, Shuaicheng},
  booktitle={CVPRW},
  pages={463--470},
  year={2021}
}

adnet-1's People

Watchers

 avatar  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.