Skip to content

Official code for "Contrastive Semi-supervised Learning for Underwater Image Restoration via Reliable Bank" (2023 CVPR)

Notifications You must be signed in to change notification settings

Huang-ShiRui/Semi-UIR

Repository files navigation

Contrastive Semi-supervised Learning for Underwater Image Restoration via Reliable Bank (CVPR 2023)

Shirui Huang*, Keyan Wang*+, Huan Liu, Jun Chen, Yunsong Li

*Equal Contributions +Corresponding Author

Xidian University, McMaster University

Introduction

This is the official repository for our recent paper, "Contrastive Semi-supervised Learning for Underwater Image Restoration via Reliable Bank", where more implementation details are presented.

Dependencies

  • Ubuntu==18.04
  • Pytorch==1.8.1
  • CUDA==11.1

Other dependencies are listed in requirements.txt

Prepare Data

Run data_split.py to randomly split your paired datasets into training, validation and testing set.

Run estimate_illumination.py to get illumination map of the corresponding image.

Finally, the structure of data are aligned as follows:

data
├── labeled
│   ├── input
│   └── GT
│   └── LA
├── unlabeled
│   ├── input
│   └── LA
│   └── candidate
└── val
    ├── input
    └── GT
    └── LA
└── test
    ├── benchmarkA
        ├── input
        └── LA

You can download the training set and test sets for our paper here.

Test

Put your test benchmark under data/test folder, run estimate_illumination.py to get its illumination map.

Run test.py and you can find results from folder result.

Train

To train the framework, run create_candiate.py to initialize reliable bank. Hyper-parameters can be modified in trainer.py.

Run train.py to start training.

Citation

Our arxiv version:

@article{huang2023contrastive,
  title={Contrastive Semi-supervised Learning for Underwater Image Restoration via Reliable Bank},
  author={Huang, Shirui and Wang, Keyan and Liu, Huan and Chen, Jun and Li, Yunsong},
  journal={arXiv preprint arXiv:2303.09101},
  year={2023}
}

Contact

If you have any problem with the released code, please do not hesitate to contact us by email (shiruihh@gmail.com).

About

Official code for "Contrastive Semi-supervised Learning for Underwater Image Restoration via Reliable Bank" (2023 CVPR)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages