Skip to content

Pytorch implementation of ADNet. (The winning method of the first edition of NTIRE2021 Multi-Frame HDR Challenge)

License

Notifications You must be signed in to change notification settings

liuzhen03/ADNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

News

Sep 24, 2021. We update the result on Kalantari et al.'s dataset.

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}
}

About

Pytorch implementation of ADNet. (The winning method of the first edition of NTIRE2021 Multi-Frame HDR Challenge)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published