Coder Social home page Coder Social logo

tuvovan / anl-hdri Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 3.31 MB

High Dynamic Range Image Synthesis via Attention Non-Local Network

License: MIT License

Python 100.00%
hdr-image hdr-imaging convolutional-autoencoder convolutional-neural-networks attention-network

anl-hdri's Introduction

ANLHDR Imaging

High Dynamic Range Image Synthesis via Attention Non-Local Network teaser

Content

Getting Started

  • Clone the repository

Prerequisites

  • Tensorflow 2.2.0+
  • Tensorflow_addons
  • Python 3.6+
  • Keras 2.3.0
  • PIL
  • numpy
pip install -r requirements.txt

Running

Training

  • Preprocess

    python src/create_dataset.py
    
  • Train ANL-HDRI

    python main.py
    
  • Test ANL-HDRI

    • Download weights here
    python test.py --weight_test_path ANLNet.h5 --test_path Test/EXTRA/001/
    

Usage

Training

usage: main.py [-h] [--images_path IMAGES_PATH] [--test_path TEST_PATH]
               [--lr LR] [--gpu GPU] [--num_epochs NUM_EPOCHS] 
               [--train_batch_size TRAIN_BATCH_SIZE]
               [--display_ep DISPLAY_EP] [--checkpoint_ep CHECKPOINT_EP]
               [--checkpoints_folder CHECKPOINTS_FOLDER]
               [--load_pretrain LOAD_PRETRAIN] [--pretrain_dir PRETRAIN_DIR]
               [--filter FILTER] [--kernel KERNEL]
               [--encoder_kernel ENCODER_KERNEL]
               [--decoder_kernel DECODER_KERNEL]
               [--triple_pass_filter TRIPLE_PASS_FILTER]
optional arguments: -h, --help                show this help message and exit
                    --images_path             training path
                    --lr                      LR
                    --gpu                     GPU
                    --num_epochs              NUM of EPOCHS
                    --train_batch_size        training batch size
                    --display_ep              display result every "x" epoch
                    --checkpoint_ep           save weights every "x" epoch
                    --checkpoints_folder      folder to save weight
                    --load_pretrain           load pretrained model
                    --pretrain_dir            pretrained model folder
                    --filter                  default filter
                    --kernel                  default kernel
                    --encoder_kernel          encoder filter size
                    --decoder_kernel          decoder filter size
                    --triple_pass_filter      number of filter in triple pass

Testing

The weight file was deprecated. Will be updated soon.

usage: test.py [-h] [--test_path TEST_PATH] [--gpu GPU]
                    [--weight_test_path WEIGHT_TEST_PATH] [--filter FILTER]
                    [--kernel KERNEL] [--encoder_kernel ENCODER_KERNEL]
                    [--decoder_kernel DECODER_KERNEL]
                    [--triple_pass_filter TRIPLE_PASS_FILTER]
optional arguments: -h, --help                    show this help message and exit
                    --test_path                   test path
                    --weight_test_path            weight test path
                    --filter                      default filter
                    --kernel                      default kernel
                    --encoder_kernel              encoder filter size
                    --decoder_kernel              decoder filter size
                    --triple_pass_filter          number of filter in triple pass

Result

DEMO0 DEMO1 DEMO2

License

This project is licensed under the MIT License - see the LICENSE file for details

References

[1] Training and Testing dataset - link

Citation

    @ARTICLE{8989959,  author={Tu V.V},   
    title={High Dynamic Range Image Synthesis via Attention Non-Local Network},   
    year={2020},  
    url={github.com/tuvovan/ANL-HDRI},}

Acknowledgments

  • My work is done on my sparse time so I should have some mistake or further possible improvement.
  • Any ideas on updating or misunderstanding, please send me an email: [email protected]
  • If you find this repo helpful, kindly give me a star.

anl-hdri's People

Contributors

tuvovan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

anl-hdri's Issues

Output is plain red

Hi there,

I downloaded the dataset and the weights. Then, I tested it over the same test set but I got a result of mostly red color, that's an example. Do you know what could cause that? thanks in advance.

hdr

Meaning of the parameters within exposure.txt

Hello.
I was trying out the inference on a custom image and I came across exposure.txt files within the test dataset. Can you perhaps indicate the meaning of those parameters? Is it the exposure of the given files or the desired exposure?

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.