Giter VIP home page Giter VIP logo

hdr-gan's Introduction

HDR-GAN: HDR Image Reconstruction From Multi-Exposed LDR Images With Large Motions

python v3.7 tensorflow 1.13

result

This is the implementation for HDR-GAN: HDR Image Reconstruction From Multi-Exposed LDR Images With Large Motions, Yuzhen Niu, Jianbin Wu, Wenxi Liu, Wenzhong Guo, Rynson W. H. Lau, in IEEE Transactions on Image Processing, 2021.
In this work, we proposed a novel GAN-based model, HDR-GAN, which produces high-quality HDR images from multi-exposed LDR images without the need to explicitly align the LDR images.

Prerequisites

Install required packages

pip install -r requirements.txt

Quickly start

Train

dataset/
└── kalantari_dataset
    └── train
        ├── 16-09-28-01
        ├── 16-09-28-05
        ├── 16-09-28-06
        ├── 16-10-10-a-01
        ├── ....
        └── yyy
  • Start training
python train.py \
    --epoch 256000 \
    --train_hw 512 512 \
    --batch_size 2 \
    --depth 3 \
    --unetpps \
    --gpu 0 \
    --loss_gan \
    --gan sphere \
    --lr 1e-4

You can change learning rate during training process by creating c{PID}.conf file with the content as follow:

LR: 1e-5

To monitor training, you can use Tensorboard in .\logs dir

Test

python test.py \
     --unetpps \
     --gpu 0 \
     --ckpt pretrained/model \
     --cus_test_ds dataset/test

The output results are name as xxx_0.hdr and xxx_1.hdr, corresponding to the two results of deep HDR supervision in paper, respectively. You may use Photomatix for tonemapping .hdr files to obtain better visual effects.

Citation

@article{niu2021hdr,
  title={HDR-GAN: HDR image reconstruction from multi-exposed ldr images with large motions},
  author={Niu, Yuzhen and Wu, Jianbin and Liu, Wenxi and Guo, Wenzhong and Lau, Rynson WH},
  journal={IEEE Transactions on Image Processing},
  volume={30},
  pages={3885--3896},
  year={2021},
  publisher={IEEE}
}

hdr-gan's People

Contributors

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