Giter Site home page Giter Site logo

ooixinpeng / llde Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 1.0 29.31 MB

This is the code repo of our ICIP2023 work that proposes a novel approach to low-light image enhancement using the diffusion model (LLDE).

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

llde's Introduction

LLDE: Enhancing Low-light Images With Diffusion Model

Official pytorch implementation of the paper:

- LLDE: Enhancing Low-light Images With Diffusion Model

ICIP2023 | Paper | Bibtex | Poster

(Released on June 28, 2023)

Results

Input Image Enhancement Process Output Image
input enhancement output

Datasets

  • We use LOL dataset as training data, which is available in RetinexNet repo
  • We use LSRW dataset as testing data, which is available in R2RNet repo

How to run

Requirements

  1. python 3.10
  2. pytorch == 1.11.0
  3. accelerate == 0.12.0
  4. wandb == 0.12.17 (used in model training)

Pre-trained model

Download the pretrained model and put it into ./checkpoints

Training

  • Download your training dataset
  • Execute train.py (refer train.py to check what parameters/hyperparameters to run with)
    python train.py --dataset_dir=path/to/your/training/dataset --batch_size=32

Testing

  • Download your testing dataset

  • Put your model weight into ./checkpoints

  • Execute test.py (refer test.py to check what parameters/hyperparameters to run with)

    python test.py --dataset_dir=path/to/your/testing/dataset --model_name=LLDE --timestep_respacing=25
  • The output images are saved in ./saved_images by default

Citation

If you find this work useful for your research, please cite

@article{LLDE,
  inproceedings = {LLDE: Enhancing Low-light Images With Diffusion Model},
  author = {Ooi, Xin Peng and Chan, Chee Seng},
  booktitle = {2023 IEEE international conference on image processing (ICIP)},
  year = {2023}
}

Feedback

Suggestions and opinions on this work (both positive and negative) are greatly welcomed. Please contact the authors by sending an email to 0417oxp at gmail.com or cs.chan at um.edu.my.

License and Copyright

The project is open source under BSD-3 license (see the LICENSE file).

©2023 Universiti Malaya.

llde's People

Contributors

cs-chan avatar ooixinpeng avatar

Stargazers

Xiu avatar Onchip Technologies Pvt. Ltd. avatar  avatar Jserw avatar  avatar JIANG MIN avatar Enthalpy. avatar Ng Kam Woh avatar  avatar J.W. Tan avatar  avatar

Watchers

Kostas Georgiou avatar  avatar  avatar

Forkers

scumechanics

llde's Issues

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.