This repository contains the official implementation of the following paper:
Enhancing Underwater Images via Adaptive Semantic-aware Codebook Learning
Bosen Lin, Feng Gao*, Yanwei Yu, Junyu Dong, Qian Du
IEEE Transactions on Geoscience and Remote Sensing, 2026
[Paper]
-
Clone Repo
git clone https://github.com/oucailab/SUCode.git cd SUCode -
Create Conda Environment
conda create -n SUcode python=3.8 conda activate SUcode pip install -r requirements.txt python setup.py develop
- You are supposed to download our pretrained model for stage 2 and stage 3 first in the links below and put them in dir
./checkpoints/:
| Model | 🔗 Download Links |
|---|---|
| SUCode | [Baidu Disk (pwd: icpg)] |
- Unzip UIE dataset and put in dir
./dataset/. The directory structure will be arranged as:
checkpoints
|- net_stage2_g_best_.pth
|- net_stage2_d_best_.pth
|- net_sucode_g_best_.pth
dataset
|- test
|- images
|- ***.jpg
|- ...
|- reference
|- ***.jpg
|- ...
|- train
|- images
|- ***.jpg
|- ...
|- reference
|- ***.jpg
|- ...
Run the following commands for training:
python basicsr/train.py -opt options/train_SUCode_stage3.yamlRun the following commands for testing:
python test_sucode.pyIf you find our repo useful for your research, please cite us:
@article{lin2026sucode,
title={Enhancing Underwater Images via Adaptive Semantic-aware Codebook Learning},
author={Bosen Lin, Feng Gao, Yanwei Yu, Junyu Dong, Qian Du},
journal={IEEE Transactions on Geoscience and Remote Sensing},
year={2026}
}
Licensed under a Creative Commons Attribution-NonCommercial 4.0 International for Non-commercial use only. Any commercial use should get formal permission first.