Skip to content
/ UIECL Public

[ISCAS 2024] Unsupervised Image Enhancement via Contrastive Learning

License

Notifications You must be signed in to change notification settings

xslidi/UIECL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unsupervised Image Enhancement via Contrastive Learning

By Di Li, and Susanto Rahardja

Introduction

The codebase provides the official PyTorch implementation for the paper "Unsupervised Image Enhancement via Contrastive Learning" (accepted by 2024 IEEE International Symposium on Circuits and Systems (ISCAS)).

In this project, we present a contrastive loss to ensure that the content remains consistent across multiple scales in both input and output representations. In addition, we propose a multi-scale discriminator to strengthen the adversarial learning. Extensive experiments conducted in this paper showed that our algorithm achieved state-of-the-art performance on MIT-Adobe-FiveK dataset both quantitively and qualitatively.

Dependencies

Datasets

The paper use the FiveK dataset for experiments.

  • FiveK : You can download the original FiveK dataset from the dataset homepage and then process images using Adobe Lightroom.
    • To generate the input images, in the Collections list, select the collection Input with Daylight WhiteBalance minus 1.5.
    • To generate the target images, in the Collections list, select the collection Experts/C.
    • All the images are converted to .PNG format.

The final directory structure is as follows.

./data/FiveK
    trainA/         # 8-bit sRGB train inputs
    trainB/         # 8-bit sRGB train groundtruth
    testA/          # 8-bit sRGB test inputs
    testB/          # 8-bit sRGB test groundtruth

Train

  • run visdom to monitor status
visdom
  • run
python train.py --name UIECL --dataroot ./data/FiveK --batch_size 2 --gpu_ids 0 --netG rdnccut --model cut --lambda_NCE 10 --nce_includes_all_negatives_from_minibatch --ndf 32 --netD fe --niter 20 --niter_decay 80 --spectral_norm --patch_N 3 --patchSize 64

Test

  • run
python test.py --dataroot ./data/FiveK/testA --name UIECL --gpu_ids 0 --netG rdnccut 

Citation

If you find this repository useful, please kindly consider citing the following paper:

@inproceedings{li2024unsupervised,
  title={Unsupervised Image Enhancement via Contrastive Learning},
  author={Li, Di and Rahardja, Susanto},
  booktitle={2024 IEEE International Symposium on Circuits and Systems (ISCAS)},
  pages={1--5},
  year={2024},
  organization={IEEE}
}

License

Our project is licensed under a MIT License.

About

[ISCAS 2024] Unsupervised Image Enhancement via Contrastive Learning

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages