Li-Chongyi/Zero-DCE
Li-Chongyi/Zero-DCE has 1,089 GitHub stars and 230 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 10:28 UTC. Last push 2024-01-12.
Zero-DCE code and model
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalZero-Reference Deep Curve Estimation for Low-Light Image Enhancement
You can find more details here: https://li-chongyi.github.io/Proj_Zero-DCE.html. Have fun!
The implementation of Zero-DCE is for non-commercial use only.
We also provide a MindSpore version of our code: https://pan.baidu.com/s/1uyLBEBdbb1X4QVe2waog_g (passwords: of5l).
Pytorch
Pytorch implementation of Zero-DCE
Requirements
- Python 3.7
- Pytorch 1.0.0
- opencv
- torchvision 0.2.1
- cuda 10.0
Zero-DCE does not need special configurations. Just basic environment.
Or you can create a conda environment to run our code like this: conda create --name zerodce_env opencv pytorch==1.0.0 torchvision==0.2.1 cuda100 python=3.7 -c pytorch
Folder structure
Download the Zero-DCE_code first. The following shows the basic folder structure.
├── data
│ ├── test_data # testing data. You can make a new folder for your testing data, like LIME, MEF, and NPE.
│ │ ├── LIME
│ │ └── MEF
│ │ └── NPE
│ └── train_data
├── lowlight_test.py # testing code
├── lowlight_train.py # training code
├── model.py # Zero-DEC network
├── dataloader.py
├── snapshots
│ ├── Epoch99.pth # A pre-trained snapshot (Epoch99.pth)
Test:
cd Zero-DCE_code
python lowlight_test.py
The script will process the images in the sub-folders of "test_data" folder and make a new folder "result" in the "data". You can find the enhanced images in the "result" folder.
Train:
cd Zero-DCE_code
download the training data google drive or baidu cloud [password: 1234]
unzip and put the downloaded "train_data" folder to "data" folder
python lowlight_train.py
License
The code is made available for academic research purpose only. Under Attribution-NonCommercial 4.0 International License.
Bibtex
@inproceedings{Zero-DCE,
author = {Guo, Chunle Guo and Li, Chongyi and Guo, Jichang and Loy, Chen Change and Hou, Junhui and Kwong, Sam and Cong, Runmin},
title = {Zero-reference deep curve estimation for low-light image enhancement},
booktitle = {Proceedings of the IEEE conference on computer vision and pattern recognition (CVPR)},
pages = {1780-1789},
month = {June},
year = {2020}
}
Contact
If you have any questions, please contact Chongyi Li at [email protected] or Chunle Guo at [email protected].
TensorFlow Version
Thanks tuvovan ([email protected]) who re-produces our code by TF. The results of TF version look similar with our Pytorch version. But I do not have enough time to check the details. https://github.com/tuvovan/Zero_DCE_TF
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,347 starspublic-apis/public-apis
A collective list of free APIs
497,596 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
446,738 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,252 stars