Zero-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 lichongyi25@gmail.com or Chunle Guo at guochunle@tju.edu.cn.
TensorFlow Version
Thanks tuvovan (vovantu.hust@gmail.com) 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
Metadata
Release files for zero-dce 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zero_dce-1.0.0-py3.10.egg | Legacy Egg format | - | - | Details |
| zero_dce-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.5 kB
Release files / zero_dce-1.0.0-py3.10.egg
| Download URL | zero_dce-1.0.0-py3.10.egg |
|---|---|
| Size | 28.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
d994a77fe1ad4dc5c5827936181a6b8ca1e47fabd092b282fd7cabf1c51696a5
|
|
BLAKE2b-256 checksum How to use checksums |
70a8fcdc3339d2c381c9534a304ab2482171b05450532627533b82b3fcdc0629
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / zero_dce-1.0.0-py3-none-any.whl
| Download URL | zero_dce-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5595252967cfadc4de077c9c2317c4b7b7890046f519951793cde33cac91e489
|
|
BLAKE2b-256 checksum How to use checksums |
4d5a5dd367dcc2ee3fcce93414eef9f7f18a861c672315845024528b35c19ac3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for zero-dce 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.