Giter Site home page Giter Site logo

dln's Introduction

DLN (Lighting Network for Low-Light Image Enhancement)

By Li-Wen Wang, Zhi-Song Liu, Wan-Chi Siu, and Daniel P. K. Lun

This repo provides simple testing codes, pretrained models and the network strategy demo.

We propose a single image low-light enhancement method based on back-projection theory and attention mechanism. to achieve good enhancing performance.

BibTex

@ARTICLE{DLN2020,
  author={Li-Wen Wang and Zhi-Song Liu and Wan-Chi Siu and Daniel P.K. Lun},
  journal={IEEE Transactions on Image Processing}, 
  title={Lightening Network for Low-light Image Enhancement}, 
  year={2020},
  doi={10.1109/TIP.2020.3008396},
}

Complete Architecture

The complete architecture of Deep Lighten Network (DLN) is shown as follows, The rectangles and cubes denote the operations and feature maps respectively.

#Implementation

Prerequisites

Getting Started

Installation

pip install pillow, opencv-python, scikit-image, sacred, pymongo
  • Clone this repo

Testing

  • A few example test images are included in the ./test_img folder.
  • Please download trained model
    • Pretrained (trained at voc syntesised dataset that is more general) model from here (OneDrive link)
    • Fine-tuned at LOL dataset (towards real low-light image enhancement) from here (OneDrive link)
    • Put them under ./models/
  • Test the model by:
python test.py --modelfile models/DLN_pretrained.pth

# or if the task towards real low-light image enhancement 
python test.py --modelfile models/DLN_finetune_LOL.pth

The test results will be saved to the folder: ./output.

Dataset

  • Download the VOC2007 dataset and put it to "datasets/VOC2007/".
  • Download the LOL dataset and put it to "datasets/LOL".

Training

It needs to manually switch the training dataset:

  1. first, train from the synthesized dataset,
  2. then, load the pretrained model and train from the real dataset
python train.py 

Quantitative Comparison

We tested the proposed method on the LOL real dataset for evaluation. We have achieve better performance.

Visual Comparison

At LOL dataset:

dln's People

Contributors

wangliwen1994 avatar

Stargazers

 avatar Mateus Gonçalves  avatar  avatar pengzhuolin avatar  avatar  avatar  avatar Hai Jiang avatar  avatar  avatar  avatar  avatar Kelsey Xiang avatar githubwsnd avatar 黄文举 avatar Hans Roh avatar Johnny Lai avatar JaneValeriFog avatar  avatar zhouzhaorun avatar  avatar opteroncx avatar Ziwen Li avatar  avatar  avatar Nicholas Butts avatar jie avatar  avatar l23 avatar Brian Pugh avatar  avatar  avatar Jesper Wu avatar ronctl avatar  avatar

Watchers

 avatar  avatar

dln's Issues

about code

Can you explain the x = (x_ori - 0.5) * 2 in DLN code?Meanwhile,I can't find the interactive factor γ in the code. Is this factor necessary?The y = y + x in FusionLayer code didn't show up in the Fig.6 . I look forward to your reply.

Results on LOL dataset

Many thanks for your work and codes. I tested your model on LOL dataset by using the DLN_finetune_LOL.pth and got 21.946db which is the same as the result reported on your paper. But when I retrained the model, the result is only 19.45db. It seems there are some problems. So would you please give me some advise about this problem?
Many thanks.

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.