Giter VIP home page Giter VIP logo

l2dm's Introduction

L2DM: A Diffusion Model for Low-Light Image Enhancement

This paper presents L2DM, a novel framework for low-light image enhancement using diffusion models. PAPER

Requirements

A suitable conda environment can be created and activated with:

conda env create -f environment.yaml
conda activate ldm

Data preparation

We used the LOL and LOL-v2 datasets, where the LOL-v2 dataset is divided into two parts: real and synthetic. The dataset and model weights are placed in Baidu Cloud for downloading. Dataset files should be placed inside the data\

Pretrained Models

We need 3 network checkpoints, which are Auto-encoder checkpoints, COCO pre-training weights, and dataset-correlated weights. Once downloaded, put the model.ckpt to ckpt/vq-f4/model.ckpt; epoch=000099.ckpt to ckpt/coco/epoch=000099.ckpt; <lol_>.ckpt to ckpt/<lol_>.ckpt

Training L2DM

In configs/latent-diffusion/ we provide configs for training L2DM on the LOL, LOL-real, LOL-synthetic datasets. Training can be started by running CUDA_VISIBLE_DEVICES=<GPU_ID> python main_ll.py --base configs/latent-diffusion/<config_spec>.yaml -t --gpus 0,

Testing our results

Runpython d2l_ori.py --id 0 --dataset v1 --steps 20 --nrun 10 --sample dpm ,
dataset are available in v1, v2-real, and v2-syn.

l2dm's People

Contributors

yore0 avatar

Stargazers

 avatar Xingbo Dong avatar

Watchers

 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.